Revision: 8d883444d53d
Author: Dhanji R. Prasanna <[email protected]>
Date: Tue May 27 21:23:20 2014 UTC
Log: Test for issue #571
http://code.google.com/p/google-guice/source/detail?r=8d883444d53d
Modified:
/extensions/servlet/test/com/google/inject/servlet/ServletModuleTest.java
=======================================
---
/extensions/servlet/test/com/google/inject/servlet/ServletModuleTest.java
Fri Jul 8 00:34:16 2011 UTC
+++
/extensions/servlet/test/com/google/inject/servlet/ServletModuleTest.java
Tue May 27 21:23:20 2014 UTC
@@ -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)
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/d/optout.