Package org.nutz.mvc

Examples of org.nutz.mvc.RequestPath


  }

  @Test
  public void testPointPath() throws Throwable {
    request.setPathInfo("/1.2/say.nutz");
    RequestPath path = Mvcs.getRequestPathObject(request);
    assertNotNull(path);
    assertEquals("/1.2/say", path.getPath());
    assertEquals("nutz", path.getSuffix());

    request.setPathInfo("/1.2/say");
    path = Mvcs.getRequestPathObject(request);
    assertNotNull(path);
    assertEquals("/1.2/say", path.getPath());

    request.setPathInfo("/1.2/say.po/");
    path = Mvcs.getRequestPathObject(request);
    assertNotNull(path);
    assertEquals("/1.2/say.po/", path.getPath());

    request.setPathInfo("/1.2/say.po/.nut");
    path = Mvcs.getRequestPathObject(request);
    assertNotNull(path);
    assertEquals("/1.2/say.po/", path.getPath());
  }
View Full Code Here


    }

    @Test
    public void testPointPath() throws Throwable {
        request.setPathInfo("/1.2/say.nutz");
        RequestPath path = Mvcs.getRequestPathObject(request);
        assertNotNull(path);
        assertEquals("/1.2/say", path.getPath());
        assertEquals("nutz", path.getSuffix());

        request.setPathInfo("/1.2/say");
        path = Mvcs.getRequestPathObject(request);
        assertNotNull(path);
        assertEquals("/1.2/say", path.getPath());

        request.setPathInfo("/1.2/say.po/");
        path = Mvcs.getRequestPathObject(request);
        assertNotNull(path);
        assertEquals("/1.2/say.po/", path.getPath());

        request.setPathInfo("/1.2/say.po/.nut");
        path = Mvcs.getRequestPathObject(request);
        assertNotNull(path);
        assertEquals("/1.2/say.po/", path.getPath());
    }
View Full Code Here

    }

    @Test
    public void testPointPath() throws Throwable {
        request.setPathInfo("/1.2/say.nutz");
        RequestPath path = Mvcs.getRequestPathObject(request);
        assertNotNull(path);
        assertEquals("/1.2/say", path.getPath());
        assertEquals("nutz", path.getSuffix());

        request.setPathInfo("/1.2/say");
        path = Mvcs.getRequestPathObject(request);
        assertNotNull(path);
        assertEquals("/1.2/say", path.getPath());

        request.setPathInfo("/1.2/say.po/");
        path = Mvcs.getRequestPathObject(request);
        assertNotNull(path);
        assertEquals("/1.2/say.po/", path.getPath());

        request.setPathInfo("/1.2/say.po/.nut");
        path = Mvcs.getRequestPathObject(request);
        assertNotNull(path);
        assertEquals("/1.2/say.po/", path.getPath());
    }
View Full Code Here

TOP

Related Classes of org.nutz.mvc.RequestPath

Copyright © 2018 www.massapicom. 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.