Package org.pentaho.platform.web.servlet

Examples of org.pentaho.platform.web.servlet.LocalizationServlet.doGet()


    LocalizationServlet ls = new LocalizationServlet();
    MockHttpServletRequest req = new MockHttpServletRequest();
    MockHttpServletResponse resp = new MockHttpServletResponse();
    req.setParameter( "plugin", "test-plugin" );
    req.setParameter( "name", "messages/messages" );
    ls.doGet( req, resp );
  }

  @Test
  public void doGet_invalid_plugin() throws IOException, ServletException {
    LocalizationServlet ls = new LocalizationServlet();
View Full Code Here


  public void doGet_invalid_plugin() throws IOException, ServletException {
    LocalizationServlet ls = new LocalizationServlet();
    MockHttpServletRequest req = new MockHttpServletRequest();
    MockHttpServletResponse resp = new MockHttpServletResponse();
    req.setParameter( "plugin", "invalid-plugin" );
    ls.doGet( req, resp );
    assertEquals( HttpServletResponse.SC_INTERNAL_SERVER_ERROR, resp.getStatus() );
  }

  public static class TestPluginProvider implements IPluginProvider {
    public static final String TEST_PLUGIN = "test-plugin";
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.