Search in sources :

Example 1 with DefaultMavenReaderFilter

use of org.apache.maven.shared.filtering.DefaultMavenReaderFilter in project maven-plugins by apache.

the class ReaderFormatterTest method getPojoConfigSource.

private PojoConfigSource getPojoConfigSource() {
    final PojoConfigSource cfg = new PojoConfigSource();
    cfg.setEncoding("UTF-8");
    DefaultMavenReaderFilter mavenReaderFilter = new DefaultMavenReaderFilter();
    mavenReaderFilter.enableLogging(new ConsoleLogger(2, "fud"));
    cfg.setMavenReaderFilter(mavenReaderFilter);
    cfg.setEscapeString(null);
    cfg.setMavenProject(createBasicMavenProject());
    /*        expect( configSource.getFilters()).andReturn( filters );

        expect( configSource.isIncludeProjectBuildFilters()).andReturn( includeProjectBuildFilters );

        expect( configSource.getDelimiters()).andReturn( delimiters );
*/
    return cfg;
}
Also used : DefaultMavenReaderFilter(org.apache.maven.shared.filtering.DefaultMavenReaderFilter) ConsoleLogger(org.codehaus.plexus.logging.console.ConsoleLogger) PojoConfigSource(org.apache.maven.plugins.assembly.testutils.PojoConfigSource)

Aggregations

PojoConfigSource (org.apache.maven.plugins.assembly.testutils.PojoConfigSource)1 DefaultMavenReaderFilter (org.apache.maven.shared.filtering.DefaultMavenReaderFilter)1 ConsoleLogger (org.codehaus.plexus.logging.console.ConsoleLogger)1