BakeoutController-Basic
0.1
A Controller for the Omicron vacuum chamber
Main Page
Related Pages
Packages
Classes
Files
File List
src
test
java
unit
devices
tdk_lambda_power_supply
GetVoltage.java
1
package
unit.devices.tdk_lambda_power_supply;
2
3
import
devices
.
TDKLambdaPowerSupply
;
4
import
org.junit.Before;
5
import
org.junit.Test;
6
7
import
java.io.IOException;
8
9
import
static
org.junit.Assert.assertEquals;
10
14
public
final
class
GetVoltage
extends
TDKLambdaPowerSupplyTestCase
{
15
private
final
Double voltage = 3.0;
16
17
@Before
18
public
void
setUpCommunicator(){
19
this.communicatorForDevice.
setInputStreamData
(voltage.toString());
20
}
21
22
@Test
23
public
void
getVoltageHappyPath()
throws
IOException {
24
Double voltage = this.powerSupply.
getVoltage
();
25
assertEquals(this.voltage, voltage);
26
}
27
}
unit.devices.DeviceCommunicator.setInputStreamData
void setInputStreamData(String dataForDeviceToRead)
unit.devices.tdk_lambda_power_supply.TDKLambdaPowerSupplyTestCase
Definition:
TDKLambdaPowerSupplyTestCase.java:16
devices.TDKLambdaPowerSupply
Definition:
TDKLambdaPowerSupply.java:15
devices
Definition:
AbstractRS232Device.java:1
devices.PowerSupply.getVoltage
Double getVoltage()
unit.devices.tdk_lambda_power_supply.GetVoltage
Definition:
GetVoltage.java:14
Git Repo