Commit 5156610b authored by Piotr Gawron's avatar Piotr Gawron
Browse files

sbml validator is down

parent 749e4847
Pipeline #51130 passed with stage
in 17 minutes and 10 seconds
......@@ -18,6 +18,7 @@ import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
......@@ -37,8 +38,8 @@ public class SbmlValidationTests extends CellDesignerTestFunctions {
Model model;
String filename;
public SbmlValidationTests(String filename, Model model) {
this.filename= filename;
public SbmlValidationTests(final String filename, final Model model) {
this.filename = filename;
this.model = model;
}
......@@ -66,15 +67,16 @@ public class SbmlValidationTests extends CellDesignerTestFunctions {
return new Object[] { "empty-protein-name", model };
}
private static Object[] getTestSetFromFile(String string) throws Exception {
private static Object[] getTestSetFromFile(final String string) throws Exception {
return new Object[] { string, getModelForFile(string) };
}
@Test
@Ignore("sbml validatior is down")
public void testIsValidSbml() throws Exception {
CellDesignerXmlParser parser = new CellDesignerXmlParser();
String xml = parser.model2String(model);
CloseableHttpClient httpClient = HttpClients.createDefault();
HttpPost uploadFile = new HttpPost("http://sbml.org/validator/");
MultipartEntityBuilder builder = MultipartEntityBuilder.create();
......
......@@ -6,6 +6,7 @@ import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
......@@ -24,7 +25,7 @@ public class GeneratedSbmlValidationTests extends SbmlTestFunctions {
Model model;
public GeneratedSbmlValidationTests(Model model, String name) {
public GeneratedSbmlValidationTests(final Model model, final String name) {
this.model = model;
}
......@@ -44,7 +45,7 @@ public class GeneratedSbmlValidationTests extends SbmlTestFunctions {
return model;
}
private static Object[] createRow(Model model) {
private static Object[] createRow(final Model model) {
new ZIndexPopulator().populateZIndex(model);
return new Object[] { model, model.getName() };
}
......@@ -64,6 +65,7 @@ public class GeneratedSbmlValidationTests extends SbmlTestFunctions {
}
@Test
@Ignore("sbml validatior is down")
public void testIsValidSbml() throws Exception {
SbmlParser parser = new SbmlParser();
String xml = parser.model2String(model);
......
......@@ -7,6 +7,7 @@ import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
......@@ -21,7 +22,7 @@ public class SbmlValidationTests extends SbmlTestFunctions {
String filename;
public SbmlValidationTests(String filename) {
public SbmlValidationTests(final String filename) {
this.filename = filename;
}
......@@ -36,6 +37,7 @@ public class SbmlValidationTests extends SbmlTestFunctions {
}
@Test
@Ignore("sbml validatior is down")
public void testIsValidSbml() throws Exception {
SbmlParser parser = new SbmlParser();
Model model = parser.createModel(new ConverterParams().filename(filename));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment