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 CompositeDataByteUnitTestCase extends CompositeDataTest 34 { 35 public static Test suite() 36 { 37 return new TestSuite(CompositeDataByteUnitTestCase.class); 38 } 39 40 public CompositeDataByteUnitTestCase(String name) 41 { 42 super(name); 43 } 44 45 public void testByte() throws Exception 46 { 47 constructReconstructTest(new Byte (Byte.MAX_VALUE)); 48 } 49 50 public void testByteNull() throws Exception 51 { 52 constructReconstructTest(null, Byte .class); 53 } 54 55 public void testBytePrimitive() throws Exception 56 { 57 constructReconstructTest(Byte.MAX_VALUE, Byte.TYPE); 58 } 59 60 public void testByteNullPrimitive() throws Exception 61 { 62 assertNullFailure(Byte.TYPE); 63 } 64 } 65 | Popular Tags |