projects
/
cfb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add further unit tests.
[cfb.git]
/
test
/
net
/
jaekl
/
cfb
/
db
/
driver
/
DbDriverMock.java
diff --git
a/test/net/jaekl/cfb/db/driver/DbDriverMock.java
b/test/net/jaekl/cfb/db/driver/DbDriverMock.java
index 86ae18c1785bcbbd454ba425573bdae0eb330a14..bb4675a2ff345fefb3b78827c45a625b0220d396 100644
(file)
--- a/
test/net/jaekl/cfb/db/driver/DbDriverMock.java
+++ b/
test/net/jaekl/cfb/db/driver/DbDriverMock.java
@@
-21,6
+21,7
@@
import net.jaekl.cfb.db.Sort;
import net.jaekl.cfb.db.Table;
import net.jaekl.cfb.db.TableMock;
import net.jaekl.cfb.db.TypeMismatchException;
import net.jaekl.cfb.db.Table;
import net.jaekl.cfb.db.TableMock;
import net.jaekl.cfb.db.TypeMismatchException;
+import net.jaekl.cfb.util.Util;
public class DbDriverMock extends DbDriver {
public class DbDriverMock extends DbDriver {
@@
-194,7
+195,7
@@
public class DbDriverMock extends DbDriver {
if (condition.getColumn().equals(col)) {
switch(condition.getOperation()) {
case EQUAL:
if (condition.getColumn().equals(col)) {
switch(condition.getOperation()) {
case EQUAL:
- return
(condition.getValue().equals(row.getValue(idx)
));
+ return
Util.objsAreEqual(condition.getValue(), row.getValue(idx
));
case GREATER_THAN:
return (aLessThanB(condition.getValue(), row.getValue(idx)));
case LESS_THAN:
case GREATER_THAN:
return (aLessThanB(condition.getValue(), row.getValue(idx)));
case LESS_THAN: