Search in sources :

Example 11 with ResourceLoader

use of com.tvd12.ezyhttp.server.core.resources.ResourceLoader in project ezyhttp by youngmonkeys.

the class ResourceLoaderTest method loadFromJarMatchTest.

@Test
public void loadFromJarMatchTest() {
    // given
    ResourceLoader sut = new ResourceLoader();
    // when
    List<String> listResources = sut.listResources("com/tvd12/ezyfox/net", Sets.newHashSet(".+"));
    // then
    Asserts.assertFalse(listResources.isEmpty());
}
Also used : ResourceLoader(com.tvd12.ezyhttp.server.core.resources.ResourceLoader) Test(org.testng.annotations.Test)

Aggregations

ResourceLoader (com.tvd12.ezyhttp.server.core.resources.ResourceLoader)11 Test (org.testng.annotations.Test)11 URL (java.net.URL)3 JarFile (java.util.jar.JarFile)3 File (java.io.File)2 MalformedURLException (java.net.MalformedURLException)2 EzySupplier (com.tvd12.ezyfox.function.EzySupplier)1