org.bouncycastle.util.test (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

# Package org.bouncycastle.util.test

Light weight test API.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  SimpleTest.TestExceptionOperation |
  Test |
  TestResult |

- Class Summary
  Class | Description
  --- | ---
  FixedSecureRandom | A secure random that returns pre-seeded data to calls of nextBytes() or generateSeed().
  FixedSecureRandom.BigInteger | BigInteger Source - in this case we expect requests for data that will be used for BigIntegers.
  FixedSecureRandom.Data | Data Source - in this case we just expect requests for byte arrays.
  FixedSecureRandom.Source | Base class for sources of fixed "Randomness"
  NumberParsing | Parsing
  SimpleTest |
  SimpleTestResult |
  TestRandomBigInteger | A fixed secure random designed to return data for someone needing to create a single BigInteger.
  TestRandomData | A fixed secure random designed to return data for someone needing random bytes.
  TestRandomEntropySourceProvider | A class for returning "quick entropy" for testing purposes.
  UncloseableOutputStream | This is a testing utility class to check the property that an `OutputStream` is never closed in some particular context - typically when wrapped by another `OutputStream` that should not be forwarding its `OutputStream.close()` calls.

- Exception Summary
  Exception | Description
  --- | ---
  TestFailedException |

## Package org.bouncycastle.util.test Description

Light weight test API. If you can use Junit!