Package com.hp.jena.rules.functions.tests

Source Code of com.hp.jena.rules.functions.tests.TestTrue

/*
  (c) Copyright 2008, 2009 Hewlett-Packard Development Company, LP
   All rights reserved.
   $Id$
*/


package com.hp.jena.rules.functions.tests;

import static org.junit.Assert.*;

import org.junit.Test;

import com.hp.jena.graph.Node;
import com.hp.jena.rules.functions.True;
import com.hp.jena.rules.retelike.impl.Bindings;
import com.hp.jena.rules.retelike.impl.ExecContext;
import com.hp.jena.rules.retelike.impl.Applyable;

public class TestTrue
    {
    @Test public void ensureTrueAnswersTrue()
        {
        Applyable p = new True();
        Bindings<Node, Node> empty = null;
        ExecContext e = null;
        assertTrue( p.evalBool( e, empty ) );
        }
    }
TOP

Related Classes of com.hp.jena.rules.functions.tests.TestTrue

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.