@Test public void percentageValueWithinThresholdPasses() { DiskSpaceThreshold t = new DiskSpaceThreshold(5L, true); assertThat(t.withinThreshold(600, 1000)).isTrue(); }
public boolean withinThreshold(DiskSpace diskSpace) { return withinThreshold(diskSpace.getFreeSpace(), diskSpace.getMaxSpace()); }
DiskSpaceThreshold { public boolean withinThreshold(DiskSpace diskSpace) { return withinThreshold(diskSpace.getFreeSpace(), diskSpace.getMaxSpace()); } }
DiskSpaceThreshold { public boolean withinThreshold(DiskSpace diskSpace) { return withinThreshold(diskSpace.getFreeSpace(), diskSpace.getMaxSpace()); } DiskSpaceThreshold(final long threshold, final boolean isPercentage); }
DiskSpaceThreshold { public boolean withinThreshold(DiskSpace diskSpace) { return withinThreshold(diskSpace.getFreeSpace(), diskSpace.getMaxSpace()); } DiskSpaceThreshold(final long threshold, final boolean isPercentage); static DiskSpaceThreshold parse(String thresholdString); long getThresholdValue(); boolean isPercentage(); boolean withinThreshold(DiskSpace diskSpace); boolean withinThreshold(long freeSpace, long maxSpace); }
DiskSpaceThreshold { public boolean withinThreshold(DiskSpace diskSpace) { return withinThreshold(diskSpace.getFreeSpace(), diskSpace.getMaxSpace()); } DiskSpaceThreshold(final long threshold, final boolean isPercentage); static DiskSpaceThreshold parse(String thresholdString); long getThresholdValue(); boolean isPercentage(); boolean withinThreshold(DiskSpace diskSpace); boolean withinThreshold(long freeSpace, long maxSpace);  }