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

Method getLastPointMetricNSUNTagv

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

Source from the content-addressed store, hash-verified

504 }
505
506 @Test (expected = DeferredGroupException.class)
507 public void getLastPointMetricNSUNTagv() throws Exception {
508 tags.put(TAGK_STRING, NSUN_TAGV);
509 Whitebox.setInternalState(config, "enable_tsuid_incrementing", false);
510 Whitebox.setInternalState(config, "enable_realtime_ts", false);
511
512 PowerMockito.mockStatic(DateTime.class);
513 PowerMockito.when(DateTime.currentTimeMillis()).thenReturn(1356998400000L);
514 query = new TSUIDQuery(tsdb, METRIC_STRING, tags);
515 query.getLastPoint(false, 0).join();
516 }
517
518 @Test (expected = IllegalArgumentException.class)
519 public void getLastPointMetricEmptyTags() throws Exception {

Callers

nothing calls this directly

Calls 3

currentTimeMillisMethod · 0.95
putMethod · 0.80
getLastPointMethod · 0.80

Tested by

no test coverage detected