Skip to content

Commit

Permalink
removed obsolete test units (due to redirections)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcAgate committed Apr 19, 2018
1 parent bc9246b commit 52e24fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public static List<Individual> getAllIndividuals(){

public final static Comparator<OntClass> ontClassComparator = new Comparator<OntClass>() {

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());
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/bdrc/ldspdi/sparql/Prefixes.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
9 changes: 5 additions & 4 deletions src/test/java/io/bdrc/ldspdi/test/LdsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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{
Expand Down Expand Up @@ -223,7 +223,7 @@ public void testJSONLDFormatter() throws IOException{
}
}

@Test
/*@Test
public void testGetSTTLSyntax() throws IOException{
ArrayList<String> resList=TestUtils.getResourcesList();
// Browser-like query without extension nor accept header
Expand All @@ -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
Expand Down

0 comments on commit 52e24fd

Please sign in to comment.