@Test public void testRuntimeResourceModel() { ResourceModel resourceModel = getResourceModel(); final RuntimeResourceModel runtimeResourceModel = resourceModel.getRuntimeResourceModel(); final List<RuntimeResource> runtimeResources = runtimeResourceModel.getRuntimeResources(); assertEquals(2, runtimeResources.size()); final RuntimeResource a = ResourceTestUtils.getRuntimeResource(runtimeResources, "/a"); ResourceTestUtils.containsExactMethods(a, false, "GET", "POST"); final List<RuntimeResource> aChildRuntimeResources = a.getChildRuntimeResources(); assertEquals(2, aChildRuntimeResources.size()); final RuntimeResource childResource = ResourceTestUtils.getRuntimeResource(aChildRuntimeResources, "/child"); ResourceTestUtils.containsExactMethods(childResource, false, "GET"); testTemplate(runtimeResources); }
public RuntimeResourceModel getRuntimeResourceModel() { return runtimeRootResourceModelValue.get(); }
ResourceModel implements ResourceModelComponent { public RuntimeResourceModel getRuntimeResourceModel() { return runtimeRootResourceModelValue.get(); } }
ResourceModel implements ResourceModelComponent { public RuntimeResourceModel getRuntimeResourceModel() { return runtimeRootResourceModelValue.get(); } private  ResourceModel(List<Resource> rootResources, List<Resource> allResources); }
ResourceModel implements ResourceModelComponent { public RuntimeResourceModel getRuntimeResourceModel() { return runtimeRootResourceModelValue.get(); } private  ResourceModel(List<Resource> rootResources, List<Resource> allResources); List<Resource> getRootResources(); List<Resource> getResources(); @Override void accept(ResourceModelVisitor visitor); @Override List<? extends ResourceModelComponent> getComponents(); RuntimeResourceModel getRuntimeResourceModel(); }
ResourceModel implements ResourceModelComponent { public RuntimeResourceModel getRuntimeResourceModel() { return runtimeRootResourceModelValue.get(); } private  ResourceModel(List<Resource> rootResources, List<Resource> allResources); List<Resource> getRootResources(); List<Resource> getResources(); @Override void accept(ResourceModelVisitor visitor); @Override List<? extends ResourceModelComponent> getComponents(); RuntimeResourceModel getRuntimeResourceModel();  }