Class EulerTest

    • Field Summary

      Fields 
      Modifier and Type Field Description
      org.junit.rules.Timeout globalTimeout
      Global rule to set the maximum runtime per problem.
      static long MAX_RUNTIME
      Defines the maximum runtime (in seconds) of every problem test.
      protected Problem problem
      Reference to the problem that is tested.
    • Constructor Summary

      Constructors 
      Constructor Description
      EulerTest()  
    • Method Summary

      Modifier and Type Method Description
      void finish()
      Cleans everything that has to be removed after testing the problem.
      void prepare()
      Prepares the current problem before testing it.
      void test()
      Tests the current problem against the right solution.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MAX_RUNTIME

        public static final long MAX_RUNTIME
        Defines the maximum runtime (in seconds) of every problem test.
        See Also:
        Constant Field Values
      • problem

        protected Problem problem
        Reference to the problem that is tested.
      • globalTimeout

        public org.junit.rules.Timeout globalTimeout
        Global rule to set the maximum runtime per problem.
    • Constructor Detail

      • EulerTest

        public EulerTest()
    • Method Detail

      • test

        public void test()
        Tests the current problem against the right solution.
      • finish

        public void finish()
        Cleans everything that has to be removed after testing the problem.
        See Also:
        Problem.finish()