()
| 715 | } |
| 716 | |
| 717 | @Test |
| 718 | public void getLastPoitTSUIDTagvNSUI() throws Exception { |
| 719 | Whitebox.setInternalState(config, "enable_tsuid_incrementing", false); |
| 720 | Whitebox.setInternalState(config, "enable_realtime_ts", false); |
| 721 | storage.flushStorage(); |
| 722 | storage.addColumn(MockBase.stringToBytes("00000150E22700000001000003"), |
| 723 | QUAL, VAL); |
| 724 | final byte[] tsuid = new byte[] { 0, 0, 1, 0, 0, 1, 0, 0, 3 }; |
| 725 | PowerMockito.mockStatic(DateTime.class); |
| 726 | PowerMockito.when(DateTime.currentTimeMillis()).thenReturn(1356998400000L); |
| 727 | query = new TSUIDQuery(tsdb, tsuid); |
| 728 | try { |
| 729 | query.getLastPoint(true, 0).join(); |
| 730 | fail("Expected DeferredGroupException"); |
| 731 | } catch (DeferredGroupException e) { |
| 732 | assertTrue(e.getCause() instanceof NoSuchUniqueId); |
| 733 | } |
| 734 | } |
| 735 | |
| 736 | @Test |
| 737 | public void getLastPointTSUIDMeta() throws Exception { |
nothing calls this directly
no test coverage detected