Examples of matchFileNames()


Examples of org.apache.jena.tools.schemagen.SchemagenMojo.matchFileNames()

    @Test
    public void testMatchFileNames0() {
        SchemagenMojo sm = new SchemagenMojo();

        List<String> s = sm.matchFileNames();
        assertNotNull(s);
        assertTrue( s.isEmpty() );
    }

    @Test
View Full Code Here

Examples of org.apache.jena.tools.schemagen.SchemagenMojo.matchFileNames()

    @Test
    public void testMatchFileNames1() {
        SchemagenMojo sm = new SchemagenMojo();
        String f = "src/test/resources/test1/test1.ttl";
        sm.addIncludes( f );
        List<String> s = sm.matchFileNames();
        assertNotNull(s);
        assertEquals( 1, s.size() );
        assertEquals( new File(f), new File(s.get(0)) );
    }
View Full Code Here

Examples of org.apache.jena.tools.schemagen.SchemagenMojo.matchFileNames()

    @Test
    public void testMatchFileNames2() {
        SchemagenMojo sm = new SchemagenMojo();
        String f = "src/test/resources/test1/*.ttl";
        sm.addIncludes( f );
        List<String> s = sm.matchFileNames();
        assertNotNull(s);
        assertEquals( 2, s.size() );
        assertTrue( s.get(0).endsWith( "test1.ttl" ));
        assertTrue( s.get(1).endsWith( "test2.ttl" ));
    }
View Full Code Here

Examples of org.apache.jena.tools.schemagen.SchemagenMojo.matchFileNames()

        SchemagenMojo sm = new SchemagenMojo();
        String f = "src/test/resources/test1/*.ttl";
        sm.addIncludes( f );
        sm.addExcludes( "src/test/resources/test1/test1.ttl" );

        List<String> s = sm.matchFileNames();
        assertNotNull(s);
        assertEquals( 1, s.size() );
        assertTrue( s.get(0).endsWith( "test2.ttl" ));
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.