Search in sources :

Example 1 with ResourceAssertions

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);
}
Also used : ResourceAssertions(org.apache.sling.resourcebuilder.test.ResourceAssertions) MockResourceResolverFactory(org.apache.sling.testing.resourceresolver.MockResourceResolverFactory) Before(org.junit.Before)

Example 2 with ResourceAssertions

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);
}
Also used : ResourceAssertions(org.apache.sling.resourcebuilder.test.ResourceAssertions) Before(org.junit.Before)

Example 3 with ResourceAssertions

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);
}
Also used : ResourceAssertions(org.apache.sling.resourcebuilder.test.ResourceAssertions) Before(org.junit.Before)

Aggregations

ResourceAssertions (org.apache.sling.resourcebuilder.test.ResourceAssertions)3 Before (org.junit.Before)3 MockResourceResolverFactory (org.apache.sling.testing.resourceresolver.MockResourceResolverFactory)1