mx4j/src/test/test/javax/management/openmbean CompositeTypeTest.java,1.11,1.12

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

Modified Files:
	CompositeTypeTest.java 
Log Message:
Fix for [ 1115215 ] CompositeType should throw IllegalArg if lengths differ
Bug in code was hidden by a bug in the testcase (description was empty)

Index: CompositeTypeTest.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/test/test/javax/management/openmbean/CompositeTypeTest.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** CompositeTypeTest.java	13 Nov 2004 16:38:27 -0000	1.11
--- CompositeTypeTest.java	8 Feb 2005 07:46:04 -0000	1.12
***************
*** 216,220 ****
           String[] itemDescriptions = new String[]{"TShirt's model name", "TShirt's color", "TShirt's price"};
           itemNames = new String[]{"model", "color", "size", "price"};
!          tShirtType = new CompositeType("tShirt", "", itemNames, itemDescriptions, itemTypes);
           fail("No exception thrown");
        }
--- 216,220 ----
           String[] itemDescriptions = new String[]{"TShirt's model name", "TShirt's color", "TShirt's price"};
           itemNames = new String[]{"model", "color", "size", "price"};
!          tShirtType = new CompositeType("tShirt", "a TShirt", itemNames, itemDescriptions, itemTypes);
           fail("No exception thrown");
        }



-------------------------------------------------------
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