use of org.opennms.web.assets.api.AssetResource in project opennms by OpenNMS.
the class AssetLocatorImplTest method testGetResourcesUnminified.
@Test
public void testGetResourcesUnminified() throws Exception {
final Optional<Collection<AssetResource>> resources = m_locator.getResources("test-asset", false);
assertTrue(resources.isPresent());
assertNotNull(resources.get());
assertEquals(1, resources.get().size());
final AssetResource resource = resources.get().iterator().next();
assertEquals("test-asset", resource.getAsset());
assertEquals("js", resource.getType());
assertEquals("assets/test.js", resource.getPath());
}
Aggregations