Skip to content

Commit 118c0ea

Browse files
[maven-tool] 去掉无用代码
1 parent 3c7ef7c commit 118c0ea

File tree

1 file changed

+0
-19
lines changed
  • framework/fel/java/services/tool-service/src/test/java/modelengine/fel/tool/support

1 file changed

+0
-19
lines changed

framework/fel/java/services/tool-service/src/test/java/modelengine/fel/tool/support/HttpToolTest.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,11 @@ static void setupAll() {
6666
if (port == null) {
6767
port = getLocalAvailablePort();
6868
}
69-
70-
System.err.println("!!!test in github action!!! setup all: port: " + port);
7169
TestFitRuntime.INSTANCE.start(port);
7270
}
7371

7472
@AfterAll
7573
static void teardownAll() {
76-
System.err.println("!!!test in github action!!! teardown all");
7774
TestFitRuntime.INSTANCE.stop();
7875
}
7976

@@ -135,13 +132,11 @@ void shouldReturnMap() {
135132

136133
Address address = Address.create("jiangsu", "suzhou", 3205);
137134
Education education = Education.create("QUST", "UCAS");
138-
System.err.println("!!!test in github action!!! test shouldReturnMap, before execute tool");
139135
Map<String, Object> result = cast(tool.execute("Alice",
140136
26,
141137
address,
142138
education,
143139
Stream.of("0123-4567-8888", "0123-4567-9999").collect(Collectors.toList())));
144-
System.err.println("!!!test in github action!!! test shouldReturnMap, after execute tool");
145140
Map<String, Object> addressResult = cast(result.get("address"));
146141
Map<String, Object> educationResult = cast(result.get("education"));
147142
List<String> phoneNumbers = cast(result.get("phoneNumbers"));
@@ -161,9 +156,7 @@ void shouldReturnString() {
161156
Tool.Info info = readToolInfo("string.json");
162157
Tool tool = createTool(info);
163158

164-
System.err.println("!!!test in github action!!! test shouldReturnString, before execute tool");
165159
String result = cast(tool.execute(Stream.of("abc", "def", "ghi").collect(Collectors.toList())));
166-
System.err.println("!!!test in github action!!! test shouldReturnString, after execute tool");
167160
assertThat(result).isEqualTo("abc,def,ghi");
168161
}
169162

@@ -173,9 +166,7 @@ void shouldReturnInteger() {
173166
Tool.Info info = readToolInfo("integer.json");
174167
Tool tool = createTool(info);
175168

176-
System.err.println("!!!test in github action!!! test shouldReturnInteger, before execute tool");
177169
Integer result = cast(tool.execute(Stream.of(1, 2, 3).collect(Collectors.toList())));
178-
System.err.println("!!!test in github action!!! test shouldReturnInteger, after execute tool");
179170
assertThat(result).isEqualTo(6);
180171
}
181172

@@ -185,9 +176,7 @@ void shouldReturnNull() {
185176
Tool.Info info = readToolInfo("void.json");
186177
Tool tool = createTool(info);
187178

188-
System.err.println("!!!test in github action!!! test shouldReturnNull, before execute tool");
189179
Object result = tool.execute();
190-
System.err.println("!!!test in github action!!! test shouldReturnNull, after execute tool");
191180
assertThat(result).isEqualTo(null);
192181
}
193182

@@ -197,9 +186,7 @@ void BasicShouldReturnOk() {
197186
Tool.Info info = readToolInfo("basic-auth.json");
198187
Tool tool = createTool(info);
199188

200-
System.err.println("!!!test in github action!!! test BasicShouldReturnOk, before execute tool");
201189
boolean result = cast(tool.execute("{\"name\":\"testuser\", \"pwd\":\"testpass\"}"));
202-
System.err.println("!!!test in github action!!! test BasicShouldReturnOk, after execute tool");
203190
assertThat(result).isEqualTo(true);
204191
}
205192

@@ -209,9 +196,7 @@ void ApiKeyShouldReturnOk() {
209196
Tool.Info info = readToolInfo("api-key-auth.json");
210197
Tool tool = createTool(info);
211198

212-
System.err.println("!!!test in github action!!! test ApiKeyShouldReturnOk, before execute tool");
213199
boolean result = cast(tool.execute("{\"name\":\"ApiKey\", \"pwd\":\"ApiKeyValue\"}"));
214-
System.err.println("!!!test in github action!!! test ApiKeyShouldReturnOk, after execute tool");
215200
assertThat(result).isEqualTo(true);
216201
}
217202

@@ -221,9 +206,7 @@ void ApiKeyQueryShouldReturnOk() {
221206
Tool.Info info = readToolInfo("api-key-query-auth.json");
222207
Tool tool = createTool(info);
223208

224-
System.err.println("!!!test in github action!!! test ApiKeyQueryShouldReturnOk, before execute tool");
225209
boolean result = cast(tool.execute("{\"name\":\"ApiKey\", \"pwd\":\"ApiKeyValue\"}"));
226-
System.err.println("!!!test in github action!!! test ApiKeyQueryShouldReturnOk, after execute tool");
227210
assertThat(result).isEqualTo(true);
228211
}
229212

@@ -233,9 +216,7 @@ void BearerShouldReturnOk() {
233216
Tool.Info info = readToolInfo("bearer-auth.json");
234217
Tool tool = createTool(info);
235218

236-
System.err.println("!!!test in github action!!! test BearerShouldReturnOk, before execute tool");
237219
boolean result = cast(tool.execute("{\"name\":\"test666666666\", \"pwd\":\"invalid\"}"));
238-
System.err.println("!!!test in github action!!! test BearerShouldReturnOk, after execute tool");
239220
assertThat(result).isEqualTo(true);
240221
}
241222
}

0 commit comments

Comments
 (0)