Commit 895b9e10 authored by Kerstin Bach's avatar Kerstin Bach

Fixed saving a project in C:...

parent 4990b663
......@@ -226,7 +226,7 @@ public class MyCBRImportTest extends TestCase {
}
private LinkedList<Double> printResult(Retrieval result) {
LinkedList<Double> sims = new LinkedList<>();
LinkedList<Double> sims = new LinkedList<Double>();
for (Pair<Instance, Similarity> pair : result.getResult()) {
// System.out.println("\nSimilarity: " + pair.getSecond() + " to case:");
// pair.getFirst();
......
......@@ -28,6 +28,8 @@
package test.junittest.casebase;
import java.io.IOException;
import java.nio.file.*;
import java.text.SimpleDateFormat;
import java.util.HashSet;
......@@ -41,6 +43,7 @@ import de.dfki.mycbr.core.model.IntegerDesc;
import de.dfki.mycbr.core.model.IntervalDesc;
import de.dfki.mycbr.core.model.StringDesc;
import de.dfki.mycbr.core.model.SymbolDesc;
import org.junit.Test;
/**
* When there is a sub c B of a given c A, then all attributes of
......@@ -72,8 +75,8 @@ public class OverrideAttributeTest extends TestCase {
try {
p = new Project();
p.setName("Vererbung");
p.setPath("C:\\mycbr\\projects\\");
p.setName("Inheritance");
p.setPath(System.getProperty("user.dir") + "/src/test/projects/");
topConcept = p.createTopConcept("A");
subConcept = new Concept("B", p, topConcept);
......@@ -112,7 +115,7 @@ public class OverrideAttributeTest extends TestCase {
* reset local variables
*/
public void tearDown() {
p.save();
// p.save();
p = null;
topConcept = null;
subConcept = null;
......@@ -124,8 +127,7 @@ public class OverrideAttributeTest extends TestCase {
symbolDesc = null;
topConcept2 = null;
subConcept2 = null;
}
}
/**
* This test tries to override attributes in subConcept B with wrong
* description. Exception is expected in each case
......
......@@ -142,7 +142,7 @@ public class TrigramTest extends TestCase {
* @return
*/
private LinkedList<Double> printResult(Retrieval result) {
LinkedList<Double> sims = new LinkedList<>();
LinkedList<Double> sims = new LinkedList<Double>();
for (Pair<Instance, Similarity> pair : result.getResult()) {
// System.out.println("\nSimilarity: " + pair.getSecond() + " to case:");
// pair.getFirst();
......
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