Author: jonesde
Date: Tue Mar 6 10:10:41 2007
New Revision: 515235
URL: http://svn.apache.org/viewvc?view=rev&rev=515235
Log:
Added stub and xsd file extension for entity-xml-assert test case
Added:
ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/EntityXmlAssertTest.java
(with props)
Modified:
ofbiz/trunk/framework/testtools/dtd/test-suite.xsd
ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java
Modified: ofbiz/trunk/framework/testtools/dtd/test-suite.xsd
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/testtools/dtd/test-suite.xsd?view=diff&rev=515235&r1=515234&r2=515235
==============================================================================
--- ofbiz/trunk/framework/testtools/dtd/test-suite.xsd (original)
+++ ofbiz/trunk/framework/testtools/dtd/test-suite.xsd Tue Mar 6 10:10:41 2007
@@ -79,6 +79,15 @@
<xs:attribute type="xs:string" name="service-name" use="required"/>
</xs:attributeGroup>
+ <xs:element name="entity-xml-assert" substitutionGroup="TestCaseTypes">
+ <xs:complexType>
+ <xs:attributeGroup ref="attlist.entity-xml-assert"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.entity-xml-assert">
+ <xs:attribute type="xs:string" name="entity-xml-url" use="required"/>
+ </xs:attributeGroup>
+
<xs:element name="jython-test" substitutionGroup="TestCaseTypes">
<xs:complexType>
<xs:attributeGroup ref="attlist.jython-test"/>
Added:
ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/EntityXmlAssertTest.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/EntityXmlAssertTest.java?view=auto&rev=515235
==============================================================================
---
ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/EntityXmlAssertTest.java
(added)
+++
ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/EntityXmlAssertTest.java
Tue Mar 6 10:10:41 2007
@@ -0,0 +1,48 @@
+/*******************************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+
*******************************************************************************/
+package org.ofbiz.testtools;
+
+import junit.framework.TestResult;
+
+import org.w3c.dom.Element;
+
+public class EntityXmlAssertTest extends TestCaseBase {
+
+ public static final String module = ServiceTest.class.getName();
+
+ protected String entityXmlUrlString;
+
+ /**
+ * @param modelTestSuite
+ */
+ public EntityXmlAssertTest(String caseName, ModelTestSuite modelTestSuite,
Element mainElement) {
+ super(caseName, modelTestSuite);
+ this.entityXmlUrlString = mainElement.getAttribute("entity-xml-url");
+ }
+
+ public int countTestCases() {
+ return 1;
+ }
+
+ public void run(TestResult result) {
+ // TODO Auto-generated method stub
+
+ // NOTE: use EntityDataAssert.java
+ }
+}
Propchange:
ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/EntityXmlAssertTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/EntityXmlAssertTest.java
------------------------------------------------------------------------------
svn:keywords = "Date Rev Author URL Id"
Propchange:
ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/EntityXmlAssertTest.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified:
ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java?view=diff&rev=515235&r1=515234&r2=515235
==============================================================================
--- ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java
(original)
+++ ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java
Tue Mar 6 10:10:41 2007
@@ -92,6 +92,8 @@
}
} else if ("service-test".equals(nodeName)) {
this.testList.add(new ServiceTest(caseName, this,
childElement));
+ } else if ("entity-xml-assert".equals(nodeName)) {
+ this.testList.add(new EntityXmlAssertTest(caseName, this,
childElement));
} else if ("jython-test".equals(nodeName)) {
this.testList.add(new JythonTest(caseName, this,
childElement));
}