()
| 677 | } |
| 678 | |
| 679 | @Test |
| 680 | public void getLastPointTSUIDTagkNSUI() throws Exception { |
| 681 | Whitebox.setInternalState(config, "enable_tsuid_incrementing", false); |
| 682 | Whitebox.setInternalState(config, "enable_realtime_ts", false); |
| 683 | storage.flushStorage(); |
| 684 | storage.addColumn(MockBase.stringToBytes("00000150E22700000004000001"), |
| 685 | QUAL, VAL); |
| 686 | final byte[] tsuid = new byte[] { 0, 0, 1, 0, 0, 4, 0, 0, 1 }; |
| 687 | PowerMockito.mockStatic(DateTime.class); |
| 688 | PowerMockito.when(DateTime.currentTimeMillis()).thenReturn(1356998400000L); |
| 689 | query = new TSUIDQuery(tsdb, tsuid); |
| 690 | try { |
| 691 | query.getLastPoint(true, 0).join(); |
| 692 | fail("Expected DeferredGroupException"); |
| 693 | } catch (DeferredGroupException e) { |
| 694 | assertTrue(e.getCause() instanceof NoSuchUniqueId); |
| 695 | } |
| 696 | } |
| 697 | |
| 698 | @Test |
| 699 | public void getLastPointTSUIDTagvNSUINotResolved() throws Exception { |
nothing calls this directly
no test coverage detected