perfsonar-dev - r2079 - in trunk/functional-testing: . common common/echo sqlma/l2/MeasurmentArchiveStoreRequest
Subject: perfsonar development work
List archive
r2079 - in trunk/functional-testing: . common common/echo sqlma/l2/MeasurmentArchiveStoreRequest
Chronological Thread
- From:
- To:
- Subject: r2079 - in trunk/functional-testing: . common common/echo sqlma/l2/MeasurmentArchiveStoreRequest
- Date: Thu, 15 Feb 2007 10:28:49 -0500
Author: michalis
Date: 2007-02-15 10:28:48 -0500 (Thu, 15 Feb 2007)
New Revision: 2079
Added:
trunk/functional-testing/common/
trunk/functional-testing/common/echo/
trunk/functional-testing/common/echo/EchoRequests.java
trunk/functional-testing/common/echo/EchoResponseParser.java
trunk/functional-testing/sqlma/l2/MeasurmentArchiveStoreRequest/MeasurementArchiveStoreResponseParser.java
Modified:
trunk/functional-testing/sqlma/l2/MeasurmentArchiveStoreRequest/MeasurementArchiveStoreRequests.java
Log:
Added: trunk/functional-testing/common/echo/EchoRequests.java
Property changes on: trunk/functional-testing/common/echo/EchoRequests.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Added: trunk/functional-testing/common/echo/EchoResponseParser.java
Property changes on:
trunk/functional-testing/common/echo/EchoResponseParser.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Modified:
trunk/functional-testing/sqlma/l2/MeasurmentArchiveStoreRequest/MeasurementArchiveStoreRequests.java
===================================================================
---
trunk/functional-testing/sqlma/l2/MeasurmentArchiveStoreRequest/MeasurementArchiveStoreRequests.java
2007-02-15 14:56:36 UTC (rev 2078)
+++
trunk/functional-testing/sqlma/l2/MeasurmentArchiveStoreRequest/MeasurementArchiveStoreRequests.java
2007-02-15 15:28:48 UTC (rev 2079)
@@ -147,7 +147,7 @@
"meta1",
utilities
.createKeyElements(
-
"DFN-link-1234",
+
"DFN-Surfnet-Link-5678",
"ibatis-SqlMapConfig-L2-status-domain.xml",
"Path.Status")));
doc.getRootElement().addContent(
@@ -223,7 +223,7 @@
doc.getRootElement().addContent(
utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link--002", "CY-GR-GEANT",
+
"CYNET-GEANT-Link-002", "CY-GR-GEANT",
"ID_Link",
"Path.Status", node1, node2,
parameters));
@@ -259,8 +259,9 @@
utilities.createDataElements("Unix", time
.toString(), "PSNC", "down")));
break;
-
- // A request where there are two measurments
for one link inside the request
+
+ // A request where there are two measurments for one
link inside the
+ // request
case 8:
time += subTestCase * 1000;
doc.getRootElement().addContent(
@@ -272,15 +273,16 @@
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "PSNC", "up")));
- time+=1000;
+ time += 1000;
doc.getRootElement().addContent(
utilities.createDataElement_Store("data2", "meta1",
utilities.createDataElements("Unix", time
.toString(), "PSNC", "down")));
break;
- // A request where there are measurments for
two different links inside
+ // A request where there are measurments for two
different links
+ // inside
case 9:
- time =time+1000+ subTestCase * 1000;
+ time = time + 1000 + subTestCase * 1000;
doc.getRootElement().addContent(
utilities.createMetadata("meta1", utilities
.createMetadata1Elements_Link(
@@ -290,10 +292,10 @@
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "PSNC", "up")));
- time+=1000;
-
+ time += 1000;
+
doc.getRootElement().addContent(
-
utilities.createMetadata("meta1", utilities
+
utilities.createMetadata("meta2", utilities
.createMetadata1Elements_Link(
"PSNC-2-DFN-MUE-004", "logical",
"Path.Status")));
@@ -302,22 +304,6 @@
utilities.createDataElements("Unix", time
.toString(), "PSNC", "down")));
break;
- case 10:
- time += subTestCase * 1000;
- Element metadata =
utilities.createMetadata("meta1", utilities
- .createMetadata1Elements_Link(
-
"PSNC-DFN-MUE-003", "logical",
-
"Path.Status"));
-
metadata.getChild("subject",nmwg).getChild("link",nmtl2).removeChild("globalName",nmtl2);
-
metadata.getChild("subject",nmwg).getChild("link",nmtl2).addContent(new
Element("name",nmtl2).setText("DFN-link-1234"));
- doc.getRootElement().addContent(metadata);
-
- doc.getRootElement().addContent(
-
utilities.createDataElement_Store("data1", "meta1",
-
utilities.createDataElements("Unix", time
-
.toString(), "PSNC", "up")));
- break;
-
}
}
// The second group of requests which attempt to insert data
to paths
@@ -417,7 +403,7 @@
doc.getRootElement().addContent(
utilities.createMetadata_NewLink("meta1",
-
"SomeNET-GEANT-Link--002", "sY-GR-GEANT",
+
"SomeNET-GEANT-Link-002", "sY-GR-GEANT",
"ID_Link",
"Path.Status", node1, node2,
parameters));
@@ -426,8 +412,9 @@
utilities.createDataElements("Unix", time
.toString(), "SomeNET", "up")));
break;
-
- //A request where the type attribute of the
global name element has an invalid value
+
+ // A request where the type attribute of the global
name element has
+ // an invalid value
case 5:
time += subTestCase * 1000;
doc.getRootElement().addContent(
@@ -440,7 +427,6 @@
utilities.createDataElements("Unix", time
.toString(), "PSNC", "up")));
break;
-
// A request where the global name element is empty
case 6:
@@ -752,7 +738,7 @@
case 23:
time += subTestCase * 1000;
- //System.out.println(time);
+ // System.out.println(time);
nodeElements1[0] = "";
nodeElements1[1] = "Germany";
nodeElements1[2] = "";
@@ -1013,8 +999,8 @@
utilities.createDataElements("Unix", time
.toString(), "SURFnet", "up")));
break;
- // A request where the path id parameter name
attribute does not
- // exist
+ // A request where the path id parameter name
attribute does not
+ // exist
case 39:
time += subTestCase * 1000;
elements =
utilities.createKeyElements("DFN-link-1234",
@@ -1029,11 +1015,11 @@
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "SURFnet", "up")));
-
+
// The following requests aim at testing the
service in the case
// where data for a new node, specified in
the request are
// provided.
-
+
// A request where the link name has no value.
break;
case 40:
@@ -1043,16 +1029,17 @@
+ subTestCase, "Cyprus",
"Nicosia", "Cynet",
"DemarcPoint");
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
doc.getRootElement().addContent(
-
utilities.createMetadata_NewLink("meta1",
- "",
"CY-GEANT-"+ subTestCase, "ID_Link",
+
utilities.createMetadata_NewLink("meta1", "",
+ "CY-GEANT-" +
subTestCase, "ID_Link",
"Path.Status", node1, node2, parameters));
doc.getRootElement().addContent(
@@ -1060,7 +1047,7 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the link global name value
is empty
+ // A request where the link global name value is empty
case 41:
time += subTestCase * 1000;
@@ -1068,24 +1055,26 @@
+ subTestCase, "Cyprus",
"Nicosia", "Cynet",
"DemarcPoint");
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
doc.getRootElement().addContent(
utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link"+ subTestCase,"", "ID_Link",
-
"Path.Status", node1, node2, parameters));
+
"CYNET-GEANT-Link" + subTestCase, "",
+ "ID_Link",
"Path.Status", node1, node2,
+ parameters));
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the link type value is
empty
+ // A request where the link type value is empty
case 42:
time += subTestCase * 1000;
@@ -1093,24 +1082,26 @@
+ subTestCase, "Cyprus",
"Nicosia", "Cynet",
"DemarcPoint");
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
doc.getRootElement().addContent(
utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link"+ subTestCase, "CY-GEANT-"+ subTestCase, "",
-
"Path.Status", node1, node2, parameters));
+
"CYNET-GEANT-Link-" + subTestCase, "CY-GEANT-"
+
+ subTestCase, "", "Path.Status",
+ node1, node2,
parameters));
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the link name parameter
has a wrong value
+ // A request where the link name parameter has a
wrong value
case 43:
time += subTestCase * 1000;
@@ -1118,24 +1109,26 @@
+ subTestCase, "Cyprus",
"Nicosia", "Cynet",
"DemarcPoint");
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
doc.getRootElement().addContent(
utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link", "CY-GEANT-"+ subTestCase, "ID_Link",
-
"Path.Status", node1, node2, parameters));
+
"CYNET-GEANT-Link", "CY-GEANT-" + subTestCase,
+ "ID_Link",
"Path.Status", node1, node2,
+ parameters));
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the link name has an
already assigned value
+ // A request where the link name has an already
assigned value
case 44:
time += subTestCase * 1000;
@@ -1143,8 +1136,9 @@
+ subTestCase, "Cyprus",
"Nicosia", "Cynet",
"DemarcPoint");
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
"PSNC-2-DFN-MUE-Link-1002",
"ibatisConfig",
@@ -1152,8 +1146,9 @@
doc.getRootElement().addContent(
utilities.createMetadata_NewLink("meta1",
-
"PSNC-2-DFN-MUE-Link-1002", "PSNC-2-DFN-MUE-004", "ID_Link",
-
"Path.Status", node1, node2, parameters));
+
"PSNC-2-DFN-MUE-Link-1002",
+
"PSNC-2-DFN-MUE-004", "ID_Link", "Path.Status",
+ node1, node2,
parameters));
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
@@ -1161,7 +1156,7 @@
.toString(), "Cynet", "up")));
break;
- // A request where link name element is
missing
+ // A request where link name element is missing
case 45:
time += subTestCase * 1000;
@@ -1169,17 +1164,20 @@
+ subTestCase, "Cyprus",
"Nicosia", "Cynet",
"DemarcPoint");
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata=
utilities.createMetadata_NewLink("meta1",
- "CYNET-GEANT-Link"+
subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
- "Path.Status", node1, node2,
parameters);
-
metadata.getChild("subject",nmwg).getChild("link",nmtl2).removeChild("name",nmtl2);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
+ metadata.getChild("subject",
nmwg).getChild("link", nmtl2)
+ .removeChild("name", nmtl2);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
@@ -1187,8 +1185,8 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
-
- // A request where the link globalname
element is missing
+
+ // A request where the link globalname element is
missing
case 46:
time += subTestCase * 1000;
@@ -1196,17 +1194,20 @@
+ subTestCase, "Cyprus",
"Nicosia", "Cynet",
"DemarcPoint");
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata=
utilities.createMetadata_NewLink("meta1",
- "CYNET-GEANT-Link"+
subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
- "Path.Status", node1, node2,
parameters);
-
metadata.getChild("subject",nmwg).getChild("link",nmtl2).removeChild("globalName",nmtl2);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
+ metadata.getChild("subject",
nmwg).getChild("link", nmtl2)
+ .removeChild("globalName",
nmtl2);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
@@ -1214,8 +1215,8 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
-
- // A request where the link type element is
missing
+
+ // A request where the link type element is missing
case 47:
time += subTestCase * 1000;
@@ -1223,17 +1224,20 @@
+ subTestCase, "Cyprus",
"Nicosia", "Cynet",
"DemarcPoint");
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata=
utilities.createMetadata_NewLink("meta1",
- "CYNET-GEANT-Link"+
subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
- "Path.Status", node1, node2,
parameters);
-
metadata.getChild("subject",nmwg).getChild("link",nmtl2).removeChild("type",nmtl2);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
+ metadata.getChild("subject",
nmwg).getChild("link", nmtl2)
+ .removeChild("type", nmtl2);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
@@ -1241,7 +1245,8 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the topology element of
the node element has no value
+ // A request where the topology element of the node
element has no
+ // value
case 48:
time += subTestCase * 1000;
@@ -1249,16 +1254,18 @@
+ subTestCase, "Cyprus",
"Nicosia", "Cynet",
"DemarcPoint");
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata=
utilities.createMetadata_NewLink("meta1",
- "CYNET-GEANT-Link"+
subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
- "Path.Status", node1, node2,
parameters);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
@@ -1266,24 +1273,26 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
-
- // A request where the name element of the
node has no value
+
+ // A request where the name element of the node has
no value
case 49:
time += subTestCase * 1000;
- node1 =
utilities.createNode("TopologyPoint","", "Cyprus", "Nicosia", "Cynet",
+ node1 = utilities.createNode("TopologyPoint",
"", "Cyprus",
+ "Nicosia", "Cynet",
"DemarcPoint");
+
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
"DemarcPoint");
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
-
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata=
utilities.createMetadata_NewLink("meta1",
- "CYNET-GEANT-Link"+
subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
- "Path.Status", node1, node2,
parameters);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
@@ -1291,24 +1300,25 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the country element of the
node has no value
+ // A request where the country element of the node
has no value
case 50:
time += subTestCase * 1000;
node1 = utilities.createNode("TopologyPoint",
"CYNET-"
- + subTestCase, "", "Nicosia",
"Cynet",
+ + subTestCase, "", "Nicosia",
"Cynet", "DemarcPoint");
+
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
"DemarcPoint");
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
-
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata=
utilities.createMetadata_NewLink("meta1",
- "CYNET-GEANT-Link"+
subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
- "Path.Status", node1, node2,
parameters);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
@@ -1316,25 +1326,26 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
-
- // A request where the city element of the
node has no value
+
+ // A request where the city element of the node has
no value
case 51:
time += subTestCase * 1000;
node1 = utilities.createNode("TopologyPoint",
"CYNET-"
- + subTestCase, "Cyprus", "",
"Cynet",
+ + subTestCase, "Cyprus", "",
"Cynet", "DemarcPoint");
+
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
"DemarcPoint");
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
-
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata=
utilities.createMetadata_NewLink("meta1",
- "CYNET-GEANT-Link"+
subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
- "Path.Status", node1, node2,
parameters);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
@@ -1342,24 +1353,25 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the institution element of
the node has no value
+ // A request where the institution element of the
node has no value
case 52:
time += subTestCase * 1000;
node1 = utilities.createNode("TopologyPoint",
"CYNET-"
- + subTestCase, "Cyprus",
"Nicosia", "",
+ + subTestCase, "Cyprus",
"Nicosia", "", "DemarcPoint");
+
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
"DemarcPoint");
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
-
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata=
utilities.createMetadata_NewLink("meta1",
- "CYNET-GEANT-Link"+
subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
- "Path.Status", node1, node2,
parameters);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
@@ -1367,24 +1379,25 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the role element of the
node has no value
+ // A request where the role element of the node has
no value
case 53:
time += subTestCase * 1000;
node1 = utilities.createNode("TopologyPoint",
"CYNET-"
- + subTestCase, "Cyprus",
"Nicosia", "Cynet",
- "");
+ + subTestCase, "Cyprus",
"Nicosia", "Cynet", "");
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata=
utilities.createMetadata_NewLink("meta1",
- "CYNET-GEANT-Link"+
subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
- "Path.Status", node1, node2,
parameters);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
@@ -1392,25 +1405,27 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the type element of the
node is missing
+ // A request where the type element of the node is
missing
case 54:
time += subTestCase * 1000;
node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ subTestCase, "Cyprus",
"Nicosia", "Cynet",
"DemarcPoint");
- node1.removeChild("type",nmwg);
+ node1.removeChild("type", nmwg);
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata=
utilities.createMetadata_NewLink("meta1",
- "CYNET-GEANT-Link"+
subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
- "Path.Status", node1, node2,
parameters);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
@@ -1418,26 +1433,28 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
-
- // A request where the name element of the
node is missing
+
+ // A request where the name element of the node is
missing
case 55:
time += subTestCase * 1000;
node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ subTestCase, "Cyprus",
"Nicosia", "Cynet",
"DemarcPoint");
- node1.removeChild("name",nmwg);
+ node1.removeChild("name", nmwg);
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata=
utilities.createMetadata_NewLink("meta1",
- "CYNET-GEANT-Link"+
subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
- "Path.Status", node1, node2,
parameters);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
@@ -1445,25 +1462,27 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the country element of the
node is missing.
+ // A request where the country element of the node is
missing.
case 56:
time += subTestCase * 1000;
node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ subTestCase, "Cyprus",
"Nicosia", "Cynet",
"DemarcPoint");
- node1.removeChild("country",nmwg);
+ node1.removeChild("country", nmwg);
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata=
utilities.createMetadata_NewLink("meta1",
- "CYNET-GEANT-Link"+
subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
- "Path.Status", node1, node2,
parameters);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
@@ -1471,25 +1490,27 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the city element of the
node is missing
+ // A request where the city element of the node is
missing
case 57:
time += subTestCase * 1000;
node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ subTestCase, "Cyprus",
"Nicosia", "Cynet",
"DemarcPoint");
- node1.removeChild("city",nmwg);
+ node1.removeChild("city", nmwg);
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata=
utilities.createMetadata_NewLink("meta1",
- "CYNET-GEANT-Link"+
subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
- "Path.Status", node1, node2,
parameters);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
@@ -1497,25 +1518,27 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the institution element of
the node is missing
+ // A request where the institution element of the
node is missing
case 58:
time += subTestCase * 1000;
node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ subTestCase, "Cyprus",
"Nicosia", "Cynet",
"DemarcPoint");
- node1.removeChild("institution",nmwg);
+ node1.removeChild("institution", nmwg);
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata=
utilities.createMetadata_NewLink("meta1",
- "CYNET-GEANT-Link"+
subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
- "Path.Status", node1, node2,
parameters);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
@@ -1523,25 +1546,27 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the role element of the
node element is missing
+ // A request where the role element of the node
element is missing
case 59:
time += subTestCase * 1000;
node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ subTestCase, "Cyprus",
"Nicosia", "Cynet",
"DemarcPoint");
- node1.removeChild("role",nmwg);
+ node1.removeChild("role", nmwg);
- node2 = utilities.createNode("TopologyPoint",
"GEANT-"+ subTestCase, "Italy",
- "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata=
utilities.createMetadata_NewLink("meta1",
- "CYNET-GEANT-Link"+
subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
- "Path.Status", node1, node2,
parameters);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
@@ -1549,280 +1574,317 @@
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- //A request where the parameters element is
missing.
+ // A request where the parameters element is missing.
case 60:
time += subTestCase * 1000;
- node1 = utilities.createNode("TopologyPoint",
- "CYNET-"+ subTestCase,
"Cyprus", "Nicosia", "Cynet", "DemarcPoint");
+ node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ + subTestCase, "Cyprus",
"Nicosia", "Cynet",
+ "DemarcPoint");
- node2 =
utilities.createNode("TopologyPoint","GEANT-"+ subTestCase,
- "Italy", "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
-
- metadata=
utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link"+ subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
-
"Path.Status", node1, node2, parameters);
+
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
metadata.removeChild("parameters", nmwg);
doc.getRootElement().addContent(metadata);
-
+
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
-
- // A request where the parameter elements are
missing
+
+ // A request where the parameter elements are missing
case 61:
time += subTestCase * 1000;
- node1 = utilities.createNode("TopologyPoint",
- "CYNET-"+ subTestCase,
"Cyprus", "Nicosia", "Cynet", "DemarcPoint");
+ node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ + subTestCase, "Cyprus",
"Nicosia", "Cynet",
+ "DemarcPoint");
- node2 =
utilities.createNode("TopologyPoint","GEANT-"+ subTestCase,
- "Italy", "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
-
- metadata=
utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link"+ subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
-
"Path.Status", node1, node2, parameters);
- metadata.getChild("parameters",
nmwg).removeChildren("parameter", nmwg);
+
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
+ metadata.getChild("parameters",
nmwg).removeChildren(
+ "parameter", nmwg);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the path id parameter has
no value
+ // A request where the path id parameter has no value
case 62:
time += subTestCase * 1000;
- node1 = utilities.createNode("TopologyPoint",
- "CYNET-"+ subTestCase,
"Cyprus", "Nicosia", "Cynet", "DemarcPoint");
+ node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ + subTestCase, "Cyprus",
"Nicosia", "Cynet",
+ "DemarcPoint");
- node2 =
utilities.createNode("TopologyPoint","GEANT-"+ subTestCase,
- "Italy", "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
- parameters =
utilities.createParameters("pathId",
- "", "ibatisConfig",
+ parameters =
utilities.createParameters("pathId", "",
+ "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
-
- metadata=
utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link"+ subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
-
"Path.Status", node1, node2, parameters);
+
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
-
- // A request where the path id parameter has
an invalid value
+
+ // A request where the path id parameter has an
invalid value
case 63:
time += subTestCase * 1000;
- node1 = utilities.createNode("TopologyPoint",
- "CYNET-"+ subTestCase,
"Cyprus", "Nicosia", "Cynet", "DemarcPoint");
+ node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ + subTestCase, "Cyprus",
"Nicosia", "Cynet",
+ "DemarcPoint");
- node2 =
utilities.createNode("TopologyPoint","GEANT-"+ subTestCase,
- "Italy", "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
- parameters =
utilities.createParameters("pathId",
- "SOME_LINK", "ibatisConfig",
+ parameters =
utilities.createParameters("pathId", "SOME_LINK",
+ "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
-
- metadata=
utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link"+ subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
-
"Path.Status", node1, node2, parameters);
+
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the ibatis config
parameter has no value
+ // A request where the ibatis config parameter has no
value
case 64:
time += subTestCase * 1000;
- node1 = utilities.createNode("TopologyPoint",
- "CYNET-"+ subTestCase,
"Cyprus", "Nicosia", "Cynet", "DemarcPoint");
+ node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ + subTestCase, "Cyprus",
"Nicosia", "Cynet",
+ "DemarcPoint");
- node2 =
utilities.createNode("TopologyPoint","GEANT-"+ subTestCase,
- "Italy", "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
- "");
-
- metadata=
utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link"+ subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
-
"Path.Status", node1, node2, parameters);
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig", "");
+
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the ibatis config
parameter has a wrong value
+ // A request where the ibatis config parameter has a
wrong value
case 65:
time += subTestCase * 1000;
- node1 = utilities.createNode("TopologyPoint",
- "CYNET-"+ subTestCase,
"Cyprus", "Nicosia", "Cynet", "DemarcPoint");
+ node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ + subTestCase, "Cyprus",
"Nicosia", "Cynet",
+ "DemarcPoint");
- node2 =
utilities.createNode("TopologyPoint","GEANT-"+ subTestCase,
- "Italy", "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status.xml");
-
- metadata=
utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link"+ subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
-
"Path.Status", node1, node2, parameters);
+
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the path id parameter
element name attribute has no value
+ // A request where the path id parameter element name
attribute has
+ // no value
case 66:
time += subTestCase * 1000;
- node1 = utilities.createNode("TopologyPoint",
- "CYNET-"+ subTestCase,
"Cyprus", "Nicosia", "Cynet", "DemarcPoint");
+ node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ + subTestCase, "Cyprus",
"Nicosia", "Cynet",
+ "DemarcPoint");
- node2 =
utilities.createNode("TopologyPoint","GEANT-"+ subTestCase,
- "Italy", "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
- parameters = utilities.createParameters("",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ parameters = utilities.createParameters("",
"CYNET-GEANT-Link-"
+ + subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
-
- metadata=
utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link"+ subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
-
"Path.Status", node1, node2, parameters);
+
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
-
- // A request where the path id parameter
element name attribute has an invalid value
+
+ // A request where the path id parameter element name
attribute has
+ // an invalid value
case 67:
time += subTestCase * 1000;
- node1 = utilities.createNode("TopologyPoint",
- "CYNET-"+ subTestCase,
"Cyprus", "Nicosia", "Cynet", "DemarcPoint");
+ node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ + subTestCase, "Cyprus",
"Nicosia", "Cynet",
+ "DemarcPoint");
- node2 =
utilities.createNode("TopologyPoint","GEANT-"+ subTestCase,
- "Italy", "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("no_pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
-
- metadata=
utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link"+ subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
-
"Path.Status", node1, node2, parameters);
+
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the ibatis config
parameter element has no value
+ // A request where the ibatis config parameter
element has no value
case 68:
time += subTestCase * 1000;
- node1 = utilities.createNode("TopologyPoint",
- "CYNET-"+ subTestCase,
"Cyprus", "Nicosia", "Cynet", "DemarcPoint");
+ node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ + subTestCase, "Cyprus",
"Nicosia", "Cynet",
+ "DemarcPoint");
- node2 =
utilities.createNode("TopologyPoint","GEANT-"+ subTestCase,
- "Italy", "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "",
+ "CYNET-GEANT-Link-" +
subTestCase, "",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
-
- metadata=
utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link"+ subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
-
"Path.Status", node1, node2, parameters);
+
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
-
- // A request where the ibatis config
parameter has an invalid value.
+
+ // A request where the ibatis config parameter has an
invalid value.
case 69:
time += subTestCase * 1000;
- node1 = utilities.createNode("TopologyPoint",
- "CYNET-"+ subTestCase,
"Cyprus", "Nicosia", "Cynet", "DemarcPoint");
+ node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ + subTestCase, "Cyprus",
"Nicosia", "Cynet",
+ "DemarcPoint");
- node2 =
utilities.createNode("TopologyPoint","GEANT-"+ subTestCase,
- "Italy", "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "no_ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "no_ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
-
- metadata=
utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link"+ subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
-
"Path.Status", node1, node2, parameters);
+
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the path id parameter
element has no name atribute
+ // A request where the path id parameter element has
no name
+ // atribute
case 70:
time += subTestCase * 1000;
- node1 = utilities.createNode("TopologyPoint",
- "CYNET-"+ subTestCase,
"Cyprus", "Nicosia", "Cynet", "DemarcPoint");
+ node1 = utilities.createNode("TopologyPoint",
"CYNET-"
+ + subTestCase, "Cyprus",
"Nicosia", "Cynet",
+ "DemarcPoint");
- node2 =
utilities.createNode("TopologyPoint","GEANT-"+ subTestCase,
- "Italy", "Napoli", "GEANT",
"DemarcPoint");
+ node2 = utilities.createNode("TopologyPoint",
"GEANT-"
+ + subTestCase, "Italy",
"Napoli", "GEANT",
+ "DemarcPoint");
parameters =
utilities.createParameters("pathId",
- "CYNET-GEANT-Link-"+
subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
-
parameters.getChild("parameter",nmwg).removeAttribute("name");
- metadata=
utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link"+ subTestCase, "CY-GEANT-"+ subTestCase, "ID_Link",
-
"Path.Status", node1, node2, parameters);
+ parameters.getChild("parameter",
nmwg).removeAttribute("name");
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link" +
subTestCase, "CY-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ node2, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
-
+
break;
- // A request where one of the nodes is missing
+ // A request where one of the nodes is missing
case 71:
time += subTestCase * 1000;
node1 = utilities.createNode("TopologyPoint",
"GRNET-5",
"Greece", "Athens", "GRnet",
"DemarcPoint");
node2 = new Element("node", nmwgtopo3);
- node2.setAttribute("nodeIdRef",
"CYNET-"+subTestCase);
+ node2.setAttribute("nodeIdRef", "CYNET-" +
subTestCase);
parameters =
utilities.createParameters("pathId",
-
"CYNET-GEANT-Link-"+subTestCase, "ibatisConfig",
+ "CYNET-GEANT-Link-" +
subTestCase, "ibatisConfig",
"ibatis-SqlMapConfig-L2-status-interdomain.xml");
- metadata
=utilities.createMetadata_NewLink("meta1",
-
"CYNET-GEANT-Link-"+subTestCase, "CY-GR-GEANT-"+subTestCase,
- "ID_Link", "Path.Status",
node1, null,
- parameters);
+ metadata =
utilities.createMetadata_NewLink("meta1",
+ "CYNET-GEANT-Link-" +
subTestCase, "CY-GR-GEANT-"
+ +
subTestCase, "ID_Link", "Path.Status", node1,
+ null, parameters);
doc.getRootElement().addContent(metadata);
doc.getRootElement().addContent(
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", time
.toString(), "Cynet", "up")));
break;
- // A request where the metadataIdRef
attribute of the data element has a wrong value.
+ // A request where the metadataIdRef attribute of the
data element
+ // has a wrong value.
case 72:
time += subTestCase * 1000;
doc.getRootElement().addContent(
@@ -1835,7 +1897,8 @@
utilities.createDataElements("Unix", time
.toString(), "PSNC", "up")));
break;
- // A request where the metadataIdRef
attribute of the data element has no value.
+ // A request where the metadataIdRef attribute of the
data element
+ // has no value.
case 73:
time += subTestCase * 1000;
doc.getRootElement().addContent(
@@ -1850,20 +1913,21 @@
break;
case 74:
- // A request where the metadataIdRef
attribute of the data element doesn't exist.
+ // A request where the metadataIdRef
attribute of the data
+ // element doesn't exist.
time += subTestCase * 1000;
doc.getRootElement().addContent(
utilities.createMetadata("meta1", utilities
.createMetadata1Elements_Link(
"PSNC-DFN-MUE-003", "logical",
"Path.Status")));
- Element data
=utilities.createDataElement_Store("data1", "meta1",
-
utilities.createDataElements("Unix", time
+ Element data =
utilities.createDataElement_Store("data1",
+ "meta1",
utilities.createDataElements("Unix", time
.toString(),
"PSNC", "up"));
data.removeAttribute("metadataIdRef");
doc.getRootElement().addContent(data);
break;
- // A request where the time type attribute
has an invalid value
+ // A request where the time type attribute has an
invalid value
case 75:
time += subTestCase * 1000;
doc.getRootElement().addContent(
@@ -1871,15 +1935,15 @@
.createMetadata1Elements_Link(
"PSNC-DFN-MUE-003", "logical",
"Path.Status")));
- data
=utilities.createDataElement_Store("data1", "meta1",
-
utilities.createDataElements("SQL", time
- .toString(),
"PSNC", "up"));
+ data =
utilities.createDataElement_Store("data1", "meta1",
+
utilities.createDataElements("SQL", time.toString(),
+ "PSNC",
"up"));
doc.getRootElement().addContent(data);
-
+
break;
-
- // A request where the time type attribute
has no value
-
+
+ // A request where the time type attribute has no
value
+
case 76:
time += subTestCase * 1000;
doc.getRootElement().addContent(
@@ -1887,13 +1951,13 @@
.createMetadata1Elements_Link(
"PSNC-DFN-MUE-003", "logical",
"Path.Status")));
- data
=utilities.createDataElement_Store("data1", "meta1",
-
utilities.createDataElements("", time
- .toString(),
"PSNC", "up"));
+ data =
utilities.createDataElement_Store("data1", "meta1",
+
utilities.createDataElements("", time.toString(),
+ "PSNC",
"up"));
doc.getRootElement().addContent(data);
break;
- // A request where the time type attribute is
missing
+ // A request where the time type attribute is missing
case 77:
time += subTestCase * 1000;
doc.getRootElement().addContent(
@@ -1901,14 +1965,14 @@
.createMetadata1Elements_Link(
"PSNC-DFN-MUE-003", "logical",
"Path.Status")));
- data
=utilities.createDataElement_Store("data1", "meta1",
-
utilities.createDataElements("", time
- .toString(),
"PSNC", "up"));
-
data.getChild("datum",ifevt).removeAttribute("timeType");
- doc.getRootElement().addContent(data);
+ data =
utilities.createDataElement_Store("data1", "meta1",
+
utilities.createDataElements("", time.toString(),
+ "PSNC",
"up"));
+ data.getChild("datum",
ifevt).removeAttribute("timeType");
+ doc.getRootElement().addContent(data);
break;
-
- // A request where the time value has an
invalid value
+
+ // A request where the time value has an invalid value
case 78:
time += subTestCase * 1000;
doc.getRootElement().addContent(
@@ -1916,11 +1980,12 @@
.createMetadata1Elements_Link(
"PSNC-DFN-MUE-003", "logical",
"Path.Status")));
- data
=utilities.createDataElement_Store("data1", "meta1",
-
utilities.createDataElements("Unix","invalid", "PSNC", "up"));
+ data =
utilities.createDataElement_Store("data1", "meta1",
+
utilities.createDataElements("Unix", "invalid", "PSNC",
+ "up"));
doc.getRootElement().addContent(data);
break;
- // A request where the time value has no value
+ // A request where the time value has no value
case 79:
time += subTestCase * 1000;
doc.getRootElement().addContent(
@@ -1928,13 +1993,13 @@
.createMetadata1Elements_Link(
"PSNC-DFN-MUE-003", "logical",
"Path.Status")));
- data
=utilities.createDataElement_Store("data1", "meta1",
+ data =
utilities.createDataElement_Store("data1", "meta1",
utilities.createDataElements("Unix", "", "PSNC", "up"));
doc.getRootElement().addContent(data);
break;
-
- // A request where the time value attribute
is missing
-
+
+ // A request where the time value attribute is missing
+
case 80:
time += subTestCase * 1000;
doc.getRootElement().addContent(
@@ -1942,13 +2007,13 @@
.createMetadata1Elements_Link(
"PSNC-DFN-MUE-003", "logical",
"Path.Status")));
- data
=utilities.createDataElement_Store("data1", "meta1",
-
utilities.createDataElements("Unix", time
- .toString(),
"PSNC", "up"));
-
data.getChild("datum",ifevt).removeAttribute("timeValue");
+ data =
utilities.createDataElement_Store("data1", "meta1",
+
utilities.createDataElements("Unix", time.toString(),
+ "PSNC",
"up"));
+ data.getChild("datum",
ifevt).removeAttribute("timeValue");
doc.getRootElement().addContent(data);
break;
- // A request where the state oper element has
a non valid value
+ // A request where the state oper element has a non
valid value
case 81:
time += subTestCase * 1000;
doc.getRootElement().addContent(
@@ -1961,7 +2026,7 @@
utilities.createDataElements("Unix", time
.toString(), "PSNC", "whatever")));
break;
- // A request where the state oper element has
no value
+ // A request where the state oper element has no value
case 82:
time += subTestCase * 1000;
doc.getRootElement().addContent(
@@ -1974,7 +2039,7 @@
utilities.createDataElements("Unix", time
.toString(), "PSNC", "")));
break;
- // A request where the state oper element is
missing
+ // A request where the state oper element is missing
case 83:
time += subTestCase * 1000;
doc.getRootElement().addContent(
@@ -1983,15 +2048,15 @@
"PSNC-DFN-MUE-003", "logical",
"Path.Status")));
data =
utilities.createDataElement_Store("data1", "meta1",
-
utilities.createDataElements("Unix", time
- .toString(),
"PSNC", "up"));
-
data.getChild("datum",ifevt).removeChild("stateOper",ifevt);
+
utilities.createDataElements("Unix", time.toString(),
+ "PSNC",
"up"));
+ data.getChild("datum",
ifevt).removeChild("stateOper", ifevt);
doc.getRootElement().addContent(data);
break;
-
- // A request where the stateAdmin element has
no value
+
+ // A request where the stateAdmin element has no value
case 84:
-
+
time += subTestCase * 1000;
doc.getRootElement().addContent(
utilities.createMetadata("meta1", utilities
@@ -1999,12 +2064,12 @@
"PSNC-DFN-MUE-003", "logical",
"Path.Status")));
data =
utilities.createDataElement_Store("data1", "meta1",
-
utilities.createDataElements("Unix", time
- .toString(),
"", "up"));
+
utilities.createDataElements("Unix", time.toString(),
+ "", "up"));
doc.getRootElement().addContent(data);
break;
-
- // A request where the datum element of the
data element is missing
+
+ // A request where the datum element of the data
element is missing
case 85:
time += subTestCase * 1000;
doc.getRootElement().addContent(
@@ -2013,9 +2078,9 @@
"PSNC-DFN-MUE-003", "logical",
"Path.Status")));
data =
utilities.createDataElement_Store("data1", "meta1",
-
utilities.createDataElements("Unix", time
- .toString(),
"PSNC", "up"));
- data.removeChild("datum",ifevt);
+
utilities.createDataElements("Unix", time.toString(),
+ "PSNC",
"up"));
+ data.removeChild("datum", ifevt);
doc.getRootElement().addContent(data);
break;
}
@@ -2050,7 +2115,7 @@
if (i == 1) {
System.out
.print("The first
group of cases is constracted(9)...");
- for (int j = 1; j < 11; j++) {
+ for (int j = 1; j < 10; j++) {
creator.createMeasurmentArchiveStoreRequests(i, j,
args[0] +
"/d_" + i + "_" + j + ".xml");
Added:
trunk/functional-testing/sqlma/l2/MeasurmentArchiveStoreRequest/MeasurementArchiveStoreResponseParser.java
Property changes on:
trunk/functional-testing/sqlma/l2/MeasurmentArchiveStoreRequest/MeasurementArchiveStoreResponseParser.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
- r2079 - in trunk/functional-testing: . common common/echo sqlma/l2/MeasurmentArchiveStoreRequest, svnlog, 02/15/2007
Archive powered by MHonArc 2.6.16.