gsrs.substances.tests.SubstanceTestUtil Maven / Gradle / Ivy
package gsrs.substances.tests;
import ix.ginas.modelBuilders.SubstanceBuilder;
import ix.ginas.models.v1.ChemicalSubstance;
public final class SubstanceTestUtil {
private SubstanceTestUtil(){}
public static ChemicalSubstance makeChemicalSubstance(String smiles){
return new SubstanceBuilder()
.asChemical()
.generateNewUUID()
.addName(smiles + " name")
.setStructureWithDefaultReference(smiles)
.build();
}
}