use of org.apache.maven.shared.io.logging.DefaultMessageHolder in project maven-plugins by apache.
the class PrefixedClasspathLocatorStrategyTest method testResolvePrefixWithLeadingSlashAndWithTrailingSlash.
public void testResolvePrefixWithLeadingSlashAndWithTrailingSlash() {
MessageHolder mh = new DefaultMessageHolder();
LocatorStrategy ls = new PrefixedClasspathLocatorStrategy("/assemblies/");
Location location = ls.resolve("empty.xml", mh);
assertNotNull(location);
assertEquals(0, mh.size());
}
use of org.apache.maven.shared.io.logging.DefaultMessageHolder in project maven-plugins by apache.
the class PrefixedClasspathLocatorStrategyTest method testResolvePrefixWithoutLeadingSlashAndWithoutTrailingSlash.
public void testResolvePrefixWithoutLeadingSlashAndWithoutTrailingSlash() {
MessageHolder mh = new DefaultMessageHolder();
LocatorStrategy ls = new PrefixedClasspathLocatorStrategy("assemblies");
Location location = ls.resolve("empty.xml", mh);
assertNotNull(location);
assertEquals(0, mh.size());
}
use of org.apache.maven.shared.io.logging.DefaultMessageHolder in project maven-plugins by apache.
the class PrefixedClasspathLocatorStrategyTest method testResolvePrefixWithoutLeadingSlashAndWithTrailingSlash.
public void testResolvePrefixWithoutLeadingSlashAndWithTrailingSlash() {
MessageHolder mh = new DefaultMessageHolder();
LocatorStrategy ls = new PrefixedClasspathLocatorStrategy("assemblies/");
Location location = ls.resolve("empty.xml", mh);
assertNotNull(location);
assertEquals(0, mh.size());
}
use of org.apache.maven.shared.io.logging.DefaultMessageHolder in project maven-plugins by apache.
the class PrefixedClasspathLocatorStrategyTest method testResolvePrefixWithLeadingSlashAndWithoutTrailingSlash.
public void testResolvePrefixWithLeadingSlashAndWithoutTrailingSlash() {
MessageHolder mh = new DefaultMessageHolder();
LocatorStrategy ls = new PrefixedClasspathLocatorStrategy("/assemblies");
Location location = ls.resolve("empty.xml", mh);
assertNotNull(location);
assertEquals(0, mh.size());
}
Aggregations