[jboss-cvs] JBossAS SVN: r68095 - trunk/testsuite/src/main/org/jboss/test/xml/mbeanserver.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Dec 10 06:19:00 EST 2007
Author: alex.loubyansky at jboss.com
Date: 2007-12-10 06:19:00 -0500 (Mon, 10 Dec 2007)
New Revision: 68095
Modified:
trunk/testsuite/src/main/org/jboss/test/xml/mbeanserver/XMBean2UnitTestCase.java
Log:
JBAS-4642 non-ignorable whitespaces are not ignored now
Modified: trunk/testsuite/src/main/org/jboss/test/xml/mbeanserver/XMBean2UnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/xml/mbeanserver/XMBean2UnitTestCase.java 2007-12-10 07:51:36 UTC (rev 68094)
+++ trunk/testsuite/src/main/org/jboss/test/xml/mbeanserver/XMBean2UnitTestCase.java 2007-12-10 11:19:00 UTC (rev 68095)
@@ -26,9 +26,7 @@
import java.net.InetAddress;
import java.util.Arrays;
import java.util.Properties;
-import java.util.HashMap;
-import junit.framework.TestCase;
import org.jboss.xb.binding.Unmarshaller;
import org.jboss.xb.binding.UnmarshallerFactory;
import org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver;
@@ -46,7 +44,6 @@
import javax.management.MBeanNotificationInfo;
import javax.management.MBeanOperationInfo;
import javax.management.modelmbean.ModelMBeanInfo;
-import javax.management.modelmbean.ModelMBeanConstructorInfo;
/**
* Test unmarshalling xml documents conforming to jboss_xmbean_2_0.xsd
@@ -125,9 +122,9 @@
MBeanConstructorInfo[] ctors = info.getConstructors();
assertEquals("ctors length", ctors.length, 1);
- String description = info.getDescription();
- assertEquals("description", description,
- "An xmbean description with custom interceptors that are handled by the JavaBeanSchemaInitializer");
+ assertEquals("description",
+ "An xmbean description with custom interceptors that are handled by the JavaBeanSchemaInitializer",
+ info.getDescription().trim());
MBeanNotificationInfo[] notices = info.getNotifications();
assertEquals("notices length", notices.length, 1);
assertEquals("notices[0].name", notices[0].getName(), "bindEvent");
More information about the jboss-cvs-commits
mailing list