()
| 104 | } |
| 105 | |
| 106 | @Test |
| 107 | public void createConstructor() { |
| 108 | PowerMockito.mockStatic(System.class); |
| 109 | when(System.currentTimeMillis()).thenReturn(1357300800000L); |
| 110 | meta = new UIDMeta(UniqueIdType.TAGK, new byte[] { 1, 0, 0 }, "host"); |
| 111 | assertEquals(1357300800000L / 1000, meta.getCreated()); |
| 112 | assertEquals(UniqueId.uidToString(new byte[] { 1, 0, 0 }), meta.getUID()); |
| 113 | assertEquals("host", meta.getName()); |
| 114 | } |
| 115 | |
| 116 | @Test |
| 117 | public void serialize() throws Exception { |
nothing calls this directly
no test coverage detected