()
| 104 | } |
| 105 | |
| 106 | public void testWriteUnion() { |
| 107 | SizedUnion u = new SizedUnion(); |
| 108 | final int VALUE = 0x12345678; |
| 109 | u.intField = VALUE; |
| 110 | u.setType(int.class); |
| 111 | u.write(); |
| 112 | assertEquals("Wrong value written", VALUE, u.getPointer().getInt(0)); |
| 113 | } |
| 114 | |
| 115 | public void testReadUnion() { |
| 116 | SizedUnion u = new SizedUnion(); |
nothing calls this directly
no test coverage detected