Examples of DPT


Examples of tuwien.auto.calimero.dptxlator.DPT

   *
   * @throws KNXFormatException
   */
  @Test
  public void testTypeMappingTime_10_001_HoursOutOfBounds() throws KNXFormatException {
    DPT dpt =DPTXlatorTime.DPT_TIMEOFDAY;

    testToTypeClass(dpt, DateTimeType.class);

    assertNull("KNXCoreTypeMapper.toType() should return null",
        testToType(dpt, new byte[] { 0x38, 59, 59 }, DateTimeType.class));
View Full Code Here

Examples of tuwien.auto.calimero.dptxlator.DPT

   *
   * @throws KNXFormatException
   */
  @Test
  public void testTypeMappingTime_10_001_MinutesOutOfBounds() throws KNXFormatException {
    DPT dpt =DPTXlatorTime.DPT_TIMEOFDAY;

    testToTypeClass(dpt, DateTimeType.class);

    assertNull("KNXCoreTypeMapper.toType() should return null",
        testToType(dpt, new byte[] { 0x37, 60, 59 }, DateTimeType.class));
View Full Code Here

Examples of tuwien.auto.calimero.dptxlator.DPT

   *
   * @throws KNXFormatException
   */
  @Test
  public void testTypeMappingTime_10_001_SecondsOutOfBounds() throws KNXFormatException {
    DPT dpt =DPTXlatorTime.DPT_TIMEOFDAY;

    testToTypeClass(dpt, DateTimeType.class);

    assertNull("KNXCoreTypeMapper.toType() should return null",
        testToType(dpt, new byte[] { 0x37, 59, 60 }, DateTimeType.class));
View Full Code Here

Examples of tuwien.auto.calimero.dptxlator.DPT

   *
   * @throws KNXFormatException
   */
  @Test
  public void testTypeMappingDate_11_001_ZeroDay() throws KNXFormatException {
    DPT dpt =DPTXlatorDate.DPT_DATE;

    testToTypeClass(dpt, DateTimeType.class);

    assertNull("KNXCoreTypeMapper.toType() should return null",
        testToType(dpt, new byte[] { 0x00, 0x00, 0x00 }, DateTimeType.class));
View Full Code Here

Examples of tuwien.auto.calimero.dptxlator.DPT

   *
   * @throws KNXFormatException
   */
  @Test
  public void testTypeMappingDate_11_001__DayZero() throws KNXFormatException {
    DPT dpt =DPTXlatorDate.DPT_DATE;

    testToTypeClass(dpt, DateTimeType.class);

    assertNull("KNXCoreTypeMapper.toType() should return null",
        testToType(dpt, new byte[] { 0x00, 0x01, 0x00 }, DateTimeType.class));
View Full Code Here

Examples of tuwien.auto.calimero.dptxlator.DPT

   *
   * @throws KNXFormatException
   */
  @Test
  public void testTypeMappingDate_11_001__ZeroMonth() throws KNXFormatException {
    DPT dpt =DPTXlatorDate.DPT_DATE;

    testToTypeClass(dpt, DateTimeType.class);

    assertNull("KNXCoreTypeMapper.toType() should return null",
        testToType(dpt, new byte[] { 0x01, 0x00, 0x00 }, DateTimeType.class));
View Full Code Here

Examples of tuwien.auto.calimero.dptxlator.DPT

   *
   * @throws KNXFormatException
   */
  @Test
  public void testTypeMappingDate_11_001() throws KNXFormatException {
    DPT dpt =DPTXlatorDate.DPT_DATE;

    testToTypeClass(dpt, DateTimeType.class);

    // Use a too short byte array
    assertNull("KNXCoreTypeMapper.toType() should return null (required data length too short)",
View Full Code Here

Examples of tuwien.auto.calimero.dptxlator.DPT

   *
   * @throws KNXFormatException
   */
  @Test
  public void testTypeMapping4ByteUnsigned_12_001() throws KNXFormatException {
    DPT dpt =DPTXlator4ByteUnsigned.DPT_VALUE_4_UCOUNT;

    testToTypeClass(dpt, DecimalType.class);

    // Use a too short byte array
    assertNull("KNXCoreTypeMapper.toType() should return null (required data length too short)",
View Full Code Here

Examples of tuwien.auto.calimero.dptxlator.DPT

   *
   * @throws KNXFormatException
   */
  @Test
  public void testTypeMappingString() throws KNXFormatException {
    DPT dpt =DPTXlatorString.DPT_STRING_8859_1;

    testToTypeClass(dpt, StringType.class);

    /*
     * According to spec the length of this DPT is fixed to 14 bytes.
View Full Code Here

Examples of tuwien.auto.calimero.dptxlator.DPT

   *
   * @throws KNXFormatException
   */
  @Test
  public void testTypeMappingSceneNumber_17_001() throws KNXFormatException {
    DPT dpt =DPTXlatorSceneNumber.DPT_SCENE_NUMBER;

    testToTypeClass(dpt, DecimalType.class);

    // Use a too short byte array
    assertNull("KNXCoreTypeMapper.toType() should return null (required data length too short)",
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.