Update of /var/cvs/tests/bridge/org/mmbase/bridge
In directory james.mmbase.org:/tmp/cvs-serv18518
Modified Files:
CloudTest.java FilledNodeTest.java NodeManagerTest.java
Log Message:
bytefile is a bit silly name for a binary field
See also: http://cvs.mmbase.org/viewcvs/tests/bridge/org/mmbase/bridge
Index: CloudTest.java
===================================================================
RCS file: /var/cvs/tests/bridge/org/mmbase/bridge/CloudTest.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- CloudTest.java 29 May 2005 11:20:04 -0000 1.12
+++ CloudTest.java 23 Sep 2008 06:53:28 -0000 1.13
@@ -51,7 +51,7 @@
String s = new Integer(i).toString();
Node node;
node = cloud.getNodeManager("bb").createNode();
- node.setByteValue("bytefield", s.getBytes());
+ node.setByteValue("binaryfield", s.getBytes());
node.setDoubleValue("doublefield", i);
node.setFloatValue("floatfield", i);
node.setIntValue("intfield", i);
@@ -77,7 +77,7 @@
public void testGetList() {
NodeList nodeList;
- nodeList = cloud.getList("" + aaNode1.getNumber(), "aa,bb",
"aa.bytefield", "", "", "", "", false);
+ nodeList = cloud.getList("" + aaNode1.getNumber(), "aa,bb",
"aa.binaryfield", "", "", "", "", false);
assertTrue(nodeList.size() == nrOfBBNodes);
}
@@ -97,13 +97,13 @@
public void testGetListWithNullParameterStartNodes() {
NodeList nodeList;
- nodeList = cloud.getList(null, "aa,bb", "aa.bytefield", "", "", "",
"", false);
+ nodeList = cloud.getList(null, "aa,bb", "aa.binbaryfield", "", "", "",
"", false);
assertTrue(nodeList.size() == nrOfBBNodes + 1);
}
public void testGetListWithEmptyParameterStartNodes() {
NodeList nodeList;
- nodeList = cloud.getList("", "aa,bb", "aa.bytefield", "", "", "", "",
false);
+ nodeList = cloud.getList("", "aa,bb", "aa.binaryfield", "", "", "",
"", false);
assertTrue(nodeList.size() == nrOfBBNodes + 1);
}
@@ -113,7 +113,7 @@
public void testGetListWithInvalidParameterStartNodes() {
try {
NodeList nodeList;
- nodeList = cloud.getList("" + bbNode.getNumber(), "aa,bb",
"aa.bytefield", "", "", "", "", false);
+ nodeList = cloud.getList("" + bbNode.getNumber(), "aa,bb",
"aa.binaryfield", "", "", "", "", false);
fail("Should raise a BridgeException, but gave following list: " +
nodeList);
} catch (BridgeException e) {}
}
@@ -121,21 +121,21 @@
public void testGetListWithNullParameterNodePath() {
try {
- cloud.getList(null, null, "bytefield", "", "", "", "", false);
+ cloud.getList(null, null, "binaryfield", "", "", "", "", false);
fail("Should raise a BridgeException");
} catch (BridgeException e) {}
}
public void testGetListWithEmptyParameterNodePath() {
try {
- cloud.getList(null, "", "bytefield", "", "", "", "", false);
+ cloud.getList(null, "", "binaryfield", "", "", "", "", false);
fail("Should raise a BridgeException");
} catch (BridgeException e) {}
}
public void testGetListWithInvalidParameterNodePath() {
try {
- cloud.getList(null, "x", "bytefield", "", "", "", "", false);
+ cloud.getList(null, "x", "binaryfield", "", "", "", "", false);
fail("Should raise a BridgeException");
} catch (BridgeException e) {}
}
Index: FilledNodeTest.java
===================================================================
RCS file: /var/cvs/tests/bridge/org/mmbase/bridge/FilledNodeTest.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- FilledNodeTest.java 21 Jun 2007 15:50:23 -0000 1.21
+++ FilledNodeTest.java 23 Sep 2008 06:53:28 -0000 1.22
@@ -56,7 +56,7 @@
Node typedefNode = cloud.getNodeManager("bb");
assertTrue(typedefNode != null);
byte[] bytes = { 72, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100,
33 };
- node.setValue("bytefield", bytes);
+ node.setValue("binaryfield", bytes);
node.setValue("doublefield", new Double(Double.MAX_VALUE));
node.setValue("floatfield", new Float(Float.MAX_VALUE));
node.setValue("intfield", new Integer(Integer.MAX_VALUE));
Index: NodeManagerTest.java
===================================================================
RCS file: /var/cvs/tests/bridge/org/mmbase/bridge/NodeManagerTest.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- NodeManagerTest.java 4 Oct 2005 23:38:25 -0000 1.9
+++ NodeManagerTest.java 23 Sep 2008 06:53:28 -0000 1.10
@@ -33,7 +33,7 @@
cloud = getCloud();
nodes = cloud.createNodeList();
Node node = cloud.getNodeManager("aa").createNode();
- node.setByteValue("bytefield", "100".getBytes());
+ node.setByteValue("binaryfield", "100".getBytes());
node.setDoubleValue("doublefield", 200);
node.setFloatValue("floatfield", 300);
node.setIntValue("intfield", 400);
@@ -43,7 +43,7 @@
nodes.add(node);
node = cloud.getNodeManager("aa").createNode();
- node.setByteValue("bytefield", "100".getBytes());
+ node.setByteValue("binaryfield", "100".getBytes());
node.setDoubleValue("doublefield", 200);
node.setFloatValue("floatfield", 300);
node.setIntValue("intfield", 400);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs