com.ecfeed.core.genservice.schema.ResultTestCaseSchema Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ecfeed.junit Show documentation
Show all versions of ecfeed.junit Show documentation
An open library used to connect to the ecFeed service. It can be also used as a standalone testing tool. It is integrated with Junit5 and generates a stream of test cases using a selected algorithm (e.g. Cartesian, N-Wise). There are no limitations associated with the off-line version but the user cannot access the on-line computation servers and the model database.
The newest version!
package com.ecfeed.core.genservice.schema;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class ResultTestCaseSchema implements IMainSchema {
// TODO - add field annotations JsonGetter and JsonSetter (now renaming a method or field results in parsing exception) - also similar classes.
private String id;
private ChoiceSchema[] testCase;
public ResultTestCaseSchema() {
id = "0";
};
public ChoiceSchema[] getTestCase() {
return testCase;
}
public void setTestCase(ChoiceSchema[] testCase) {
this.testCase = testCase;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Override
public String toString() {
StringBuffer result = new StringBuffer();
result.append("Selected choices | Test id: " + id);
for (ChoiceSchema argument : testCase) {
result.append(System.lineSeparator());
result.append(argument.toString());
}
return result.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy