Package com.singularsys.jeptests.unit.misc

# Class PublishingVariableTest

java.lang.Object
com.singularsys.jeptests.unit.misc.PublishingVariableTest

public class PublishingVariableTest extends Object
Tests for the `PublishingVariable`.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `class`
  `PublishingVariableTest.BasicSubscriber`
  A basic subscriber.
  `class`
  `PublishingVariableTest.MyVariableTableSubscriber`
  A more advances subscriber.
  `static class`
  `PublishingVariableTest.SignallingTableUpdator`
  Updates a variable table when another table changes

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final boolean`
  `PRINT_RESULTS`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PublishingVariableTest()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `attempt_to_set_a_value_of_a_constant()`
  `void`
  `CaseInsensitiveVariableTable_decorates_PublishingVariableTable()`
  Testing `CaseInsensitiveVariableTable.decoratorInstance(new PublishingVariableTable(pub));`
  `void`
  `change_publisher()`
  `void`
  `close_publisher_if_a_variable_is_later_added_throws_an_IllegalStateException()`
  `void`
  `custom_publisher_with_current_thread_executor()`
  `void`
  `custom_publisher_with_current_thread_executor_for_variables()`
  `void`
  `keep_a_second_variable_table_updated()`
  `void`
  `keep_a_second_variable_table_updated_in_a_separate_thread()`
  `void`
  `keep_a_second_variable_table_updated_in_current_thread_publisher()`
  `void`
  `lightWeightComponentSet_has_new_instances_with_null_publishers()`
  `void`
  `normal_operations_with_null_publishers()`
  `void`
  `PublishingVariableTable_decorates_CaseInsensitiveVariableTable()`
  Testing `PublishingVariableTable.decoratorInstance(new CaseInsensitiveVariableTable(),pub);`
  `void`
  `test_clear()`
  `void`
  `test_dont_watchVarables_with_StandardVariableFactory()`
  `void`
  `test_lightWeightInstance()`
  `void`
  `test_package_info_examples()`
  `void`
  `test_remove_non_constant()`
  `void`
  `test_removing_a_variable_remove_the_subscriber()`
  `void`
  `test_subscribe_to_an_individual_variable()`
  `void`
  `testBasicSubscriber()`
  `void`
  `testManyVariables()`
  `void`
  `testVariableTableSubscriber()`
  `void`
  `testVariableTableUnSubscriber()`
  `void`
  `trigger_on_complete_with_VariableTableSubscriber()`
  `void`
  `trigger_on_error()`
  `void`
  `trigger_on_error_with_VariableTableSubscriber()`
  `void`
  `two_subscribers()`

  ### 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
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### PublishingVariableTest

    public PublishingVariableTest()

- ## Method Details

  - ### testBasicSubscriber

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

  - ### testVariableTableSubscriber

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

  - ### two_subscribers

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

  - ### testManyVariables

    @Tag("slow_tests") @Test public void testManyVariables() throws Exception
    Throws:
      `Exception`

  - ### testVariableTableUnSubscriber

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

  - ### test_removing_a_variable_remove_the_subscriber

    @Test public void test_removing_a_variable_remove_the_subscriber() throws InterruptedException
    Throws:
      `InterruptedException`

  - ### test_clear

    @Test public void test_clear() throws InterruptedException
    Throws:
      `InterruptedException`

  - ### test_remove_non_constant

    @Test public void test_remove_non_constant() throws JepException, InterruptedException
    Throws:
      `JepException`
      `InterruptedException`

  - ### test_subscribe_to_an_individual_variable

    @Test public void test_subscribe_to_an_individual_variable() throws InterruptedException
    Throws:
      `InterruptedException`

  - ### test_dont_watchVarables_with_StandardVariableFactory

    @Test public void test_dont_watchVarables_with_StandardVariableFactory() throws InterruptedException, ParseException, JepException
    Throws:
      `InterruptedException`
      `ParseException`
      `JepException`

  - ### custom_publisher_with_current_thread_executor

    @Test public void custom_publisher_with_current_thread_executor() throws InterruptedException, JepException
    Throws:
      `InterruptedException`
      `JepException`

  - ### custom_publisher_with_current_thread_executor_for_variables

    @Test public void custom_publisher_with_current_thread_executor_for_variables() throws InterruptedException
    Throws:
      `InterruptedException`

  - ### attempt_to_set_a_value_of_a_constant

    @Test public void attempt_to_set_a_value_of_a_constant() throws JepException, InterruptedException
    Throws:
      `JepException`
      `InterruptedException`

  - ### test_lightWeightInstance

    @Test public void test_lightWeightInstance()

  - ### lightWeightComponentSet_has_new_instances_with_null_publishers

    @Test public void lightWeightComponentSet_has_new_instances_with_null_publishers() throws JepException
    Throws:
      `JepException`

  - ### change_publisher

    @Test public void change_publisher() throws InterruptedException, JepException
    Throws:
      `InterruptedException`
      `JepException`

  - ### normal_operations_with_null_publishers

    @Test public void normal_operations_with_null_publishers() throws JepException
    Throws:
      `JepException`

  - ### keep_a_second_variable_table_updated

    @Test public void keep_a_second_variable_table_updated() throws JepException, InterruptedException
    Throws:
      `JepException`
      `InterruptedException`

  - ### keep_a_second_variable_table_updated_in_a_separate_thread

    @Test public void keep_a_second_variable_table_updated_in_a_separate_thread() throws JepException, InterruptedException
    Throws:
      `JepException`
      `InterruptedException`

  - ### keep_a_second_variable_table_updated_in_current_thread_publisher

    @Test public void keep_a_second_variable_table_updated_in_current_thread_publisher() throws JepException, InterruptedException
    Throws:
      `JepException`
      `InterruptedException`

  - ### close_publisher_if_a_variable_is_later_added_throws_an_IllegalStateException

    @Test public void close_publisher_if_a_variable_is_later_added_throws_an_IllegalStateException() throws InterruptedException, JepException
    Throws:
      `InterruptedException`
      `JepException`

  - ### trigger_on_complete_with_VariableTableSubscriber

    @Test public void trigger_on_complete_with_VariableTableSubscriber() throws InterruptedException, JepException
    Throws:
      `InterruptedException`
      `JepException`

  - ### trigger_on_error

    @Test public void trigger_on_error() throws InterruptedException, JepException
    Throws:
      `InterruptedException`
      `JepException`

  - ### trigger_on_error_with_VariableTableSubscriber

    @Test public void trigger_on_error_with_VariableTableSubscriber() throws InterruptedException, JepException
    Throws:
      `InterruptedException`
      `JepException`

  - ### test_package_info_examples

    @Test public void test_package_info_examples() throws InterruptedException
    Throws:
      `InterruptedException`

  - ### PublishingVariableTable_decorates_CaseInsensitiveVariableTable

    @Test public void PublishingVariableTable_decorates_CaseInsensitiveVariableTable() throws Exception
    Testing `PublishingVariableTable.decoratorInstance(new CaseInsensitiveVariableTable(),pub);`
    Throws:
      `Exception`

  - ### CaseInsensitiveVariableTable_decorates_PublishingVariableTable

    @Test public void CaseInsensitiveVariableTable_decorates_PublishingVariableTable() throws Exception
    Testing `CaseInsensitiveVariableTable.decoratorInstance(new PublishingVariableTable(pub));`
    Throws:
      `Exception`