1 package unit.kernel.models.variables.pressure_provider;
3 import com.pholser.junit.quickcheck.Property;
4 import com.pholser.junit.quickcheck.runner.JUnitQuickcheck;
6 import org.jetbrains.annotations.Contract;
7 import org.junit.runner.RunWith;
9 import java.time.Duration;
11 import static org.junit.Assert.assertEquals;
12 import static org.junit.Assert.fail;
13 import static org.junit.Assume.assumeTrue;
18 @RunWith(JUnitQuickcheck.class)
20 @Contract(
" -> !null")
28 public void numberOfDataPoints(Integer numberOfDataPoints){
29 provider.setNumberOfDataPoints(numberOfDataPoints);
31 assertEquals(numberOfDataPoints, provider.getNumberOfDataPoints());
35 public void pollingInterval(Duration pollingInterval){
36 assumeTrue(!pollingInterval.isNegative());
39 provider.setPollingInterval(pollingInterval);
44 assertEquals(pollingInterval, provider.getPollingInterval());