/**
* This method performs all actions mentioned in class description.
*/
public void run() throws Exception {
// 1 primitive types
new Primitive(new Boolean(true));
new Primitive(new Byte((byte) 5));
new Primitive(new Character('f'));
new Primitive(new Short((short) 11222));
new Primitive(new Integer(1222333));
new Primitive(new Long(111222333444L));
new Primitive(new Float(1.5f));
new Primitive(new Double(2.5d));
// 2 null
try{
new Primitive(null);
throw new TestException(
"IllegalArgumentException should be thrown");
} catch (IllegalArgumentException ignore) {
}
// 3 not associated wrapper class object
try{
new Primitive("Some string");
throw new TestException(
"IllegalArgumentException should be thrown");
} catch (IllegalArgumentException ignore) {
}
}