Package org.bouncycastle.util.test

## Class SimpleTest

- java.lang.Object
- - org.bouncycastle.util.test.SimpleTest

- All Implemented Interfaces:
    `Test`
  Direct Known Subclasses:
    `AEADTest`, `AESSICTest`, `AESWrapPadTest`, `AESWrapTest`, `AlgorithmParametersTest`, `Argon2Test`, `ARIATest`, `ASN1IntegerTest`, `ASN1UnitTest`, `AttributeTableUnitTest`, `BaseBlockCipherTest`, `BCFKSStoreTest`, `BCryptTest`, `BigIntegersTest`, `BiometricDataUnitTest`, `BitStringTest`, `Blake2bDigestTest`, `Blake2sDigestTest`, `Blake2xsDigestTest`, `BlockCipherMonteCarloTest`, `BlockCipherResetTest`, `BlockCipherTest`, `BlockCipherVectorTest`, `BodyPartIDTest`, `BodyPartListTest`, `BodyPartPathTest`, `BodyPartReferenceTest`, `CCMTest`, `CertificateTest`, `CertifiedKeyPairTest`, `CertPathBuilderTest`, `CertPathTest`, `CertPathValidatorTest`, `CertStoreTest`, `CertTest`, `CertUniqueIDTest`, `ChaCha20Poly1305Test`, `ChaCha20Poly1305Test`, `ChaChaTest`, `CipherStreamTest`, `CipherStreamTest`, `CipherStreamTest2`, `CipherTest`, `CMacTest`, `CMacTest`, `CMCCertificationRequestTest`, `CMCFailInfoTest`, `CMCPublicationInfoTest`, `CMCStatusInfoTest`, `CMCStatusInfoV2Test`, `CMCStatusTest`, `CMCUnsignedDataTest`, `CommitmentTypeIndicationUnitTest`, `CommitmentTypeQualifierUnitTest`, `ControlsProcessedTest`, `CramerShoupTest`, `CRL5Test`, `CscaMasterListTest`, `CSHAKETest`, `CTRDRBGTest`, `CTSTest`, `DataGroupHashUnitTest`, `DecryptedPOPTest`, `DERApplicationSpecificTest`, `DESedeTest`, `DetDSATest`, `DeterministicDSATest`, `DHIESTest`, `DHKEKGeneratorTest`, `DhSigStaticTest`, `DHTest`, `DHTest`, `DigestRandomNumberTest`, `DigestTest`, `DigestTest`, `DLExternalTest`, `DRBGTest`, `DSATest`, `DSATest`, `DSTU4145Test`, `DSTU4145Test`, `DualECDRBGTest`, `EAXTest`, `ECDHKEKGeneratorTest`, `ECDSA5Test`, `ECElGamalTest`, `ECEncodingTest`, `ECGOST3410Test`, `ECIESKeyEncapsulationTest`, `ECIESTest`, `ECIESTest`, `ECIESVectorTest`, `ECNRTest`, `ECNRTest`, `ECTest`, `ECTransformationTest`, `Ed25519Test`, `Ed448Test`, `EdECTest`, `ElGamalTest`, `ElGamalTest`, `EncryptedPOPTest`, `EncryptedPrivateKeyInfoTest`, `EncryptedPrivateKeyInfoTest`, `EqualsHashCodeTest`, `EthereumIESTest`, `ExtendedFailInfoTest`, `ExtensionReqTest`, `FixedSecureRandomTest`, `GCMTest`, `GeneralizedTimeTest`, `GeneralNameTest`, `GenerationTest`, `GetCertTest`, `GetCRLTest`, `GMacTest`, `GMacTest`, `GMSSSignerTest`, `GOST28147Test`, `GOST3410KeyPairTest`, `GOST3410Test`, `GOST3412Test`, `Grain128Test`, `Grainv1Test`, `GSKKDFTest`, `Haraka256DigestTest`, `Haraka512DigestTest`, `HashCommitmentTest`, `HashDRBGTest`, `HCFamilyTest`, `HCFamilyVecTest`, `HKDFGeneratorTest`, `HMacDRBGTest`, `HMacTest`, `IdentityProofV2Test`, `IESTest`, `ImplicitlyCaTest`, `InputStreamTest`, `ISAACTest`, `Iso4217CurrencyCodeUnitTest`, `ISO9796Test`, `ISO9797Alg3MacTest`, `IsoTrailerTest`, `IssuingDistributionPointUnitTest`, `JournalingSecureRandomTest`, `KDF1GeneratorTest`, `KDF2GeneratorTest`, `KDFCounterGeneratorTest`, `KDFDoublePipelineIteratorGeneratorTest`, `KDFFeedbackGeneratorTest`, `KeccakDigestTest`, `KeccakTest`, `KeyStoreTest`, `KeyUsageTest`, `KMACParamsTest`, `KMACTest`, `LDSSecurityObjectUnitTest`, `LocaleTest`, `LraPopWitnessTest`, `MacTest`, `MacTest`, `McElieceCipherTest`, `McElieceFujisakiCipherTest`, `McElieceKobaraImaiCipherTest`, `McEliecePointchevalCipherTest`, `MD5HMacTest`, `MGF1GeneratorTest`, `MiscTest`, `ModCertTemplateTest`, `MonetaryValueUnitTest`, `MQVTest`, `MultiCertStoreTest`, `NaccacheSternTest`, `NamedCurveTest`, `NetscapeCertTypeTest`, `NewHopeTest`, `NISTCertPathTest`, `NISTCTSTest`, `NISTECCTest`, `OAEPTest`, `ObjectIdentifierTest`, `OCBTest`, `OCBTest`, `OIDTest`, `OpenBSDBCryptTest`, `OpenSSHKeyParsingTests`, `OpenSSHSpecTests`, `OtherMsgTest`, `OtherStatusInfoTest`, `PaddingTest`, `ParsingTest`, `PBETest`, `PendInfoTest`, `PKCS10CertRequestTest`, `PKCS12StorePBETest`, `PKCS12StoreTest`, `PKCS12Test`, `PKCS5Test`, `PKIDataTest`, `PKIFailureInfoTest`, `PKIPublicationInfoTest`, `PKIResponseTest`, `PKIXNameConstraintsTest`, `PKIXPolicyMappingTest`, `PolicyConstraintsTest`, `PollReqContentTest`, `Poly1305Test`, `Poly1305Test`, `PopLinkWitnessV2Test`, `PrivateKeyInfoTest`, `PSSBlindTest`, `PSSTest`, `PSSTest`, `PublishTrustAnchorsTest`, `QCStatementUnitTest`, `RainbowSignerTest`, `RC4Test`, `ReasonFlagsTest`, `ResetTest`, `RevokeRequestTest`, `RFC3211WrapTest`, `RFC4519Test`, `RSABlindedTest`, `RSADigestSignerTest`, `RSAKeyEncapsulationTest`, `RSATest`, `RSATest`, `Salsa20Test`, `SCryptTest`, `SemanticsInformationUnitTest`, `SerialisationTest`, `SetTest`, `SHA3DigestTest`, `SHA3HMacTest`, `Shacal2Test`, `SHAKEDigestTest`, `ShortenedDigestTest`, `SigNameTest`, `SignatureTest`, `SignerLocationUnitTest`, `SigTest`, `SipHash128Test`, `SipHash128Test`, `SipHashTest`, `SipHashTest`, `SkeinDigestTest`, `SkeinMacTest`, `SkeinTest`, `SlotTwoTest`, `SM2CipherTest`, `SM2EngineTest`, `SM2KeyExchangeTest`, `SM2SignatureTest`, `SM2SignerTest`, `SP800RandomTest`, `Sphincs256Test`, `SRP6Test`, `StreamCipherResetTest`, `StreamCipherVectorTest`, `StringTest`, `SubjectKeyIdentifierTest`, `TaggedAttributeTest`, `TaggedCertificationRequestTest`, `TaggedContentInfoTest`, `TaggedRequestTest`, `TagTest`, `TargetInformationTest`, `ThreefishTest`, `TLSKDFTest`, `TypeOfBiometricDataUnitTest`, `UTCTimeTest`, `VMPCKSA3Test`, `VMPCMacTest`, `VMPCTest`, `X25519Test`, `X448Test`, `X500NameTest`, `X509CertificatePairTest`, `X509ExtensionsTest`, `X509LDAPCertStoreTest`, `X509NameTest`, `X509StreamParserTest`, `X931SignerTest`, `X931Test`, `X9Test`, `XSalsa20Test`, `ZucTest`, `ZucTest`

      public abstract class SimpleTest
      extends java.lang.Object
      implements Test

- - ### 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)

    - #### perform

          public TestResult perform()

      Specified by:
        `perform` in interface `Test`

    - #### 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)