Example #1
0
 @Test
 public void testSetPowerLimit() throws IOException, AccessException, InterruptedException {
   double b4 = ce.getPowerLimit();
   ce.setPowerLimit(b4 + 1);
   Assert.assertEquals(b4 + 1, ce.getPowerLimit());
 }
Example #2
0
 @Test
 public void testGetIntervalValue() throws IOException, AccessException, InterruptedException {
   System.out.println(
       Arrays.toString(
           ce.getIntervalValue(new Date(new Date().getTime() - 48 * 60 * 60 * 1000), 0, 1)));
 }
Example #3
0
 @Test
 public void testGetPowerLimit() throws IOException, AccessException, InterruptedException {
   System.out.println(ce.getPowerLimit());
 }
Example #4
0
 @Test
 public void testGetTariffSumm() throws IOException, AccessException, InterruptedException {
   System.out.println(ce.getTariffSumm(0));
 }
Example #5
0
 @Test
 public void testSetDateTime() throws IOException, AccessException, InterruptedException {
   ce.setDateTime(new Date());
 }
Example #6
0
 @Test
 public void testGetDateTime() throws IOException, AccessException, InterruptedException {
   System.out.println(ce.getDateTime());
 }
Example #7
0
 @Test
 public void testGetConfig() throws IOException, AccessException, InterruptedException {
   ce.init();
   System.out.println(ce.getIntervalLength());
   System.out.println(ce.getFloatPointKoef());
 }
Example #8
0
 @Test
 public void testInit() throws IOException, AccessException, InterruptedException {
   System.out.println(HEXUtils.toString(ce.init()));
 }