jstrachan 01/11/19 02:10:52
Modified: betwixt/src/java/org/apache/commons/betwixt
XMLIntrospector.java
betwixt/src/test/org/apache/commons/betwixt
TestXMLIntrospector.java
Log:
Fixed unit tests. Now defaulting primitive types to be attributes
Revision Changes Path
1.8 +3 -3
jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/XMLIntrospector.java
Index: XMLIntrospector.java
===================================================================
RCS file:
/home/cvs/jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/XMLIntrospector.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- XMLIntrospector.java 2001/11/19 10:06:10 1.7
+++ XMLIntrospector.java 2001/11/19 10:10:51 1.8
@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*
- * $Id: XMLIntrospector.java,v 1.7 2001/11/19 10:06:10 jstrachan Exp $
+ * $Id: XMLIntrospector.java,v 1.8 2001/11/19 10:10:51 jstrachan Exp $
*/
package org.apache.commons.betwixt;
@@ -35,12 +35,12 @@
/** <p><code>XMLIntrospector</code> an introspector of beans to create a
XMLBeanInfo instance.</p>
*
* @author <a href="mailto:[EMAIL PROTECTED]">James Strachan</a>
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
*/
public class XMLIntrospector {
/** should attributes or elements be used for primitive types */
- private boolean attributesForPrimitives;
+ private boolean attributesForPrimitives = true;
public XMLIntrospector() {
}
1.3 +7 -2
jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/TestXMLIntrospector.java
Index: TestXMLIntrospector.java
===================================================================
RCS file:
/home/cvs/jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/TestXMLIntrospector.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- TestXMLIntrospector.java 2001/08/22 18:30:48 1.2
+++ TestXMLIntrospector.java 2001/11/19 10:10:51 1.3
@@ -5,24 +5,29 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*
- * $Id: TestXMLIntrospector.java,v 1.2 2001/08/22 18:30:48 jstrachan Exp $
+ * $Id: TestXMLIntrospector.java,v 1.3 2001/11/19 10:10:51 jstrachan Exp $
*/
package org.apache.commons.betwixt;
import java.io.StringWriter;
import junit.framework.*;
+import junit.textui.TestRunner;
/** Test harness for the XMLIntrospector
*
* @author <a href="mailto:[EMAIL PROTECTED]">James Strachan</a>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class TestXMLIntrospector extends AbstractTestCase {
public static Test suite() {
return new TestSuite(TestXMLIntrospector.class);
+ }
+
+ public static void main( String[] args ) {
+ TestRunner.run( suite() );
}
public TestXMLIntrospector(String testName) {
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>