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