BakeoutController-Basic  0.1
A Controller for the Omicron vacuum chamber
HasPowerSupply.java
1 package unit.kernel.models.device_registry;
2 
4 import org.junit.Test;
5 
6 import static org.junit.Assert.assertFalse;
7 import static org.junit.Assert.assertTrue;
8 
12 public final class HasPowerSupply extends DeviceRegistryTestCase {
13  @Test
14  public void hasPowerSupplyIsInitiallyFalse(){
15  assertFalse(this.deviceRegistry.hasPowerSupply());
16  }
17  @Test
18  public void hasPowerSupplyIsTrueAfterSetting(){
19  this.deviceRegistry.setPowerSupply(mockPowerSupply);
20 
21  assertTrue(this.deviceRegistry.hasPowerSupply());
22  }
23 }
void setPowerSupply(PowerSupply powerSupply)
Git Repo