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

Method validateNullEnd

test/core/TestTSQuery.java:124–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 }
123
124 @Test
125 public void validateNullEnd() {
126 PowerMockito.mockStatic(System.class);
127 when(System.currentTimeMillis()).thenReturn(1357300800000L);
128 TSQuery q = this.getMetricForValidate();
129 q.setEnd(null);
130 q.validateAndSetQuery();
131 assertEquals(1357300800000L, q.endTime());
132 }
133
134 @Test
135 public void validateEmptyEnd() {

Callers

nothing calls this directly

Calls 5

getMetricForValidateMethod · 0.95
setEndMethod · 0.95
validateAndSetQueryMethod · 0.95
endTimeMethod · 0.95
currentTimeMillisMethod · 0.45

Tested by

no test coverage detected