Package com.singularsys.jeptests.system

# Class SerializationTest

java.lang.Object
com.singularsys.jeptests.system.SerializationTest

public class SerializationTest extends Object
Tests for serialization of expressions and Jep instances.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final Node.HookKey`
  `ANON_KEY`
  `static final boolean`
  `PRINT_RESULTS`
  `static final Node.HookKey`
  `RR_KEY`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SerializationTest()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `test_anon_hookKeys_for_variables_fails_without_readResolve()`
  `void`
  `test_anon_hookKeys_with_readResolve_for_variables_has_single_instance()`
  `void`
  `test_enum_hookKeys_for_nodes_have_a_single_instance()`
  `void`
  `test_enum_hookKeys_for_variables_have_a_single_instance()`
  `void`
  `testConstantsLW()`
  `void`
  `testConstantsSerialised()`
  `void`
  `testExpr()`
  Test simple serialization
  `void`
  `testImport()`
  Test passing serialized objects between two jep instances
  `void`
  `testJepConfigParser()`
  `void`
  `testJepStdParser()`
  `void`
  `testRead()`
  Reads from a stream which contains a serialised version of jep and an expression
  `void`
  `testSerializableExpression()`
  Test passing serialized objects between two jep instances
  `void`
  `testSizes()`
  `void`
  `testStringRep()`
  `void`
  `testVariableTable()`
  `void`
  `testWrite()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### PRINT_RESULTS

    public static final boolean PRINT_RESULTS

  - ### ANON_KEY

    public static final Node.HookKey ANON_KEY

  - ### RR_KEY

    public static final Node.HookKey RR_KEY

- ## Constructor Details

  - ### SerializationTest

    public SerializationTest()

- ## Method Details

  - ### testExpr

    @Test public void testExpr() throws Exception
    Test simple serialization
    Throws:
      `Exception`

  - ### testStringRep

    @Test public void testStringRep() throws Exception
    Throws:
      `Exception`

  - ### testSerializableExpression

    @Test public void testSerializableExpression() throws Exception
    Test passing serialized objects between two jep instances
    Throws:
      `Exception`

  - ### testImport

    @Test public void testImport() throws Exception
    Test passing serialized objects between two jep instances
    Throws:
      `Exception`

  - ### testVariableTable

    @Test public void testVariableTable() throws Exception
    Throws:
      `Exception`

  - ### testJepStdParser

    @Test public void testJepStdParser() throws Exception
    Throws:
      `Exception`

  - ### testJepConfigParser

    @Test public void testJepConfigParser() throws Exception
    Throws:
      `Exception`

  - ### testSizes

    @Test public void testSizes() throws Exception
    Throws:
      `Exception`

  - ### testWrite

    @Test public void testWrite() throws Exception
    Throws:
      `Exception`

  - ### testRead

    @Test public void testRead() throws Exception
    Reads from a stream which contains a serialised version of jep and an expression
    Throws:
      `Exception`

  - ### testConstantsLW

    @Test public void testConstantsLW() throws Exception
    Throws:
      `Exception`

  - ### testConstantsSerialised

    @Test public void testConstantsSerialised() throws Exception
    Throws:
      `Exception`

  - ### test_enum_hookKeys_for_variables_have_a_single_instance

    @Test public void test_enum_hookKeys_for_variables_have_a_single_instance() throws IOException, ClassNotFoundException
    Throws:
      `IOException`
      `ClassNotFoundException`

  - ### test_anon_hookKeys_for_variables_fails_without_readResolve

    @Test public void test_anon_hookKeys_for_variables_fails_without_readResolve() throws IOException, ClassNotFoundException
    Throws:
      `IOException`
      `ClassNotFoundException`

  - ### test_anon_hookKeys_with_readResolve_for_variables_has_single_instance

    @Test public void test_anon_hookKeys_with_readResolve_for_variables_has_single_instance() throws IOException, ClassNotFoundException
    Throws:
      `IOException`
      `ClassNotFoundException`

  - ### test_enum_hookKeys_for_nodes_have_a_single_instance

    @Test public void test_enum_hookKeys_for_nodes_have_a_single_instance() throws JepException, IOException, ClassNotFoundException
    Throws:
      `JepException`
      `IOException`
      `ClassNotFoundException`