Examples of addIncludes()


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

    @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.addIncludes()

    @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.addIncludes()

    @Test
    public void testMatchFileNames3() {
        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() );
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.