![JAR search and dependency download from the Maven repository](/logo.png)
autofixture.publicinterface.inline.strings.StringContainingSubstringGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autofixturegenerator Show documentation
Show all versions of autofixturegenerator Show documentation
An attempt to reimplement core features of a popular .NET anonymous value generator - AutoFixture - in
Java
package autofixture.publicinterface.inline.strings;
import autofixture.interfaces.FixtureContract;
import autofixture.interfaces.InlineInstanceGenerator;
public class StringContainingSubstringGenerator implements
InlineInstanceGenerator {
private final String str;
public StringContainingSubstringGenerator(final String str) {
this.str = str;
}
@Override
public String next(final FixtureContract fixture) {
return fixture.create(String.class) + str + fixture.create(String.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy