Beispiel #1
0
 /**
  * Test method for {@link at.ac.tuwien.auto.calimero.datapoint.StateDP#StateDP(
  * at.ac.tuwien.auto.calimero.GroupAddress, java.lang.String, int, java.lang.String)}.
  */
 public final void testStateDPGroupAddressStringIntString() {
   final Datapoint dp = new StateDP(ga, "test", 1, "1.001");
   assertEquals(ga, dp.getMainAddress());
   assertEquals("test", dp.getName());
   assertTrue(dp.isStateBased());
   assertEquals(1, dp.getMainNumber());
   assertEquals("1.001", dp.getDPT());
 }
Beispiel #2
0
 /**
  * Test method for {@link at.ac.tuwien.auto.calimero.datapoint.StateDP#StateDP(
  * at.ac.tuwien.auto.calimero.GroupAddress, java.lang.String)}.
  */
 public final void testStateDPGroupAddressString() {
   final Datapoint dp2 = new StateDP(ga, "test");
   assertTrue(dp2.isStateBased());
 }