@@ -71,9 +71,7 @@ static void setupAll() {
7171
7272 @ AfterAll
7373 static void teardownAll () {
74- System .out .println ("Test runtime will be stop." );
7574 TestFitRuntime .INSTANCE .stop ();
76- System .out .println ("Test runtime has been stopped." );
7775 }
7876
7977 private static Tool .Info readToolInfo (String fileName ) {
@@ -134,13 +132,11 @@ void shouldReturnMap() {
134132
135133 Address address = Address .create ("jiangsu" , "suzhou" , 3205 );
136134 Education education = Education .create ("QUST" , "UCAS" );
137- System .out .println ("Test shouldReturnMap, before execute tool" );
138135 Map <String , Object > result = cast (tool .execute ("Alice" ,
139136 26 ,
140137 address ,
141138 education ,
142139 Stream .of ("0123-4567-8888" , "0123-4567-9999" ).collect (Collectors .toList ())));
143- System .out .println ("Test shouldReturnMap, after execute tool" );
144140 Map <String , Object > addressResult = cast (result .get ("address" ));
145141 Map <String , Object > educationResult = cast (result .get ("education" ));
146142 List <String > phoneNumbers = cast (result .get ("phoneNumbers" ));
@@ -160,9 +156,7 @@ void shouldReturnString() {
160156 Tool .Info info = readToolInfo ("string.json" );
161157 Tool tool = createTool (info );
162158
163- System .out .println ("Test shouldReturnString, before execute tool" );
164159 String result = cast (tool .execute (Stream .of ("abc" , "def" , "ghi" ).collect (Collectors .toList ())));
165- System .out .println ("Test shouldReturnString, after execute tool" );
166160 assertThat (result ).isEqualTo ("abc,def,ghi" );
167161 }
168162
@@ -172,9 +166,7 @@ void shouldReturnInteger() {
172166 Tool .Info info = readToolInfo ("integer.json" );
173167 Tool tool = createTool (info );
174168
175- System .out .println ("Test shouldReturnInteger, before execute tool" );
176169 Integer result = cast (tool .execute (Stream .of (1 , 2 , 3 ).collect (Collectors .toList ())));
177- System .out .println ("Test shouldReturnInteger, after execute tool" );
178170 assertThat (result ).isEqualTo (6 );
179171 }
180172
@@ -184,9 +176,7 @@ void shouldReturnNull() {
184176 Tool .Info info = readToolInfo ("void.json" );
185177 Tool tool = createTool (info );
186178
187- System .out .println ("Test shouldReturnNull, before execute tool" );
188179 Object result = tool .execute ();
189- System .out .println ("Test shouldReturnNull, after execute tool" );
190180 assertThat (result ).isEqualTo (null );
191181 }
192182
@@ -196,9 +186,7 @@ void BasicShouldReturnOk() {
196186 Tool .Info info = readToolInfo ("basic-auth.json" );
197187 Tool tool = createTool (info );
198188
199- System .out .println ("Test BasicShouldReturnOk, before execute tool" );
200189 boolean result = cast (tool .execute ("{\" name\" :\" testuser\" , \" pwd\" :\" testpass\" }" ));
201- System .out .println ("Test BasicShouldReturnOk, after execute tool" );
202190 assertThat (result ).isEqualTo (true );
203191 }
204192
@@ -208,9 +196,7 @@ void ApiKeyShouldReturnOk() {
208196 Tool .Info info = readToolInfo ("api-key-auth.json" );
209197 Tool tool = createTool (info );
210198
211- System .out .println ("Test ApiKeyShouldReturnOk, before execute tool" );
212199 boolean result = cast (tool .execute ("{\" name\" :\" ApiKey\" , \" pwd\" :\" ApiKeyValue\" }" ));
213- System .out .println ("Test ApiKeyShouldReturnOk, after execute tool" );
214200 assertThat (result ).isEqualTo (true );
215201 }
216202
@@ -220,9 +206,7 @@ void ApiKeyQueryShouldReturnOk() {
220206 Tool .Info info = readToolInfo ("api-key-query-auth.json" );
221207 Tool tool = createTool (info );
222208
223- System .out .println ("Test ApiKeyQueryShouldReturnOk, before execute tool" );
224209 boolean result = cast (tool .execute ("{\" name\" :\" ApiKey\" , \" pwd\" :\" ApiKeyValue\" }" ));
225- System .out .println ("Test ApiKeyQueryShouldReturnOk, after execute tool" );
226210 assertThat (result ).isEqualTo (true );
227211 }
228212
@@ -232,9 +216,7 @@ void BearerShouldReturnOk() {
232216 Tool .Info info = readToolInfo ("bearer-auth.json" );
233217 Tool tool = createTool (info );
234218
235- System .out .println ("Test BearerShouldReturnOk, before execute tool" );
236219 boolean result = cast (tool .execute ("{\" name\" :\" test666666666\" , \" pwd\" :\" invalid\" }" ));
237- System .out .println ("Test BearerShouldReturnOk, after execute tool" );
238220 assertThat (result ).isEqualTo (true );
239221 }
240222}
0 commit comments