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

Method getLastPointMetricNSUNTagk

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

Source from the content-addressed store, hash-verified

491 }
492
493 @Test (expected = DeferredGroupException.class)
494 public void getLastPointMetricNSUNTagk() throws Exception {
495 tags.clear();
496 tags.put(NSUN_TAGK, TAGV_STRING);
497 Whitebox.setInternalState(config, "enable_tsuid_incrementing", false);
498 Whitebox.setInternalState(config, "enable_realtime_ts", false);
499
500 PowerMockito.mockStatic(DateTime.class);
501 PowerMockito.when(DateTime.currentTimeMillis()).thenReturn(1356998400000L);
502 query = new TSUIDQuery(tsdb, METRIC_STRING, tags);
503 query.getLastPoint(false, 0).join();
504 }
505
506 @Test (expected = DeferredGroupException.class)
507 public void getLastPointMetricNSUNTagv() throws Exception {

Callers

nothing calls this directly

Calls 4

currentTimeMillisMethod · 0.95
clearMethod · 0.80
putMethod · 0.80
getLastPointMethod · 0.80

Tested by

no test coverage detected