public void testAppendValue()
        {
            Value expected = new Value(100, new short[] { 5, 10 });

            tempValuesEntry.append(expected);
            Value[] actuals = tempValuesEntry.read(tempValuesEntry.getCount() - 1, 1);
            assertValue(expected, actuals[0]);
            unisens.deleteEntry(tempValuesEntry);
        }
Example #2
0
 public void testValuesEntry_INT16()
 {
     valuesEntry = unisens.createValuesEntry("ve_int16.csv", new String[] { "a", "b" }, DataType.INT16, 400);
     valuesEntry.setName("Values int 16");
     valuesEntry.append(int16);
     assertValueList(int16, valuesEntry.read(5));
 }
Example #3
0
 public void testValuesEntry_XML_DOUBLE()
 {
     valuesEntry = unisens.createValuesEntry("ve_double.xml", new String[] { "a", "b" }, DataType.DOUBLE, 400);
     valuesEntry.setFileFormat(new XmlFileFormatImpl());
     valuesEntry.append(double64);
     assertValueList(double64, valuesEntry.read(5));
 }
Example #4
0
 public void testValuesEntry_XML_INT32()
 {
     valuesEntry = unisens.createValuesEntry("ve_int32.xml", new String[] { "a", "b" }, DataType.INT32, 400);
     valuesEntry.setFileFormat(new XmlFileFormatImpl());
     valuesEntry.append(int32);
     assertValueList(int32, valuesEntry.read(5));
 }
Example #5
0
 public void testValuesEntry_BIN_UINT32()
 {
     valuesEntry = unisens.createValuesEntry("ve_uint32.bin", new String[] { "a", "b" }, DataType.UINT32, 400);
     valuesEntryBinFileFormat = new BinFileFormatImpl();
     valuesEntryBinFileFormat.setEndianess(Endianess.LITTLE);
     valuesEntry.setFileFormat(valuesEntryBinFileFormat);
     valuesEntry.append(uint32);
     assertValueList(uint32, valuesEntry.read(5));
 }
Example #6
0
 public void testValuesEntry_INT32()
 {
     valuesEntry = unisens.createValuesEntry("ve_int32.csv", new String[] { "a", "b" }, DataType.INT32, 400);
     valuesEntry.append(int32);
     assertValueList(int32, valuesEntry.read(5));
 }
Example #7
0
 public void testValuesEntry_DOUBLE()
 {
     valuesEntry = unisens.createValuesEntry("ve_double.csv", new String[] { "a", "b" }, DataType.DOUBLE, 400);
     valuesEntry.append(double64);
     assertValueList(double64, valuesEntry.read(5));
 }
 public void testReadInt()
 {
     valuesEntry.resetPos();
     Value[] actuals = valuesEntry.read(5);
     assertValueList(expectedArray, actuals);
 }