Lines Matching refs:cls
25 Class<?> cls = Class.forName("TestCase"); in main() local
27 cls.getMethod("setByteStaticField").invoke(null); in main()
28 expectEquals(1, cls.getField("staticByteField").getByte(null)); in main()
30 cls.getMethod("setShortStaticField").invoke(null); in main()
31 expectEquals(0x101, cls.getField("staticShortField").getShort(null)); in main()
33 cls.getMethod("setCharStaticField").invoke(null); in main()
34 expectEquals(0x101, cls.getField("staticCharField").getChar(null)); in main()
38 cls.getMethod("setByteArray", byte[].class).invoke(null, args); in main()
43 cls.getMethod("setShortArray", short[].class).invoke(null, args); in main()
48 cls.getMethod("setCharArray", char[].class).invoke(null, args); in main()
52 Object[] args = { cls.newInstance() }; in main()
54 cls.getMethod("setByteInstanceField", cls).invoke(null, args); in main()
55 expectEquals(1, cls.getField("staticByteField").getByte(args[0])); in main()
57 cls.getMethod("setShortInstanceField", cls).invoke(null, args); in main()
58 expectEquals(0x101, cls.getField("staticShortField").getShort(args[0])); in main()
60 cls.getMethod("setCharInstanceField", cls).invoke(null, args); in main()
61 expectEquals(0x101, cls.getField("staticCharField").getChar(args[0])); in main()