Created
July 29, 2016 21:45
-
-
Save alexlehm/d4d4ffdf95c97c78dff7ba91de1b0d09 to your computer and use it in GitHub Desktop.
UnknownHostExceptionTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.Test; | |
import io.vertx.core.impl.VertxImpl; | |
import io.vertx.test.core.VertxTestBase; | |
/** | |
* @author <a href="http://oss.lehmann.cx/">Alexander Lehmann</a> | |
* | |
*/ | |
public class UnknownHostExceptionTest extends VertxTestBase { | |
@Test | |
public void testResolveExceptionHostname() throws Exception { | |
((VertxImpl)vertx).resolveAddress("sdfsdfsdfsdsdffd", res -> { | |
if (res.succeeded()) { | |
System.out.println(res.result()); | |
} else { | |
res.cause().printStackTrace(); | |
testComplete(); | |
} | |
}); | |
await(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment