Search in sources :

Example 1 with DefaultMessageHolder

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());
}
Also used : DefaultMessageHolder(org.apache.maven.shared.io.logging.DefaultMessageHolder) MessageHolder(org.apache.maven.shared.io.logging.MessageHolder) DefaultMessageHolder(org.apache.maven.shared.io.logging.DefaultMessageHolder) LocatorStrategy(org.apache.maven.shared.io.location.LocatorStrategy) Location(org.apache.maven.shared.io.location.Location)

Example 2 with DefaultMessageHolder

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());
}
Also used : DefaultMessageHolder(org.apache.maven.shared.io.logging.DefaultMessageHolder) MessageHolder(org.apache.maven.shared.io.logging.MessageHolder) DefaultMessageHolder(org.apache.maven.shared.io.logging.DefaultMessageHolder) LocatorStrategy(org.apache.maven.shared.io.location.LocatorStrategy) Location(org.apache.maven.shared.io.location.Location)

Example 3 with DefaultMessageHolder

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());
}
Also used : DefaultMessageHolder(org.apache.maven.shared.io.logging.DefaultMessageHolder) MessageHolder(org.apache.maven.shared.io.logging.MessageHolder) DefaultMessageHolder(org.apache.maven.shared.io.logging.DefaultMessageHolder) LocatorStrategy(org.apache.maven.shared.io.location.LocatorStrategy) Location(org.apache.maven.shared.io.location.Location)

Example 4 with DefaultMessageHolder

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());
}
Also used : DefaultMessageHolder(org.apache.maven.shared.io.logging.DefaultMessageHolder) MessageHolder(org.apache.maven.shared.io.logging.MessageHolder) DefaultMessageHolder(org.apache.maven.shared.io.logging.DefaultMessageHolder) LocatorStrategy(org.apache.maven.shared.io.location.LocatorStrategy) Location(org.apache.maven.shared.io.location.Location)

Aggregations

Location (org.apache.maven.shared.io.location.Location)4 LocatorStrategy (org.apache.maven.shared.io.location.LocatorStrategy)4 DefaultMessageHolder (org.apache.maven.shared.io.logging.DefaultMessageHolder)4 MessageHolder (org.apache.maven.shared.io.logging.MessageHolder)4