Package com.hp.jena.rules.ast.tests.TestElement

Examples of com.hp.jena.rules.ast.tests.TestElement.VisitElement


   
    @Test public void ensureFilterVisitInvokesVisitFilter()
        {
        Expr e = new Expr( "someFunction" );
        Filter f = new Filter( e );
        VisitElement v = new VisitFilter();
        f.visit( v );
        assertSame( f, v.seen.get() );
        }
View Full Code Here


   
    @Test public void ensureTriplesVisitInvokesVisitTriples()
        {
        List<Term> terms = new ArrayList<Term>();
        Triples t = new Triples( terms );
        VisitElement v  = new VisitTriples();
        t.visit( v );
        assertSame( t, v.seen.get() );
        }
View Full Code Here

        }
   
    @Test public void ensureUnlessVisitInvokesVisitUnless()
        {
        Unless u = new Unless( "theName", new Elements() );
        VisitElement v  = new VisitUnless();
        u.visit( v );
        assertSame( u, v.seen.get() );
        }
View Full Code Here

        }
   
    @Test public void ensureTriplesVisitInvokesVisitTriples()
        {
        Elements e = new Elements();
        VisitElement v  = new VisitElements();
        e.visit( v );
        assertSame( e, v.seen.get() );
        }
View Full Code Here

    @Test public void ensureLetVisitInvokesVisitFilter()
        {
        Expr e = new Expr( "someFunction" );
        Item name = Item.createVariable( "x" );
        Ref<Element> seen = new Ref<Element>();
        VisitElement v = new VisitLet();
        Let l = new Let( name, e );
        l.visit( v );
        assertSame( l, v.seen.get() );
        }
View Full Code Here

TOP

Related Classes of com.hp.jena.rules.ast.tests.TestElement.VisitElement

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.