org.coderu.factory.junit.CoderuAssertFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coderu-junit-adapter Show documentation
Show all versions of coderu-junit-adapter Show documentation
Simplifies integration of CODERU as a junit test
package org.coderu.factory.junit;
import org.coderu.adapters.junit.CoderuAssert;
import org.coderu.adapters.junit.CoderuAssertAdapter;
import org.coderu.core.api.Aliases;
import org.coderu.core.api.WrongDependencyExplorer;
import org.coderu.core.factory.WrongDependencyExplorerFactory;
public final class CoderuAssertFactory { // NO_UCD
public static CoderuAssertAdapter create(){ // NO_UCD
return create(Aliases.DEFAULT);
}
public static CoderuAssertAdapter create(final Aliases aliases){ // NO_UCD
final WrongDependencyExplorer dependencyExplorer = WrongDependencyExplorerFactory.create(aliases);
final CoderuAssert coderuAssert = new CoderuAssert(dependencyExplorer);
return new CoderuAssertAdapter(coderuAssert);
}
private CoderuAssertFactory() {
}
}