()
| 124 | } |
| 125 | |
| 126 | @Test |
| 127 | public void deserialize() throws Exception { |
| 128 | String json = "{\"uid\":\"ABCD\",\"type\":\"MeTriC\",\"name\":\"MyName\"," + |
| 129 | "\"description\":\"Description\",\"notes\":\"MyNotes\",\"created\":" + |
| 130 | "1328140801,\"displayName\":\"Empty\",\"unknownkey\":null}"; |
| 131 | meta = JSON.parseToObject(json, UIDMeta.class); |
| 132 | assertNotNull(meta); |
| 133 | assertEquals(meta.getUID(), "ABCD"); |
| 134 | assertEquals(UniqueIdType.METRIC, meta.getType()); |
| 135 | assertEquals("MyNotes", meta.getNotes()); |
| 136 | assertEquals("Empty", meta.getDisplayName()); |
| 137 | } |
| 138 | |
| 139 | @Test |
| 140 | public void getUIDMeta() throws Exception { |
nothing calls this directly
no test coverage detected