Class PublishingVariableTest
java.lang.Object
com.singularsys.jeptests.unit.misc.PublishingVariableTest
Tests for the
PublishingVariable.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassA basic subscriber.classA more advances subscriber.static classUpdates a variable table when another table changes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidTestingCaseInsensitiveVariableTable.decoratorInstance(new PublishingVariableTable(pub));voidvoidvoidvoidvoidvoidvoidvoidvoidvoidTestingPublishingVariableTable.decoratorInstance(new CaseInsensitiveVariableTable(),pub);voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
PRINT_RESULTS
public static final boolean PRINT_RESULTS- See Also:
-
-
Constructor Details
-
PublishingVariableTest
public PublishingVariableTest()
-
-
Method Details
-
testBasicSubscriber
- Throws:
Exception
-
testVariableTableSubscriber
- Throws:
Exception
-
two_subscribers
- Throws:
Exception
-
testManyVariables
- Throws:
Exception
-
testVariableTableUnSubscriber
- Throws:
Exception
-
test_removing_a_variable_remove_the_subscriber
- Throws:
InterruptedException
-
test_clear
- Throws:
InterruptedException
-
test_remove_non_constant
- Throws:
JepExceptionInterruptedException
-
test_subscribe_to_an_individual_variable
- Throws:
InterruptedException
-
test_dont_watchVarables_with_StandardVariableFactory
@Test public void test_dont_watchVarables_with_StandardVariableFactory() throws InterruptedException, ParseException, JepException -
custom_publisher_with_current_thread_executor
@Test public void custom_publisher_with_current_thread_executor() throws InterruptedException, JepException- Throws:
InterruptedExceptionJepException
-
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
- Throws:
JepExceptionInterruptedException
-
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
- Throws:
InterruptedExceptionJepException
-
normal_operations_with_null_publishers
- Throws:
JepException
-
keep_a_second_variable_table_updated
- Throws:
JepExceptionInterruptedException
-
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:
JepExceptionInterruptedException
-
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:
JepExceptionInterruptedException
-
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:
InterruptedExceptionJepException
-
trigger_on_complete_with_VariableTableSubscriber
@Test public void trigger_on_complete_with_VariableTableSubscriber() throws InterruptedException, JepException- Throws:
InterruptedExceptionJepException
-
trigger_on_error
- Throws:
InterruptedExceptionJepException
-
trigger_on_error_with_VariableTableSubscriber
@Test public void trigger_on_error_with_VariableTableSubscriber() throws InterruptedException, JepException- Throws:
InterruptedExceptionJepException
-
test_package_info_examples
- Throws:
InterruptedException
-
PublishingVariableTable_decorates_CaseInsensitiveVariableTable
TestingPublishingVariableTable.decoratorInstance(new CaseInsensitiveVariableTable(),pub);- Throws:
Exception
-
CaseInsensitiveVariableTable_decorates_PublishingVariableTable
TestingCaseInsensitiveVariableTable.decoratorInstance(new PublishingVariableTable(pub));- Throws:
Exception
-