Class InvalidMemoryRecordsProvider

java.lang.Object
org.apache.kafka.common.record.internal.InvalidMemoryRecordsProvider
All Implemented Interfaces:
org.junit.jupiter.params.provider.ArgumentsProvider

public final class InvalidMemoryRecordsProvider extends Object implements org.junit.jupiter.params.provider.ArgumentsProvider
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Stream<? extends org.junit.jupiter.params.provider.Arguments>
    provideArguments(org.junit.jupiter.params.support.ParameterDeclarations parameterDeclarations, org.junit.jupiter.api.extension.ExtensionContext context)
    Returns a stream of arguments for invalid memory records and the expected exception.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.junit.jupiter.params.provider.ArgumentsProvider

    provideArguments
  • Constructor Details

    • InvalidMemoryRecordsProvider

      public InvalidMemoryRecordsProvider()
  • Method Details

    • provideArguments

      public Stream<? extends org.junit.jupiter.params.provider.Arguments> provideArguments(org.junit.jupiter.params.support.ParameterDeclarations parameterDeclarations, org.junit.jupiter.api.extension.ExtensionContext context)
      Returns a stream of arguments for invalid memory records and the expected exception. The first object in the Arguments is a MemoryRecords. The second object in the Arguments is an Optional<Class<Exception>> which is the expected exception from the log layer.
      Specified by:
      provideArguments in interface org.junit.jupiter.params.provider.ArgumentsProvider