// SPDX-FileCopyrightText: 2023 Paul Schaub // // SPDX-License-Identifier: Apache-2.0 package sop.testsuite; import sop.SOP; import java.util.Map; /** * Factory class to instantiate SOP implementations for testing. * Overwrite this class and the {@link #provideSOPInstances()} method to return the SOP instances you want * to test. * Then, add the following line to your
build.gradle
files
dependencies
section: *
{@code
 *     testImplementation(testFixtures("org.pgpainless:sop-java:"))
 * }
* To inject the factory class into the test suite, add the following line to your modules
test
task: *
{@code
 *     environment("test.implementation", "org.example.YourTestSubjectFactory")
 * }
* Next, in your
test
sources, extend all test classes from the
testFixtures
*
sop.operation
package. * Take a look at the
external-sop
module for an example. */ public abstract class SOPInstanceFactory { public abstract Map provideSOPInstances(); }