Examples of charValue()


Examples of tcg.scada.cos.CosDpValueUnion.charValue()

    status = datapoint._copy(outValue, in_double_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(11.5, outValue.dblValue());
    // copy string to double (value = "")
    outValue.dblValue(0);
    in_string_value.charValue("");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(0.0, outValue.dblValue());
    // copy string to double (value = "test")
    outValue.dblValue(0);
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.charValue()

    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(0.0, outValue.dblValue());
    // copy string to double (value = "test")
    outValue.dblValue(0);
    in_string_value.charValue("test");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(0.0, outValue.dblValue());
    // copy string to double (value = "11.5")
    outValue.dblValue(0);
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.charValue()

    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(0.0, outValue.dblValue());
    // copy string to double (value = "11.5")
    outValue.dblValue(0);
    in_string_value.charValue("11.5");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(11.5, outValue.dblValue());
    // copy string to double (value = "-11.5")
    outValue.dblValue(0);
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.charValue()

    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(11.5, outValue.dblValue());
    // copy string to double (value = "-11.5")
    outValue.dblValue(0);
    in_string_value.charValue("-11.5");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(-11.5, outValue.dblValue());
    // copy string to double (value = null)
    outValue.dblValue(0);
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.charValue()

    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(-11.5, outValue.dblValue());
    // copy string to double (value = null)
    outValue.dblValue(0);
    in_string_value.charValue(null);
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(0.0, outValue.dblValue());

    // STRING data type
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.charValue()

    status = datapoint._copy(outValue, in_double_value);
    Assert.assertEquals(1, status);
    Assert.assertTrue(outValue.charValue().compareTo("11.5") == 0);
    // copy string to string (value = "")
    outValue.charValue("");
    in_string_value.charValue("");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertTrue(outValue.charValue().compareTo("") == 0);
    // copy string to string (value = "Test")
    outValue.charValue("test");
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.charValue()

    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertTrue(outValue.charValue().compareTo("") == 0);
    // copy string to string (value = "Test")
    outValue.charValue("test");
    in_string_value.charValue("Test");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(1, status);
    Assert.assertTrue(outValue.charValue().compareTo("Test") == 0);
    // copy string to string (value = "Test", the same value)
    outValue.charValue("Test");
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.charValue()

    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(1, status);
    Assert.assertTrue(outValue.charValue().compareTo("Test") == 0);
    // copy string to string (value = "Test", the same value)
    outValue.charValue("Test");
    in_string_value.charValue("Test");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertTrue(outValue.charValue().compareTo("Test") == 0);
    // copy string to string (value = null)
    outValue.charValue("");
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.charValue()

    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertTrue(outValue.charValue().compareTo("Test") == 0);
    // copy string to string (value = null)
    outValue.charValue("");
    in_string_value.charValue(null);
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertTrue(outValue.charValue().compareTo("") == 0);

    // copy null to string (value = null)
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.charValue()

    status = datapoint._copy(outValue, null);
    Assert.assertEquals(-1, status);
    Assert.assertTrue(outValue.charValue().compareTo("Test") == 0);

    // copy string to string (value = null)
    in_string_value.charValue("Test");
    status = datapoint._copy(null, in_string_value);
    Assert.assertEquals(-1, status);
  }

  /**
 
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.