File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
tools/godzilla/src/test/java/com/reajason/javaweb/godzilla Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class GodzillaManagerTest {
2424
2525 @ Test
2626 @ Disabled ("only for local test" )
27- void testManager () {
27+ void testHttpManager () {
2828 try (GodzillaManager manager = GodzillaManager .builder ()
2929 .entrypoint ("http://localhost:8080/app/" )
3030 .header ("User-Agent" , "test Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0" )
@@ -37,6 +37,20 @@ void testManager() {
3737 }
3838 }
3939
40+ @ Test
41+ @ Disabled ("only for local test" )
42+ void testWsManager () {
43+ try (GodzillaManager manager = GodzillaManager .builder ()
44+ .entrypoint ("ws://127.0.0.1:8082/app/god" )
45+ .pass ("pass" )
46+ .key ("key" )
47+ .build ()) {
48+ assertTrue (manager .start ());
49+ assertTrue (manager .test ());
50+ } catch (IOException ignored ) {
51+ }
52+ }
53+
4054 @ Test
4155 void generateGodzilla () {
4256 byte [] bytes = GodzillaManager .generateGodzilla ();
You can’t perform that action at this time.
0 commit comments