Class SimpleTest

  • All Implemented Interfaces:
    Test

    public abstract class SimpleTest
    extends Object
    implements Test
    • Constructor Detail

      • SimpleTest

        public SimpleTest()
    • Method Detail

      • getName

        public abstract String getName()
        Specified by:
        getName in interface Test
      • fail

        protected void fail​(String message)
      • isTrue

        protected void isTrue​(boolean value)
      • isTrue

        protected void isTrue​(String message,
                              boolean value)
      • isEquals

        protected void isEquals​(Object a,
                                Object b)
      • isEquals

        protected void isEquals​(int a,
                                int b)
      • isEquals

        protected void isEquals​(long a,
                                long b)
      • isEquals

        protected void isEquals​(String message,
                                boolean a,
                                boolean b)
      • isEquals

        protected void isEquals​(String message,
                                long a,
                                long b)
      • areEqual

        protected boolean areEqual​(byte[][] left,
                                   byte[][] right)
      • areEqual

        protected boolean areEqual​(byte[] a,
                                   byte[] b)
      • areEqual

        protected boolean areEqual​(byte[] a,
                                   int aFromIndex,
                                   int aToIndex,
                                   byte[] b,
                                   int bFromIndex,
                                   int bToIndex)
      • runTest

        public static void runTest​(Test test)
      • runTests

        public static void runTests​(Test[] tests)
      • runTests

        public static void runTests​(Test[] tests,
                                    PrintStream out)