CompositeResolver extends ResourceResolverBase { @Override public RResponse resolve(RRequest request) { ResponseBuilder response = request.noResultResponse(); for (ResourceResolver r: inputs) { RResponse res = r.resolve(request); if (res.hasResult()) { return response.withResult(res.getResult()); } response = response.withResponse(res); } return response; } CompositeResolver(ResourceResolver... inputs); @SuppressWarnings("SuspiciousToArrayCall")  CompositeResolver(Collection<? extends ResourceResolver> inputs); protected  CompositeResolver(boolean clone, ResourceResolver... inputs); static CompositeResolver all(ResourceResolver r0, ResourceResolver... more); static CompositeResolver join(ResourceResolver r0, ResourceResolver... more); @Override RResponse resolve(RRequest request); @Override ResourceResolver immutable(); @Override String toString();  }
@Test public void test_w3XMLSchema_resource_exists() throws Exception { RResult res = resolve(r(OrgW3Resolver.NS_W3_XMLSCHEMA)); assertThat(res, is(notNullValue())); assertThat(res.getInputStream().read(), is(greaterThan(-1))); }
@Test public void test_w3XML_resource_exists() throws Exception { RResult res = resolve(r(OrgW3Resolver.NS_W3_XML)); assertThat(res, is(notNullValue())); assertThat(res.getInputStream().read(), is(greaterThan(-1))); }
@Test public void test_menu_schema_file_exists() throws Exception { RResult res = resolve(r(NS_MENU)); assertThat(res, is(notNullValue())); assertThat(res.getInputStream().read(), is(greaterThan(-1))); }
@Test public void test_cars_schema_file_exists() throws Exception { RResult res = resolve(r(NS_CARS)); assertThat(res, is(notNullValue())); assertThat(res.getInputStream().read(), is(greaterThan(-1))); }