| test.org.mandarax.ser.SerializationTestCase
All known Subclasses: test.org.mandarax.ser.SerializationTestCase4Rules, test.org.mandarax.ser.SerializationTestCase4AdvancedKnowledgeBases, test.org.mandarax.ser.SerializationTestCase4JFunctions, test.org.mandarax.ser.SerializationTestCase4DynaBeanFunctions, test.org.mandarax.ser.SerializationTestCase4Queries, test.org.mandarax.ser.SerializationTestCase4ComplexTerms, test.org.mandarax.ser.SerializationTestCase4MandaraxLibFunctions, test.org.mandarax.ser.SerializationTestCase4Facts, test.org.mandarax.ser.SerializationTestCase4SerializableDataSourceDummies, test.org.mandarax.ser.SerializationTestCase4SQLClauseSets, test.org.mandarax.ser.SerializationTestCase4JPredicates, test.org.mandarax.ser.SerializationTestCase4SQLPredicates, test.org.mandarax.ser.SerializationTestCase4SerializableTestObjects, test.org.mandarax.ser.SerializationTestCase4Object, test.org.mandarax.ser.SerializationTestCase4SQLFunctions, test.org.mandarax.ser.SerializationTestCase4VariableTerms, test.org.mandarax.ser.SerializationTestCase4MandaraxLibPredicates, test.org.mandarax.ser.SerializationTestCase4Comparators, test.org.mandarax.ser.SerializationTestCase4SimplePredicates, test.org.mandarax.ser.SerializationTestCase4KnowledgeBases, test.org.mandarax.ser.SerializationTestCase4ConstantTerms,
SerializationTestCase | abstract public class SerializationTestCase extends junit.framework.TestCase (Code) | | Superclass for testing serialization of objects.
From version 3.1, tests are supported for binary serialization as well as for (jdk 1.4 and later)
xml serialization!
author: Jens Dietrich version: 3.4 <7 March 05> since: 1.9.1 |
BIN_SERIALIZE | final public static int BIN_SERIALIZE(Code) | | |
FILENAME4BIN_MODE | final public static String FILENAME4BIN_MODE(Code) | | |
FILENAME4XML_MODE | final public static String FILENAME4XML_MODE(Code) | | |
XML_SERIALIZE | final public static int XML_SERIALIZE(Code) | | |
XML_SERIALIZE_WITH_DELEGATES | final public static int XML_SERIALIZE_WITH_DELEGATES(Code) | | |
SerializationTestCase | public SerializationTestCase(LogicFactory lfactory)(Code) | | Constructor.
Parameters: lfactory - the logic factory used |
SerializationTestCase | public SerializationTestCase()(Code) | | Constructor.
|
compare | protected boolean compare(Object original, Object deserialized)(Code) | | Compare the original object and the object that has been recovered from
the serialized file.
Parameters: obj - original Parameters: deserialized - the deserialized object a boolean |
compareKBs | protected boolean compareKBs(KnowledgeBase kb1, Object deserialized)(Code) | | Compare knowledge bases.
Parameters: obj - original Parameters: deserialized - the deserialized knowledge base a boolean |
createFact | protected Fact createFact()(Code) | | Create a fact,
a fact. |
createPrereq | protected Prerequisite createPrereq()(Code) | | Create a prerequisite
a prerequisite. |
createQuery | protected Query createQuery()(Code) | | Create a query.
a query |
createRule | protected Rule createRule()(Code) | | Create a rule.
a rule |
getLogicFactory | public LogicFactory getLogicFactory()(Code) | | Get the logic factory used.
a logic factory |
getObject | abstract protected Object getObject()(Code) | | Get the object to be tested.
an object |
setLogicFactory | public void setLogicFactory(LogicFactory lfactory)(Code) | | Sets the logic factory.
Parameters: lfactory - The logic factory to set |
setSerializationMode | public void setSerializationMode(int serMode)(Code) | | Set the serialization mode.
Parameters: serializationMode - an int constant defined in the class |
toString | public String toString()(Code) | | Convert the object to a string.
a string |
|
|