LocalServiceRequest extends ServiceRequest { public static LocalServiceRequest create(String url) throws Exception { return create(url, null); } LocalServiceRequest(); static LocalServiceRequest create(String url); static LocalServiceRequest create(String url, Element params); void beginStream(String contentType, boolean cache); void beginStream(String contentType, int contentLength,
                            String contentDisposition, boolean cache); void endStream(); String getResultString(); Element getResult(); @Override String toString();  }
@Test public void testParseLocalURLNoLangNoParams() throws Exception { LocalServiceRequest req = LocalServiceRequest.create("local: assertNoLangNoParams(req); }
@Test public void testParseLocalURLNoLangURLWithLangInParams() throws Exception { LocalServiceRequest req = LocalServiceRequest .create("local: assertNull("Expected Null but got: " + req.getLanguage(), req.getLanguage()); assertEquals("csw", req.getService()); assertEquals("request", req.getParams().getName()); assertEquals(3, req.getParams().getChildren().size()); }
@Test public void testParseRelativeURLNoLangNoParams() throws Exception { assertNoLangNoParams(LocalServiceRequest.create("/csw")); }
@Test public void testParseRelative2URLNoLangNoParams() throws Exception { assertNoLangNoParams(LocalServiceRequest.create("csw")); }
@Test public void testParseLocalURLLangNoParams() throws Exception { LocalServiceRequest req = LocalServiceRequest.create("local: assertLangNoParams(req); }
@Test public void testParseRelativeURLLangNoParams() throws Exception { assertLangNoParams(LocalServiceRequest.create("/eng/csw")); }
@Test public void testParseRelative2URLLangNoParams() throws Exception { assertLangNoParams(LocalServiceRequest.create("eng/csw")); }
@Test public void testParseLocalURLLangParams() throws Exception { assertLangParams(LocalServiceRequest.create("local: }
@Test public void testParseRelativeURLLangParams() throws Exception { assertLangParams(LocalServiceRequest.create("/deu/csw?version=1.0.0")); }
@Test public void testParseRelative2URLLangParams() throws Exception { assertLangParams(LocalServiceRequest.create("deu/csw?version=1.0.0")); }