Class SimpleTest

    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleTest()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean areEqual​(byte[][] left, byte[][] right)  
      protected boolean areEqual​(byte[] a, byte[] b)  
      protected boolean areEqual​(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex)  
      protected void fail​(java.lang.String message)  
      protected void fail​(java.lang.String message, java.lang.Object expected, java.lang.Object found)  
      protected void fail​(java.lang.String message, java.lang.Throwable throwable)  
      abstract java.lang.String getName()  
      protected void isEquals​(int a, int b)  
      protected void isEquals​(long a, long b)  
      protected void isEquals​(java.lang.Object a, java.lang.Object b)  
      protected void isEquals​(java.lang.String message, boolean a, boolean b)  
      protected void isEquals​(java.lang.String message, long a, long b)  
      protected void isEquals​(java.lang.String message, java.lang.Object a, java.lang.Object b)  
      protected void isTrue​(boolean value)  
      protected void isTrue​(java.lang.String message, boolean value)  
      TestResult perform()  
      abstract void performTest()  
      static void runTest​(Test test)  
      static void runTest​(Test test, java.io.PrintStream out)  
      static void runTests​(Test[] tests)  
      static void runTests​(Test[] tests, java.io.PrintStream out)  
      • Methods inherited from class java.lang.Object

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

      • SimpleTest

        public SimpleTest()
    • Method Detail

      • getName

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

        protected void fail​(java.lang.String message)
      • isTrue

        protected void isTrue​(boolean value)
      • isTrue

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

        protected void isEquals​(java.lang.Object a,
                                java.lang.Object b)
      • isEquals

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

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

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

        protected void isEquals​(java.lang.String message,
                                long a,
                                long b)
      • isEquals

        protected void isEquals​(java.lang.String message,
                                java.lang.Object a,
                                java.lang.Object b)
      • areEqual

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

        protected void fail​(java.lang.String message,
                            java.lang.Throwable throwable)
      • fail

        protected void fail​(java.lang.String message,
                            java.lang.Object expected,
                            java.lang.Object found)
      • areEqual

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

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

        public abstract void performTest()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • runTest

        public static void runTest​(Test test)
      • runTest

        public static void runTest​(Test test,
                                   java.io.PrintStream out)
      • runTests

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

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