Skip to content

Commit

Permalink
Test for issue google#571
Browse files Browse the repository at this point in the history
  • Loading branch information
dhanji committed May 27, 2014
1 parent 53a5936 commit 8d88344
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@
*/
public class ServletModuleTest extends TestCase {

public void testServletModuleCallOutsideConfigure() {
try {
new ServletModule() {{
serve("/*").with(DummyServlet.class);
}};
fail();
} catch (IllegalStateException e) {
// Expected.
}
}

public void testServletModuleReuse() {
Module module = new Module();
Elements.getElements(module); // use the module once (to, say, introspect bindings)
Expand Down

0 comments on commit 8d88344

Please sign in to comment.