MCPcopy Create free account
hub / github.com/OpenTSDB/opentsdb / getDurationIntervalTooBig

Method getDurationIntervalTooBig

test/utils/TestDateTime.java:433–438  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431 }
432
433 @Test (expected = IllegalArgumentException.class)
434 public void getDurationIntervalTooBig() {
435 long value = Integer.MAX_VALUE;
436 value++;
437 DateTime.getDurationInterval(Long.toString(value) + "s");
438 }
439
440 @Test (expected = IllegalArgumentException.class)
441 public void getDurationIntervalNegative() {

Callers

nothing calls this directly

Calls 2

getDurationIntervalMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected