Skip to content

Commit 6238afa

Browse files
committed
assert at least one field
1 parent 4664d14 commit 6238afa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/org/jgroups/ping/kube/test/JsonTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import java.util.List;
88

99
import static org.jgroups.protocols.kubernetes.Utils.readFileToString;
10+
import static org.junit.Assert.assertEquals;
1011

1112
/**
1213
* @author Bela Ban
@@ -27,6 +28,7 @@ public void testJsonParser() throws Exception {
2728
Json phase=status.at("phase");
2829
Json ip=status.at("podIP");
2930
System.out.printf("%s -> %s\n", ip, phase);
31+
assertEquals("Running", phase.asString());
3032
}
3133

3234
/* JsonObject root=JsonParser.object().from(input);

0 commit comments

Comments
 (0)