![JAR search and dependency download from the Maven repository](/logo.png)
autofixture.publicinterface.inline.RelativePathGenerator 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
The newest version!
package autofixture.publicinterface.inline;
import autofixture.interfaces.FixtureContract;
import autofixture.interfaces.InlineGeneratorsFactory;
import autofixture.interfaces.InlineInstanceGenerator;
import java.nio.file.Path;
import java.nio.file.Paths;
public class RelativePathGenerator implements InlineInstanceGenerator {
private final InlineGeneratorsFactory inlineGeneratorsFactory;
public RelativePathGenerator(InlineGeneratorsFactory inlineGeneratorsFactory) {
this.inlineGeneratorsFactory = inlineGeneratorsFactory;
}
@Override
public Path next(FixtureContract fixture) {
return Paths.get(
fixture.create(inlineGeneratorsFactory.identifierString()),
fixture.create(inlineGeneratorsFactory.identifierString()),
fixture.create(inlineGeneratorsFactory.identifierString()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy