mx4j/src/test/test/javax/management ObjectNameTest.java,1.14,1.15

Jeremy Boynes <[email protected]> Tue, 08 Feb 2005 00:37:36 +0000
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/test/test/javax/management
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11283/src/test/test/javax/management

Modified Files:
	ObjectNameTest.java 
Log Message:
Fix for 1115194 - with new testcase that illustrates the problem

Index: ObjectNameTest.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/test/test/javax/management/ObjectNameTest.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** ObjectNameTest.java	7 Feb 2005 23:02:35 -0000	1.14
--- ObjectNameTest.java	8 Feb 2005 00:37:33 -0000	1.15
***************
*** 447,450 ****
--- 447,459 ----
        {
        }
+ 
+       try
+       {
+          new ObjectName("domain", "x", "\"unterminated");
+          fail("Wrong ObjectName");
+       }
+       catch (MalformedObjectNameException x)
+       {
+       }
     }
  



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click