Package org.springframework.osgi.iandt.web

Examples of org.springframework.osgi.iandt.web.HttpResponse


    HttpResponse resp = HttpClient.getLocalResponse(base(), "jsp/simple.jsp");
    assertTrue(resp.toString(), resp.isOk());
  }

  public void testComplexJSP() throws Exception {
    HttpResponse resp = HttpClient.getLocalResponse(base(), "jsp/complex.jsp");
    assertTrue(resp.toString(), resp.isOk());
  }
View Full Code Here


    return (String[]) col.toArray(new String[col.size()]);
  }

  public void testWarIndexPage() throws Exception {
    HttpResponse response = HttpClient.getLocalResponse(base(), "index.html");
    assertTrue(response.toString(), response.isOk());
  }
View Full Code Here

    HttpResponse response = HttpClient.getLocalResponse(base(), "index.html");
    assertTrue(response.toString(), response.isOk());
  }

  public void testIndexRedirect() throws Exception {
    HttpResponse response = HttpClient.getLocalResponse(base(), "");
    assertTrue(response.toString(), response.isOk());
  }
View Full Code Here

    HttpResponse response = HttpClient.getLocalResponse(base(), "");
    assertTrue(response.toString(), response.isOk());
  }

  public void testOtherPage() throws Exception {
    HttpResponse response = HttpClient.getLocalResponse(base(), "other.html");
    assertTrue(response.toString(), response.isOk());
  }
View Full Code Here

    HttpResponse response = HttpClient.getLocalResponse(base(), "other.html");
    assertTrue(response.toString(), response.isOk());
  }

  public void testNestedPage() throws Exception {
    HttpResponse response = HttpClient.getLocalResponse(base(), "nested/page.html");
    assertTrue(response.toString(), response.isOk());
  }
View Full Code Here

    HttpResponse response = HttpClient.getLocalResponse(base(), "nested/page.html");
    assertTrue(response.toString(), response.isOk());
  }

  public void testUnexistingNestedPage() throws Exception {
    HttpResponse response = HttpClient.getLocalResponse(base(), "nested/no-such-page.html");
    assertTrue(response.toString(), response.isNotFound());
  }
View Full Code Here

  protected String[] getTestBundlesNames() {
    return new String[] { WEB_TESTS_GROUP + "," + GROUP_ID + "," + getSpringDMVersion() + ",war" };
  }

  public void testWarIndexPage() throws Exception {
    HttpResponse response = HttpClient.getLocalResponse(base(), "index.html");
    assertTrue(response.toString(), response.isOk());
  }
View Full Code Here

    HttpResponse response = HttpClient.getLocalResponse(base(), "index.html");
    assertTrue(response.toString(), response.isOk());
  }

  public void testWarServletMapping() throws Exception {
    HttpResponse response = HttpClient.getLocalResponse(base(), "servlet");
    assertTrue(response.toString(), response.isOk());
  }
View Full Code Here

    HttpResponse response = HttpClient.getLocalResponse(base(), "servlet");
    assertTrue(response.toString(), response.isOk());
  }

  public void testWarUnexistingServletMapping() throws Exception {
    HttpResponse response = HttpClient.getLocalResponse(base(), "serv");
    assertTrue(response.toString(), response.isNotFound());
  }
View Full Code Here

TOP

Related Classes of org.springframework.osgi.iandt.web.HttpResponse

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.