BakeoutController-Basic  0.1
A Controller for the Omicron vacuum chamber
SetPowerSupply.java
1 package unit.kernel.models.device_registry;
2 
3 import devices.PowerSupply;
5 import org.junit.Test;
6 
7 import static org.junit.Assert.assertEquals;
8 import static org.junit.Assert.assertTrue;
9 
14 public final class SetPowerSupply extends DeviceRegistryTestCase {
15  @Test
16  public void setPowerSupply(){
17  this.deviceRegistry.setPowerSupply(mockPowerSupply);
18 
19  assertEquals(
20  mockPowerSupply,
21  this.deviceRegistry.getPowerSupply()
22  );
23  assertTrue(this.deviceRegistry.hasPowerSupply());
24  }
25 }
void setPowerSupply(PowerSupply powerSupply)
Git Repo