use of org.apache.sling.resourcebuilder.test.ResourceAssertions in project sling by apache.
the class ResourceBuilderImplTest method setup.
@Before
public void setup() throws Exception {
when(mimeTypeService.getMimeType(anyString())).thenReturn("application/javascript");
resourceResolver = new MockResourceResolverFactory().getResourceResolver(null);
testRootPath = "/" + UUID.randomUUID().toString();
A = new ResourceAssertions(testRootPath, resourceResolver);
}
use of org.apache.sling.resourcebuilder.test.ResourceAssertions in project sling by apache.
the class FileRetrievalIT method setup.
@Before
public void setup() throws LoginException, PersistenceException {
E = new TestEnvironment(teleporter);
A = new ResourceAssertions(E.parent.getPath(), E.resolver);
}
use of org.apache.sling.resourcebuilder.test.ResourceAssertions in project sling by apache.
the class ResourceBuilderIT method setup.
@Before
public void setup() throws LoginException, PersistenceException {
E = new TestEnvironment(teleporter);
A = new ResourceAssertions(E.parent.getPath(), E.resolver);
}
Aggregations