com.hp.hpl.mesa.rdf.jena.common.regression
Class Regression

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.common.regression.Regression

public class Regression
extends java.lang.Object

A common set of regression tests.

Version:
Release='$Name: $' Revision='$Revision: 1.13 $' Date='$Date: 2002/01/07 10:00:49 $'
Author:
bwm

Inner Class Summary
 class Regression.LitTestObj
           
 class Regression.LitTestObjF
           
 class Regression.ResTestObjF
           
 
Constructor Summary
Regression()
           
 
Method Summary
static void doTest(Model m1, Model m2, Model m3, Model m4)
           
 void error(java.lang.String testName, int testNum)
           
 void error(java.lang.String testName, int testNum, java.lang.Exception e)
           
 void error(java.lang.String testName, int testNum, long v)
           
 boolean getErrors()
           
 boolean setErrors(boolean b)
           
 void test(Model m1, Model m2, Model m3, Model m4)
          Run the whole batch of common tests on a model implementation
 void test1(Model m)
          Test Literal creation methods
 void test10(Model m)
          test the query statements methods of model
 void test11(Model m1, Model m2)
          test model set operations
 void test12(Model m)
          test Resource methods
 void test13(Model m)
          Test Statement methods
 void test14(Model m)
          test bag
 void test15(Model m)
          test Alt
 void test16(Model m)
          test Seq
 void test17(Model m)
          test enhanced resources
 void test18(Model m)
          test load from xml file
 void test19(Model m1, Model m2)
          test moving things between models
 void test2(Model m)
          Test Resource creation methods
 void test20(Model m)
          Empty the passed in model
 void test3(Model m)
          Test model add and contains methods
 void test4(Model m)
          Test model get methods
 void test5(Model m)
          Empty the passed in model
 void test6(Model m)
          test model list methods
 void test7(Model m1, Model m2)
          test add and remove sets and models
 void test8(Model m)
          test list subjects with methods
 void test9(Model m)
          test the list statements methods of model
 void test97(Model m)
          Testing for miscellaneous bugs
 void test99(Model m)
          Empty the passed in model
 void testAlt(Model m, Alt alt1, Alt alt2, Alt alt3, Alt alt4, java.lang.String test, int n)
           
 void testBag(Model m, Bag bag1, Bag bag2, Bag bag3, java.lang.String test, int n)
           
 void testContainer(Model m, Container cont1, Container cont2, java.lang.String test, int n)
           
 void testResource(Model m, Resource r, java.lang.String test, int n, int numProps)
           
 void testSeq(Model m, Seq seq1, Seq seq2, Seq seq3, Seq seq4, Seq seq5, Seq seq6, Seq seq7, java.lang.String test, int n)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Regression

public Regression()
Method Detail

doTest

public static void doTest(Model m1,
                          Model m2,
                          Model m3,
                          Model m4)

test

public void test(Model m1,
                 Model m2,
                 Model m3,
                 Model m4)
Run the whole batch of common tests on a model implementation
Parameters:
m - an instance of the model to be tested

test1

public void test1(Model m)
Test Literal creation methods
Parameters:
m - the model implementation under test

test2

public void test2(Model m)
Test Resource creation methods
Parameters:
m - the model implementation under test

test3

public void test3(Model m)
Test model add and contains methods
Parameters:
m - the model implementation under test

test4

public void test4(Model m)
Test model get methods
Parameters:
m - the model implementation under test

test5

public void test5(Model m)
Empty the passed in model
Parameters:
m - the model implementation under test

test6

public void test6(Model m)
test model list methods
Parameters:
m - the model implementation under test

test7

public void test7(Model m1,
                  Model m2)
test add and remove sets and models
Parameters:
m - the model implementation under test

test8

public void test8(Model m)
test list subjects with methods
Parameters:
m - the model implementation under test

test9

public void test9(Model m)
test the list statements methods of model
Parameters:
m - the model implementation under test

test10

public void test10(Model m)
test the query statements methods of model
Parameters:
m - the model implementation under test

test11

public void test11(Model m1,
                   Model m2)
test model set operations
Parameters:
m - the model implementation under test

test12

public void test12(Model m)
test Resource methods
Parameters:
m - the model implementation under test

test13

public void test13(Model m)
Test Statement methods
Parameters:
m - the model implementation under test

test14

public void test14(Model m)
test bag
Parameters:
m - the model implementation under test

test15

public void test15(Model m)
test Alt
Parameters:
m - the model implementation under test

test16

public void test16(Model m)
test Seq
Parameters:
m - the model implementation under test

test17

public void test17(Model m)
test enhanced resources
Parameters:
m - the model implementation under test

test18

public void test18(Model m)
test load from xml file
Parameters:
m - the model implementation under test

test19

public void test19(Model m1,
                   Model m2)
test moving things between models
Parameters:
m - the model implementation under test

test20

public void test20(Model m)
Empty the passed in model
Parameters:
m - the model implementation under test

test97

public void test97(Model m)
Testing for miscellaneous bugs
Parameters:
m - the model implementation under test

test99

public void test99(Model m)
Empty the passed in model
Parameters:
m - the model implementation under test

testResource

public void testResource(Model m,
                         Resource r,
                         java.lang.String test,
                         int n,
                         int numProps)

testContainer

public void testContainer(Model m,
                          Container cont1,
                          Container cont2,
                          java.lang.String test,
                          int n)

testBag

public void testBag(Model m,
                    Bag bag1,
                    Bag bag2,
                    Bag bag3,
                    java.lang.String test,
                    int n)

testAlt

public void testAlt(Model m,
                    Alt alt1,
                    Alt alt2,
                    Alt alt3,
                    Alt alt4,
                    java.lang.String test,
                    int n)

testSeq

public void testSeq(Model m,
                    Seq seq1,
                    Seq seq2,
                    Seq seq3,
                    Seq seq4,
                    Seq seq5,
                    Seq seq6,
                    Seq seq7,
                    java.lang.String test,
                    int n)

error

public void error(java.lang.String testName,
                  int testNum)

error

public void error(java.lang.String testName,
                  int testNum,
                  long v)

error

public void error(java.lang.String testName,
                  int testNum,
                  java.lang.Exception e)

getErrors

public boolean getErrors()

setErrors

public boolean setErrors(boolean b)


Copyright 2001 Hewlett-Packard. All Rights Reserved.