Class JepUnitTest

java.lang.Object
com.singularsys.jeptests.unit.JepUnitTest

public class JepUnitTest extends Object
Unit tests for the main Jep class.
  • Constructor Details

    • JepUnitTest

      public JepUnitTest()
  • Method Details

    • test_rootNodeToString

      @Test public void test_rootNodeToString() throws ParseException
      Throws:
      ParseException
    • test_rootNodeToString_returns_null_if_no_equation_parsed

      @Test public void test_rootNodeToString_returns_null_if_no_equation_parsed() throws ParseException
      Throws:
      ParseException
    • test_setComponentsInternal

      @Test public void test_setComponentsInternal()
    • test_tryAddConstant

      @Test public void test_tryAddConstant()
    • test_NullStringInParse

      @Test public void test_NullStringInParse()
    • addVariable_creates_name_new_variable_if_none_exists

      @Test public void addVariable_creates_name_new_variable_if_none_exists() throws JepException
      Throws:
      JepException
    • addVariable_modifies_existing_variable

      @Test public void addVariable_modifies_existing_variable() throws JepException
      Throws:
      JepException
    • addVariable_creates_new_variable_if_none_exists

      @Test public void addVariable_creates_new_variable_if_none_exists() throws JepException
      Throws:
      JepException
    • addVariable_thows_exception_if_existing_constant

      @Test public void addVariable_thows_exception_if_existing_constant() throws JepException
      Throws:
      JepException
    • setVariableValue_returns_false_if_variable_does_not_exist

      @Test public void setVariableValue_returns_false_if_variable_does_not_exist()
    • setVariableValue_returns_false_if_variable_is_constant

      @Test public void setVariableValue_returns_false_if_variable_is_constant() throws JepException
      Throws:
      JepException
    • setVariableValue_set_value_and_returns_true_if_variable_exists

      @Test public void setVariableValue_set_value_and_returns_true_if_variable_exists() throws JepException
      Throws:
      JepException
    • setVariable_create_new_variable_if_doesent_exist

      @Test public void setVariable_create_new_variable_if_doesent_exist() throws JepException
      Throws:
      JepException
    • setVariable_modifies_existing_variable

      @Test public void setVariable_modifies_existing_variable() throws JepException
      Throws:
      JepException
    • setVariable_returns_null_if_existing_constant

      @Test public void setVariable_returns_null_if_existing_constant() throws JepException
      Throws:
      JepException