| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 01e1e9e commit c41bef4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -65,15 +65,11 @@ String requestWithCompression(String context, String suffix) throws IOException | |||
| 65 | 65 | return s.hasNext() ? s.next() : ""; | |
| 66 | 66 | } | |
| 67 | 67 | ||
| 68 | - @Test | ||
| 69 | - public void testUnbound() throws IOException { | ||
| 68 | + @Test(expected = IllegalArgumentException.class) | ||
| 69 | + public void testRefuseUsingUnbound() throws IOException { | ||
| 70 | 70 | CollectorRegistry registry = new CollectorRegistry(); | |
| 71 | - try { | ||
| 72 | - HTTPServer s = new HTTPServer(HttpServer.create(), registry, true); | ||
| 73 | - s.stop(); | ||
| 74 | - fail("Should refuse to use an unbound HttpServer"); | ||
| 75 | - } catch (IllegalArgumentException expected) { | ||
| 76 | - } | ||
| 71 | + HTTPServer s = new HTTPServer(HttpServer.create(), registry, true); | ||
| 72 | + s.stop(); | ||
| 77 | 73 | } | |
| 78 | 74 | ||
| 79 | 75 | @Test | |
| Back | FazBrowse Home | New Git URL |
0 commit comments