Package com.hp.hpl.jena.eyeball.assemblers

Examples of com.hp.hpl.jena.eyeball.assemblers.InspectorAssembler


        {}

    @Test public void testEmptyInspectors()
        {
        Resource r = resourceInModel( "x rdf:type eye:Inspector" );
        Inspector i = (Inspector) new InspectorAssembler().open( r );
        assertInstanceOf( NullInspector.class, i );
        }
View Full Code Here


    private void testAssemblesInspectorByName( Class<? extends Inspector> inspectorClass )
        {
        String morse = inspectorClass.getName();
        Resource r = resourceInModel
            ( "x rdf:type eye:Inspector; x eye:className '" + morse + "'" );
        Inspector i = (Inspector) new InspectorAssembler().open( r );
        assertInstanceOf( inspectorClass, i );
        }
View Full Code Here

        String A = InspectorMorse.class.getName(), B = InspectorLewis.class.getName();
        Resource r = resourceInModel
            ( "x rdf:type eye:Inspector & eye:include A & eye:include B"
            + "; A rdf:type eye:Inspector & eye:className '" + A + "'"
            + "; B rdf:type eye:Inspector & eye:className '" + B + "'" );
        Inspector i = (Inspector) new InspectorAssembler().open( r );
        Report report = new Report();
        i.end( report );
        String expected =
            "[eye:mainProperty inspectorWasHere & inspectorWasHere 'lewis']"
            + "; [eye:mainProperty inspectorWasHere & inspectorWasHere 'morse']";
View Full Code Here

        String A = InspectorMorse.class.getName(), B = InspectorLewis.class.getName();
        Resource r = resourceInModel
            ( "x rdf:type eye:Inspector; x eye:includeByName 'nameA'; x eye:includeByName 'nameB'"
            + "; A rdf:type eye:Inspector & eye:shortName 'nameA' & eye:className '" + A + "'"
            + "; B rdf:type eye:Inspector & eye:shortName 'nameB' & eye:className '" + B + "'" );
        Inspector i = (Inspector) new InspectorAssembler().open( r );
        Report report = new Report();
        i.end( report );
        String expected =
            "[eye:mainProperty inspectorWasHere & inspectorWasHere 'lewis']"
            + "; [eye:mainProperty inspectorWasHere & inspectorWasHere 'morse']";
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.eyeball.assemblers.InspectorAssembler

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.