mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-30 08:12:06 +01:00
Delete unused TestImplementationFactoryProvider
This commit is contained in:
parent
cf90c25afc
commit
78b668880b
1 changed files with 0 additions and 34 deletions
|
@ -1,34 +0,0 @@
|
||||||
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
|
||||||
//
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package org.pgpainless.util;
|
|
||||||
|
|
||||||
import org.junit.jupiter.api.extension.ExtensionContext;
|
|
||||||
import org.junit.jupiter.params.provider.Arguments;
|
|
||||||
import org.junit.jupiter.params.provider.ArgumentsProvider;
|
|
||||||
import org.pgpainless.implementation.BcImplementationFactory;
|
|
||||||
import org.pgpainless.implementation.ImplementationFactory;
|
|
||||||
import org.pgpainless.implementation.JceImplementationFactory;
|
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.stream.Stream;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Utility class used to provide all available implementations of {@link ImplementationFactory} for parametrized tests.
|
|
||||||
*
|
|
||||||
* @deprecated in favor of {@link TestAllImplementations}.
|
|
||||||
*/
|
|
||||||
public class TestImplementationFactoryProvider implements ArgumentsProvider {
|
|
||||||
|
|
||||||
private static final List<ImplementationFactory> IMPLEMENTATIONS = Arrays.asList(
|
|
||||||
new BcImplementationFactory(),
|
|
||||||
new JceImplementationFactory()
|
|
||||||
);
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Stream<? extends Arguments> provideArguments(ExtensionContext context) {
|
|
||||||
return IMPLEMENTATIONS.stream().map(Arguments::of);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue