org.topbraid.core.composite.tests
Class CompositesTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.topbraid.core.testing.AbstractTBTestCase
              extended by org.topbraid.core.testing.AbstractTBTestCaseEnhanced
                  extended by org.topbraid.core.composite.tests.CompositesTests
All Implemented Interfaces:
junit.framework.Test

public class CompositesTests
extends AbstractTBTestCaseEnhanced

Author:
Gokhan H. Soydan

Field Summary
static java.lang.String BOY
           
static java.lang.String CHILD
           
static java.lang.String[] CHILDPROPS0
           
static java.lang.String[] CHILDPROPS1
           
static java.lang.String CHILDURI
           
static java.lang.String FATHER
           
static java.lang.String GIRL
           
static java.lang.String PERSON
           
 
Fields inherited from class org.topbraid.core.testing.AbstractTBTestCase
BASE_URI, NS, URI
 
Constructor Summary
CompositesTests()
           
 
Method Summary
 void assertGetChildIndex(java.lang.Integer expectedIndex, int childNum)
          Tests Composites.getChildIndex Composites.getChildIndexStatement
protected  com.hp.hpl.jena.ontology.OntModel createOntModel(java.lang.String[] childProperties)
           
 void test01()
          Tests begin here
 void test02()
           
 void test03()
           
 void test04()
           
 void test05()
           
 void test06()
           
 void test07()
           
 void testSortProperties()
           
 void testToughest()
           
 
Methods inherited from class org.topbraid.core.testing.AbstractTBTestCaseEnhanced
createInstance, createProperty, createProperty, importURI
 
Methods inherited from class org.topbraid.core.testing.AbstractTBTestCase
assertSize, createModel, createNonNegativeInteger, createOntModel, createOntModel, execute
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHILD

public static final java.lang.String CHILD
See Also:
Constant Field Values

FATHER

public static final java.lang.String FATHER
See Also:
Constant Field Values

PERSON

public static final java.lang.String PERSON
See Also:
Constant Field Values

BOY

public static final java.lang.String BOY
See Also:
Constant Field Values

GIRL

public static final java.lang.String GIRL
See Also:
Constant Field Values

CHILDURI

public static final java.lang.String CHILDURI

CHILDPROPS0

public static final java.lang.String[] CHILDPROPS0

CHILDPROPS1

public static final java.lang.String[] CHILDPROPS1
Constructor Detail

CompositesTests

public CompositesTests()
Method Detail

assertGetChildIndex

public void assertGetChildIndex(java.lang.Integer expectedIndex,
                                int childNum)
Tests
  • Composites.getChildIndex
  • Composites.getChildIndexStatement
  • Parameters:
    expectedIndex -
    childNum -

    createOntModel

    protected com.hp.hpl.jena.ontology.OntModel createOntModel(java.lang.String[] childProperties)

    test01

    public void test01()
    Tests begin here


    test02

    public void test02()

    test03

    public void test03()

    test04

    public void test04()

    test05

    public void test05()

    test06

    public void test06()

    test07

    public void test07()

    testToughest

    public void testToughest()

    testSortProperties

    public void testSortProperties()