summaryrefslogtreecommitdiff
path: root/unoxml/qa
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2011-03-11 11:47:31 +0100
committerMichael Stahl <mst@openoffice.org>2011-03-11 11:47:31 +0100
commit7ee24fb1c5350ea781d41d65a460c28987666a1f (patch)
treef804a781fb034a6ecc8899bb523d41cbee83cfe6 /unoxml/qa
parent4a380b265d90ce63a2dd9184d7bc5fc7df95f2f4 (diff)
sw34bf04: RDFRepositoryTest: fix accidentally inverted assertions (sb123)
Diffstat (limited to 'unoxml/qa')
-rw-r--r--unoxml/qa/complex/unoxml/RDFRepositoryTest.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/unoxml/qa/complex/unoxml/RDFRepositoryTest.java b/unoxml/qa/complex/unoxml/RDFRepositoryTest.java
index d047ef77440e..3cf203325a70 100644
--- a/unoxml/qa/complex/unoxml/RDFRepositoryTest.java
+++ b/unoxml/qa/complex/unoxml/RDFRepositoryTest.java
@@ -172,14 +172,14 @@ public class RDFRepositoryTest
try {
xRep.createGraph(foo);
- assertFalse("creating duplicate graph was allowed", false);
+ fail("creating duplicate graph was allowed");
} catch (ElementExistException e) {
// ignore
}
try {
xRep.createGraph(null);
- assertFalse("invalid graph name was allowed", false);
+ fail("invalid graph name was allowed");
} catch (IllegalArgumentException e) {
// ignore
}
@@ -296,7 +296,7 @@ public class RDFRepositoryTest
xFooIn = new StreamSimulator(tempDir + "foo.rdf", true, param);
try {
xRep.importGraph(FileFormat.RDF_XML, xFooIn, bar, base);
- assertFalse("importing existing graph did not fail", false);
+ fail("importing existing graph did not fail");
} catch (ElementExistException e) {
// ignore
}
@@ -328,28 +328,28 @@ public class RDFRepositoryTest
try {
xBazGraph.clear();
- assertFalse("deleted graph not invalid (clear)", false);
+ fail("deleted graph not invalid (clear)");
} catch (NoSuchElementException e) {
// ignore
}
try {
xBazGraph.addStatement(foo, foo, foo);
- assertFalse("deleted graph not invalid (add)", false);
+ fail("deleted graph not invalid (add)");
} catch (NoSuchElementException e) {
// ignore
}
try {
xBazGraph.removeStatements(null, null, null);
- assertFalse("deleted graph not invalid (remove)", false);
+ fail("deleted graph not invalid (remove)");
} catch (NoSuchElementException e) {
// ignore
}
try {
xBazGraph.getStatements(null, null, null);
- assertFalse("deleted graph not invalid (get)", false);
+ fail("deleted graph not invalid (get)");
} catch (NoSuchElementException e) {
// ignore
}
@@ -473,14 +473,14 @@ public class RDFRepositoryTest
try {
xRep.setStatementRDFa(foo, new XURI[] {}, xM, "", null);
- assertFalse("RDFa: set: no predicate", false);
+ fail("RDFa: set: no predicate");
} catch (IllegalArgumentException e) {
// ignore
}
try {
xRep.setStatementRDFa(foo, new XURI[] {bar}, null, "", null);
- assertFalse("RDFa: set: null", false);
+ fail("RDFa: set: null");
} catch (IllegalArgumentException e) {
// ignore
}