Skip to content

Commit 8300afd

Browse files
committed
test: add godzilla ws case
1 parent 7301a4b commit 8300afd

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

tools/godzilla/src/test/java/com/reajason/javaweb/godzilla/GodzillaManagerTest.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)