We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 420b858 + 4759540 commit 33b26c7Copy full SHA for 33b26c7
2 files changed
pom.xml
@@ -88,7 +88,7 @@
88
<dependency>
89
<groupId>dnsjava</groupId>
90
<artifactId>dnsjava</artifactId>
91
- <version>3.5.1</version>
+ <version>3.6.0</version>
92
</dependency>
93
94
<groupId>org.junit.jupiter</groupId>
src/test/dev.redcoke.mcserverping/java/MCServerPingTest.java
@@ -0,0 +1,19 @@
1
+import dev.redcoke.mcserverping.MCServerPing;
2
+import org.junit.jupiter.api.Test;
3
+
4
+import java.io.IOException;
5
+import java.util.concurrent.TimeoutException;
6
7
+import static org.junit.jupiter.api.Assertions.*;
8
9
+class MCServerPingDemoTest {
10
+ @Test
11
+ void test() {
12
+ var server = "mc.hypixel.net";
13
+ try {
14
+ MCServerPing.getPing(server, 25565);
15
+ } catch (IOException | TimeoutException ex) {
16
+ fail(ex);
17
+ }
18
19
+}
0 commit comments