@Test public void testResourceResolverFactoryActivatorProps() { // skip this test for resource resolver mock, because it does not respect the custom config if (context.resourceResolverType() == ResourceResolverType.RESOURCERESOLVER_MOCK) { return; } context.create().resource("/apps/node1"); context.create().resource("/libs/node1"); context.create().resource("/libs/node2"); context.create().resource("/testpath/node1"); context.create().resource("/testpath/node2"); context.create().resource("/testpath/node3"); assertEquals("/apps/node1", context.resourceResolver().getResource("node1").getPath()); assertEquals("/libs/node2", context.resourceResolver().getResource("node2").getPath()); assertEquals("/testpath/node3", context.resourceResolver().getResource("node3").getPath()); assertNull(context.resourceResolver().getResource("node4")); }
@Test public void testRequest() { assertNotNull(context.request()); }