Package javango.core

Examples of javango.core.SubappUrl.matches()


  }
  public void testSuburl() throws Exception {
    Injector injector = Guice.createInjector(new MyModule());
    SubappUrl url = new SubappUrl(injector, "^subapp/", SubAppUrls.class);
   
    assertTrue(url.matches("subapp/view/"));
    assertFalse(url.matches("subapp/view1/"));
    assertFalse(url.matches("subapp1/view/"));
   
    try {
      MethodObjectParams map = url.getMethodObjectParams("subapp/view/", new HttpRequest());
View Full Code Here


  public void testSuburl() throws Exception {
    Injector injector = Guice.createInjector(new MyModule());
    SubappUrl url = new SubappUrl(injector, "^subapp/", SubAppUrls.class);
   
    assertTrue(url.matches("subapp/view/"));
    assertFalse(url.matches("subapp/view1/"));
    assertFalse(url.matches("subapp1/view/"));
   
    try {
      MethodObjectParams map = url.getMethodObjectParams("subapp/view/", new HttpRequest());
      RequestProcessor.invoke(map, injector);
View Full Code Here

    Injector injector = Guice.createInjector(new MyModule());
    SubappUrl url = new SubappUrl(injector, "^subapp/", SubAppUrls.class);
   
    assertTrue(url.matches("subapp/view/"));
    assertFalse(url.matches("subapp/view1/"));
    assertFalse(url.matches("subapp1/view/"));
   
    try {
      MethodObjectParams map = url.getMethodObjectParams("subapp/view/", new HttpRequest());
      RequestProcessor.invoke(map, injector);
      fail ("Exception did not get thrown");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.