Package com.hp.hpl.jena.eyeball

Examples of com.hp.hpl.jena.eyeball.Finder


        { super( "TestFinder" ); }

    @Test public void testEmptyConfig()
        {
        Model m = m( "" );
        try { new Finder( m ).getClassNames( "absent" ); }
        catch (NotFoundException e ) { assertEquals( "absent", e.getMessage() ); }
        }
View Full Code Here


        }

    @Test public void testIrrelevantConfig()
        {
        Model m = m( "_x eye:shortName 'present'" );
        try { new Finder( m ).getClassNames( "absent" ); }
        catch (NotFoundException e ) { assertEquals( "absent", e.getMessage() ); }
        }
View Full Code Here

        }

    @Test public void testNoClassesConfig()
        {
        Model m = m( "_x eye:shortName 'absent'" );
        assertEquals( new ArrayList<String>(), new Finder( m ).getClassNames( "absent" ) );
        }
View Full Code Here

            + "; _y eye:inspector 'ys.Class'; _y eye:include _x" );
        assertEquals( setOfStrings( "xs.Class ys.Class" ), getNamesAsSet( m, "ben" ) );
        }

    protected Set<String> getNamesAsSet( Model m, String name )
        { return new HashSet<String>( new Finder( m ).getClassNames( name ) ); }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.eyeball.Finder

Copyright © 2018 www.massapicom. 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.