133134135136137138139140141142143
}); } @Test public void DoublePrimitiveAndWrapper() throws Exception { test(new Scriptable() { boolean act() { assert Double.class != double.class; return Double.class == double.class; }
144145146147148149150151152153154
}); } @Test public void ShortPrimitive() throws Exception { test(new Scriptable() { Class act() { return short.class; } });
154155156157158159160161162163164
}); } @Test public void ShortWrapper() throws Exception { test(new Scriptable() { Class act() { return Short.class; } });
164165166167168169170171172173174
}); } @Test public void ShortPrimitiveAndWrapper() throws Exception { test(new Scriptable() { boolean act() { assert Short.class != short.class; return Short.class == short.class; }
175176177178179180181182183184185
}); } @Test public void BytePrimitive() throws Exception { test(new Scriptable() { Class act() { return byte.class; } });
185186187188189190191192193194195
}); } @Test public void ByteWrapper() throws Exception { test(new Scriptable() { Class act() { return Byte.class; } });
195196197198199200201202203204205
}); } @Test public void BytePrimitiveAndWrapper() throws Exception { test(new Scriptable() { boolean act() { assert Byte.class != byte.class; return Byte.class == byte.class; }
206207208209210211212213214215216
}); } @Test public void BooleanPrimitive() throws Exception { test(new Scriptable() { Class act() { return boolean.class; } });
216217218219220221222223224225226
}); } @Test public void BooleanWrapper() throws Exception { test(new Scriptable() { Class act() { return Boolean.class; } });
226227228229230231232233234235236
}); } @Test public void BooleanPrimitiveAndWrapper() throws Exception { test(new Scriptable() { boolean act() { assert Boolean.class != boolean.class; return Boolean.class == boolean.class; }