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 -
Method Summary
Modifier and TypeMethodDescriptionStream<? 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, waitMethods 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 theArgumentsis aMemoryRecords. The second object in theArgumentsis anOptional<Class<Exception>>which is the expected exception from the log layer.- Specified by:
provideArgumentsin interfaceorg.junit.jupiter.params.provider.ArgumentsProvider
-