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

Method getLastPoitTSUIDTagvNSUI

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

Source from the content-addressed store, hash-verified

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 {

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