@@ -66,11 +66,14 @@ static void setupAll() {
6666 if (port == null ) {
6767 port = getLocalAvailablePort ();
6868 }
69+
70+ System .err .println ("!!!test in github action!!! setup all: port: " + port );
6971 TestFitRuntime .INSTANCE .start (port );
7072 }
7173
7274 @ AfterAll
7375 static void teardownAll () {
76+ System .err .println ("!!!test in github action!!! teardown all" );
7477 TestFitRuntime .INSTANCE .stop ();
7578 }
7679
@@ -132,11 +135,13 @@ void shouldReturnMap() {
132135
133136 Address address = Address .create ("jiangsu" , "suzhou" , 3205 );
134137 Education education = Education .create ("QUST" , "UCAS" );
138+ System .err .println ("!!!test in github action!!! test shouldReturnMap, before execute tool" );
135139 Map <String , Object > result = cast (tool .execute ("Alice" ,
136140 26 ,
137141 address ,
138142 education ,
139143 Stream .of ("0123-4567-8888" , "0123-4567-9999" ).collect (Collectors .toList ())));
144+ System .err .println ("!!!test in github action!!! test shouldReturnMap, after execute tool" );
140145 Map <String , Object > addressResult = cast (result .get ("address" ));
141146 Map <String , Object > educationResult = cast (result .get ("education" ));
142147 List <String > phoneNumbers = cast (result .get ("phoneNumbers" ));
@@ -156,7 +161,9 @@ void shouldReturnString() {
156161 Tool .Info info = readToolInfo ("string.json" );
157162 Tool tool = createTool (info );
158163
164+ System .err .println ("!!!test in github action!!! test shouldReturnString, before execute tool" );
159165 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" );
160167 assertThat (result ).isEqualTo ("abc,def,ghi" );
161168 }
162169
@@ -166,7 +173,9 @@ void shouldReturnInteger() {
166173 Tool .Info info = readToolInfo ("integer.json" );
167174 Tool tool = createTool (info );
168175
176+ System .err .println ("!!!test in github action!!! test shouldReturnInteger, before execute tool" );
169177 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" );
170179 assertThat (result ).isEqualTo (6 );
171180 }
172181
@@ -176,7 +185,9 @@ void shouldReturnNull() {
176185 Tool .Info info = readToolInfo ("void.json" );
177186 Tool tool = createTool (info );
178187
188+ System .err .println ("!!!test in github action!!! test shouldReturnNull, before execute tool" );
179189 Object result = tool .execute ();
190+ System .err .println ("!!!test in github action!!! test shouldReturnNull, after execute tool" );
180191 assertThat (result ).isEqualTo (null );
181192 }
182193
@@ -186,7 +197,9 @@ void BasicShouldReturnOk() {
186197 Tool .Info info = readToolInfo ("basic-auth.json" );
187198 Tool tool = createTool (info );
188199
200+ System .err .println ("!!!test in github action!!! test BasicShouldReturnOk, before execute tool" );
189201 boolean result = cast (tool .execute ("{\" name\" :\" testuser\" , \" pwd\" :\" testpass\" }" ));
202+ System .err .println ("!!!test in github action!!! test BasicShouldReturnOk, after execute tool" );
190203 assertThat (result ).isEqualTo (true );
191204 }
192205
@@ -196,7 +209,9 @@ void ApiKeyShouldReturnOk() {
196209 Tool .Info info = readToolInfo ("api-key-auth.json" );
197210 Tool tool = createTool (info );
198211
212+ System .err .println ("!!!test in github action!!! test ApiKeyShouldReturnOk, before execute tool" );
199213 boolean result = cast (tool .execute ("{\" name\" :\" ApiKey\" , \" pwd\" :\" ApiKeyValue\" }" ));
214+ System .err .println ("!!!test in github action!!! test ApiKeyShouldReturnOk, after execute tool" );
200215 assertThat (result ).isEqualTo (true );
201216 }
202217
@@ -206,7 +221,9 @@ void ApiKeyQueryShouldReturnOk() {
206221 Tool .Info info = readToolInfo ("api-key-query-auth.json" );
207222 Tool tool = createTool (info );
208223
224+ System .err .println ("!!!test in github action!!! test ApiKeyQueryShouldReturnOk, before execute tool" );
209225 boolean result = cast (tool .execute ("{\" name\" :\" ApiKey\" , \" pwd\" :\" ApiKeyValue\" }" ));
226+ System .err .println ("!!!test in github action!!! test ApiKeyQueryShouldReturnOk, after execute tool" );
210227 assertThat (result ).isEqualTo (true );
211228 }
212229
@@ -216,7 +233,9 @@ void BearerShouldReturnOk() {
216233 Tool .Info info = readToolInfo ("bearer-auth.json" );
217234 Tool tool = createTool (info );
218235
236+ System .err .println ("!!!test in github action!!! test BearerShouldReturnOk, before execute tool" );
219237 boolean result = cast (tool .execute ("{\" name\" :\" test666666666\" , \" pwd\" :\" invalid\" }" ));
238+ System .err .println ("!!!test in github action!!! test BearerShouldReturnOk, after execute tool" );
220239 assertThat (result ).isEqualTo (true );
221240 }
222241}
0 commit comments