use of org.flywaydb.core.internal.util.scanner.Resource in project flyway by flyway.
the class ClassPathScannerSmallTest method scanForResourcesSplitDirectory.
@Test
public void scanForResourcesSplitDirectory() throws Exception {
Resource[] resources = classPathScanner.scanForResources(new Location("classpath:org/flywaydb/core/internal/dbsupport"), "create", ".sql");
assertTrue(resources.length > 7);
assertEquals("org/flywaydb/core/internal/dbsupport/db2/createMetaDataTable.sql", resources[0].getLocation());
}
use of org.flywaydb.core.internal.util.scanner.Resource in project flyway by flyway.
the class ClassPathScannerSmallTest method scanForResourcesDefaultPackage.
@Test
public void scanForResourcesDefaultPackage() throws Exception {
Resource[] resources = classPathScanner.scanForResources(new Location("classpath:"), "logback", "");
assertEquals(1, resources.length);
assertEquals("logback.xml", resources[0].getLocation());
}
Aggregations