MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / getLastPointTSUIDTagkNSUI

Method getLastPointTSUIDTagkNSUI

test/meta/TestTSUIDQuery.java:679–696  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 6

stringToBytesMethod · 0.95
currentTimeMillisMethod · 0.95
flushStorageMethod · 0.80
addColumnMethod · 0.80
getLastPointMethod · 0.80
getCauseMethod · 0.80

Tested by

no test coverage detected