Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 91ec899

Browse files
committed
Revert "Polish "Added AppBootSchemaVersion tests and updated controller""
This reverts commit 8e3f127.
1 parent 06420d1 commit 91ec899

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed

spring-cloud-dataflow-shell-core/src/main/java/org/springframework/cloud/dataflow/shell/command/AppRegistryCommands.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import java.util.Properties;
2525
import java.util.stream.Collectors;
2626

27+
import org.springframework.beans.factory.annotation.Autowired;
2728
import org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty;
2829
import org.springframework.cloud.dataflow.core.AppBootSchemaVersion;
2930
import org.springframework.cloud.dataflow.core.ApplicationType;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
/*
2+
* Copyright 2016-2022 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.cloud.dataflow.shell.command;
18+
19+
import org.junit.Before;
20+
import org.junit.Test;
21+
import org.mockito.Mock;
22+
import org.mockito.MockitoAnnotations;
23+
24+
import org.springframework.beans.factory.annotation.Autowired;
25+
import org.springframework.cloud.dataflow.rest.client.AppRegistryOperations;
26+
import org.springframework.cloud.dataflow.rest.client.DataFlowOperations;
27+
import org.springframework.cloud.dataflow.shell.AbstractShellIntegrationTest;
28+
import org.springframework.cloud.dataflow.shell.config.DataFlowShell;
29+
import org.springframework.core.io.ResourceLoader;
30+
31+
import static org.assertj.core.api.Assertions.fail;
32+
import static org.mockito.Mockito.when;
33+
34+
/**
35+
* Unit tests for {@link RuntimeCommands}.
36+
*
37+
* @author Chris Bono
38+
* @author Corneil du Plessis
39+
*/
40+
public class AppRegisterCommandsTests extends AbstractShellIntegrationTest {
41+
42+
private DataFlowOperations dataFlowOperations;
43+
44+
private AppRegistryOperations registryOperations;
45+
46+
private ResourceLoader resourceLoader;
47+
48+
private AppRegistryCommands registryCommands;
49+
50+
@Before
51+
public void setUp() {
52+
MockitoAnnotations.initMocks(this);
53+
when(dataFlowOperations.appRegistryOperations()).thenReturn(registryOperations);
54+
DataFlowShell dataFlowShell = new DataFlowShell();
55+
dataFlowShell.setDataFlowOperations(dataFlowOperations);
56+
registryCommands = new AppRegistryCommands(dataFlowShell);
57+
registryCommands.setResourceLoader(resourceLoader);
58+
59+
}
60+
61+
@Test
62+
public void testRegisterApp() {
63+
fail("not implemented");
64+
}
65+
66+
@Test
67+
public void testRegisterAppBoot3() {
68+
fail("not implemented");
69+
}
70+
71+
@Test
72+
public void testRegisterAppUpdateToBoot3() {
73+
fail("not implemented");
74+
}
75+
76+
}

0 commit comments

Comments
 (0)