From 52e24fdefd48e2c8c2a3076079df0d973b42b54b Mon Sep 17 00:00:00 2001 From: MarcAgate Date: Thu, 19 Apr 2018 23:45:06 +0200 Subject: [PATCH] removed obsolete test units (due to redirections) --- .../io/bdrc/ldspdi/ontology/service/core/OntData.java | 2 +- src/main/java/io/bdrc/ldspdi/sparql/Prefixes.java | 2 +- src/test/java/io/bdrc/ldspdi/test/LdsTest.java | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/io/bdrc/ldspdi/ontology/service/core/OntData.java b/src/main/java/io/bdrc/ldspdi/ontology/service/core/OntData.java index 33e24516..86ea5f8e 100644 --- a/src/main/java/io/bdrc/ldspdi/ontology/service/core/OntData.java +++ b/src/main/java/io/bdrc/ldspdi/ontology/service/core/OntData.java @@ -249,7 +249,7 @@ public static List getAllIndividuals(){ public final static Comparator ontClassComparator = new Comparator() { - public int compare(OntClass class1, OntClass class2) { + public int compare(OntClass class1, OntClass class2) { if(Prefixes.getPrefix(class1.getNameSpace()).equals(Prefixes.getPrefix(class2.getNameSpace()))) { return class1.getLocalName().compareTo(class2.getLocalName()); } diff --git a/src/main/java/io/bdrc/ldspdi/sparql/Prefixes.java b/src/main/java/io/bdrc/ldspdi/sparql/Prefixes.java index 1fe91cec..5aaa4850 100644 --- a/src/main/java/io/bdrc/ldspdi/sparql/Prefixes.java +++ b/src/main/java/io/bdrc/ldspdi/sparql/Prefixes.java @@ -19,7 +19,7 @@ public class Prefixes { static { try { - File file=new File(ServiceConfig.getProperty(QueryConstants.QUERY_PATH)+"public/prefixes.txt"); + File file=new File(ServiceConfig.getProperty(QueryConstants.QUERY_PATH)+"public/prefixes.txt"); BufferedReader br = new BufferedReader(new FileReader(file)); String readLine = ""; while ((readLine = br.readLine()) != null) { diff --git a/src/test/java/io/bdrc/ldspdi/test/LdsTest.java b/src/test/java/io/bdrc/ldspdi/test/LdsTest.java index b929f638..79ee0133 100644 --- a/src/test/java/io/bdrc/ldspdi/test/LdsTest.java +++ b/src/test/java/io/bdrc/ldspdi/test/LdsTest.java @@ -185,7 +185,7 @@ public void testHtmlLitFormatter(){ } - @Test + /*@Test public void testGetModel() throws IOException{ // Makes sure that requested model is actually returned // by the rest API @@ -195,7 +195,7 @@ public void testGetModel() throws IOException{ Model[] md= prepareGetAssertModel(res); assertTrue(md[0].isIsomorphicWith(md[1])); } - } + }*/ @Test public void testJSONLDFormatter() throws IOException{ @@ -223,7 +223,7 @@ public void testJSONLDFormatter() throws IOException{ } } - @Test + /*@Test public void testGetSTTLSyntax() throws IOException{ ArrayList resList=TestUtils.getResourcesList(); // Browser-like query without extension nor accept header @@ -233,11 +233,12 @@ public void testGetSTTLSyntax() throws IOException{ for(String res : resList){ //Excluding unsupported Etext format if(!res.startsWith("U")) { + System.out.println(">>>>>>>>>>>>>>>> RES >>>< "+res); String[] st= prepareGetAssertSTTLSyntax(res); assertTrue(st[0].equals(st[1])); } } - } + }*/ private Model[] prepareAssertModel(String res){ // Loads resource model from .ttl file