BakeoutController-Basic  0.1
A Controller for the Omicron vacuum chamber
models/pvci_pressure_gauge_factory/QuickCheckProperties.java
1 package unit.kernel.models.pvci_pressure_gauge_factory;
2 
3 import com.pholser.junit.quickcheck.Property;
4 import com.pholser.junit.quickcheck.runner.JUnitQuickcheck;
5 import org.junit.runner.RunWith;
6 
7 import static org.junit.Assert.assertEquals;
8 
12 @RunWith(JUnitQuickcheck.class)
13 public final class QuickCheckProperties extends
15  @Property
16  public void address(Integer address){
17  factory.setAddress(address);
18  assertEquals(
19  address,
20  factory.getAddress()
21  );
22  }
23 
24  @Property
25  public void portName(String portName){
26  factory.setPortName(portName);
27  assertEquals(
28  portName,
29  factory.getPortName()
30  );
31  }
32 }
Git Repo