Beispiel #1
0
 @Test
 public void testSetShutterCloseEPICSPV() throws Exception {
   adbase.setShutterCloseEPICSPV("ClosePV");
   assertEquals("ClosePV NPP NMS", adbase.getShutterCloseEPICSPV());
 }
Beispiel #2
0
 @Test
 public void testSetShutterCloseEPICSCmd() throws Exception {
   adbase.setShutterCloseEPICSCmd("ShutterCloseEpicsCmd");
   assertEquals("ShutterCloseEpicsCmd", adbase.getShutterCloseEPICSCmd());
 }
Beispiel #3
0
 @Test
 public void testSetShutterOpenEPICSPV() throws Exception {
   adbase.setShutterOpenEPICSPV("Open");
   assertEquals("Open NPP NMS", adbase.getShutterOpenEPICSPV());
 }
Beispiel #4
0
 @Test
 public void testSetShutterOpenEPICSCmd() throws Exception {
   adbase.setShutterOpenEPICSCmd("OpenCmd");
   assertEquals("OpenCmd", adbase.getShutterOpenEPICSCmd());
 }
Beispiel #5
0
 @Test
 public void testSetReverseY() throws Exception {
   adbase.setReverseY((short) 1);
   assertEquals(adbase.getReverseY(), 1);
   assertEquals(adbase.getReverseY_RBV(), 1);
 }
Beispiel #6
0
 @Test
 public void testSetImageMode() throws Exception {
   adbase.setImageMode((short) 2);
   assertEquals(2, adbase.getImageMode());
   assertEquals(2, adbase.getImageMode_RBV());
 }
Beispiel #7
0
 @Test
 public void testSetNDAttributesFile() throws Exception {
   adbase.setNDAttributesFile("ndattributesfile.xml");
   assertEquals(adbase.getNDAttributesFile(), "ndattributesfile.xml");
 }
Beispiel #8
0
 @Test
 public void testSetColorMode() throws Exception {
   adbase.setColorMode((short) 4);
   short colorMode = adbase.getColorMode();
   assertEquals(colorMode, 4);
 }
Beispiel #9
0
 @Test
 public void testSetArrayCounter() throws Exception {
   adbase.setArrayCounter(6);
   assertEquals(6, adbase.getArrayCounter());
   assertEquals(6, adbase.getArrayCounter_RBV());
 }
Beispiel #10
0
 @Test
 public void testSetArrayCallbacks() throws Exception {
   adbase.setArrayCallbacks((short) 1);
   assertEquals(adbase.getArrayCallbacks(), 1);
   assertEquals(adbase.getArrayCallbacks_RBV(), 1);
 }
Beispiel #11
0
 @Test
 public void testStopAcquiring() throws Exception {
   adbase.stopAcquiring();
   Thread.sleep(500); // allow time for stopAcquiring to complete
   assertEquals("0", adbase.getAcquire_RBV());
 }
Beispiel #12
0
 @Test
 public void testStartAcquiring() throws Exception {
   adbase.startAcquiring();
   assertEquals("1", adbase.getAcquire_RBV());
 }
Beispiel #13
0
 @Test
 public void testSetTriggerMode() throws Exception {
   adbase.setTriggerMode((short) 1);
   assertEquals(1, adbase.getTriggerMode());
   assertEquals(1, adbase.getTriggerMode_RBV());
 }
Beispiel #14
0
 @Test
 public void testSetTemperature() throws Exception {
   adbase.setTemperature(24);
   assertEquals(24, adbase.getTemperature(), 0);
 }
Beispiel #15
0
 @Test
 public void testSetReadStatus() throws Exception {
   adbase.setReadStatus((short) 1);
   assertEquals(adbase.getReadStatus(), 1);
 }
Beispiel #16
0
 @Before
 public void setup() {
   adbase = new ADBaseImpl();
   adbase.setBasePVName("EXCALIBUR:NODE:");
 }
Beispiel #17
0
 @Test
 public void testSetShutterControl() throws Exception {
   adbase.setShutterControl((short) 1);
   assertEquals(adbase.getShutterControl(), 1);
   assertEquals(adbase.getShutterControl_RBV(), 1);
 }
Beispiel #18
0
 @Test
 public void testSetBinY() throws Exception {
   adbase.setBinY(5);
   assertEquals(adbase.getBinY(), 5);
 }
Beispiel #19
0
 @Test
 public void testSetShutterCloseDelay() throws Exception {
   adbase.setShutterCloseDelay(12);
   assertEquals(12, adbase.getShutterCloseDelay(), 0);
 }
Beispiel #20
0
 @Test
 public void testSetAcquirePeriod() throws Exception {
   adbase.setAcquirePeriod(15);
   assertEquals(15, adbase.getAcquirePeriod(), 0);
   assertEquals(15, adbase.getAcquirePeriod_RBV(), 0);
 }
Beispiel #21
0
 @Test
 public void testSetFrameType() throws Exception {
   adbase.setFrameType((short) 2);
   assertEquals(2, adbase.getFrameType());
   assertEquals(2, adbase.getFrameType_RBV());
 }