MCPcopy Create free account
hub / github.com/MenoData/Time4J / isEmpty

Method isEmpty

base/src/test/java/net/time4j/MachineTimeTest.java:260–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258 }
259
260 @Test
261 public void isEmpty() {
262 assertThat(MachineTime.of(0, SI.SECONDS).isEmpty(), is(true));
263 assertThat(MachineTime.of(1, SI.SECONDS).isEmpty(), is(false));
264 assertThat(MachineTime.of(-1, SI.SECONDS).isEmpty(), is(false));
265
266 assertThat(
267 MachineTime.ofSIUnits(1, -MRD).isEmpty(),
268 is(true));
269 }
270
271 @Test
272 public void isPositive() {

Callers

nothing calls this directly

Calls 3

ofMethod · 0.95
ofSIUnitsMethod · 0.95
isEmptyMethod · 0.65

Tested by

no test coverage detected