Examples of fromLongArray()


Examples of com.jacob.com.SafeArray.fromLongArray()

   *
   */
  public void testLongSafeArray() {
    long sourceData[] = new long[] { 2L << 40, 3L << 41, 4L << 42 };
    SafeArray saUnderTest = new SafeArray(Variant.VariantVariant, 3);
    saUnderTest.fromLongArray(sourceData);
    long[] extractedFromSafeArray = saUnderTest.toLongArray();
    for (int i = 0; i < extractedFromSafeArray.length; i++) {
      assertEquals("" + i, sourceData[i], extractedFromSafeArray[i]);
    }
    assertEquals("single get failed: ", sourceData[2], saUnderTest
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.