1 22 package org.jboss.test.mx.mxbean.test; 23 24 import junit.framework.Test; 25 import junit.framework.TestSuite; 26 27 33 public class CompositeDataBooleanUnitTestCase extends CompositeDataTest 34 { 35 public static Test suite() 36 { 37 return new TestSuite(CompositeDataBooleanUnitTestCase.class); 38 } 39 40 public CompositeDataBooleanUnitTestCase(String name) 41 { 42 super(name); 43 } 44 45 public void testBooleanTrue() throws Exception 46 { 47 constructReconstructTest(new Boolean (true)); 48 } 49 50 public void testBooleanFalse() throws Exception 51 { 52 constructReconstructTest(new Boolean (false)); 53 } 54 55 public void testBooleanNull() throws Exception 56 { 57 constructReconstructTest(null, Boolean .class); 58 } 59 60 public void testBooleanTruePrimitive() throws Exception 61 { 62 constructReconstructTest(new Boolean (true), Boolean.TYPE); 63 } 64 65 public void testBooleanFalsePrimitive() throws Exception 66 { 67 constructReconstructTest(new Boolean (false), Boolean.TYPE); 68 } 69 70 public void testBooleanNullPrimitive() throws Exception 71 { 72 assertNullFailure(Boolean.TYPE); 73 } 74 } 75 | Popular Tags |