1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-26 14:22:05 +01:00

Delete unused TestImplementationFactoryProvider

This commit is contained in:
Paul Schaub 2021-12-14 16:57:50 +01:00
parent cf90c25afc
commit 78b668880b
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -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);
}
}