Package com.ngt.jopenmetaverse.shared.structureddata

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDInteger.asInteger()


              OSDArray llsdArrayThree = (OSDArray)NotationalLLSDOSDParser.DeserializeLLSDNotation(sArrayThree);
              Assert.assertEquals(OSDType.Array, llsdArrayThree.getType());
              Assert.assertEquals(2, llsdArrayThree.count());
              OSDInteger llsdIntTwo = (OSDInteger)llsdArrayThree.get(0);
              Assert.assertEquals(OSDType.Integer, llsdIntTwo.getType());
              Assert.assertEquals(0, llsdIntTwo.asInteger());
              OSDInteger llsdIntThree = (OSDInteger)llsdArrayThree.get(1);
              Assert.assertEquals(OSDType.Integer, llsdIntThree.getType());
              Assert.assertEquals(1, llsdIntThree.asInteger());

              String sArrayFour = " [ \"testtest\", \"aha\",t,f,i1, r1.2, [ i1] ] ";
View Full Code Here


              OSDInteger llsdIntTwo = (OSDInteger)llsdArrayThree.get(0);
              Assert.assertEquals(OSDType.Integer, llsdIntTwo.getType());
              Assert.assertEquals(0, llsdIntTwo.asInteger());
              OSDInteger llsdIntThree = (OSDInteger)llsdArrayThree.get(1);
              Assert.assertEquals(OSDType.Integer, llsdIntThree.getType());
              Assert.assertEquals(1, llsdIntThree.asInteger());

              String sArrayFour = " [ \"testtest\", \"aha\",t,f,i1, r1.2, [ i1] ] ";
//             System.out.println("Start Testing ...");
              OSDArray llsdArrayFour = (OSDArray)NotationalLLSDOSDParser.DeserializeLLSDNotation(sArrayFour);
//             System.out.println("Ending Testing ...");
View Full Code Here

    Assert.assertTrue(theSD instanceof OSDArray);
    array = (OSDArray)theSD;

    Assert.assertEquals(OSDType.Integer, array.get(0).getType());
    tempInt = (OSDInteger)array.get(0);
    Assert.assertEquals(2147483647, tempInt.asInteger());

    Assert.assertEquals(OSDType.Integer, array.get(1).getType());
    tempInt = (OSDInteger)array.get(1);
    Assert.assertEquals(-2147483648, tempInt.asInteger());
View Full Code Here

    tempInt = (OSDInteger)array.get(0);
    Assert.assertEquals(2147483647, tempInt.asInteger());

    Assert.assertEquals(OSDType.Integer, array.get(1).getType());
    tempInt = (OSDInteger)array.get(1);
    Assert.assertEquals(-2147483648, tempInt.asInteger());

    Assert.assertEquals(OSDType.Integer, array.get(2).getType());
    tempInt = (OSDInteger)array.get(2);
    Assert.assertEquals(0, tempInt.asInteger());
View Full Code Here

    tempInt = (OSDInteger)array.get(1);
    Assert.assertEquals(-2147483648, tempInt.asInteger());

    Assert.assertEquals(OSDType.Integer, array.get(2).getType());
    tempInt = (OSDInteger)array.get(2);
    Assert.assertEquals(0, tempInt.asInteger());

    Assert.assertEquals(OSDType.Integer, array.get(3).getType());
    tempInt = (OSDInteger)array.get(3);
    Assert.assertEquals(13, tempInt.asInteger());
View Full Code Here

    tempInt = (OSDInteger)array.get(2);
    Assert.assertEquals(0, tempInt.asInteger());

    Assert.assertEquals(OSDType.Integer, array.get(3).getType());
    tempInt = (OSDInteger)array.get(3);
    Assert.assertEquals(13, tempInt.asInteger());

    Assert.assertEquals(OSDType.Integer, array.get(4).getType());
    tempInt = (OSDInteger)array.get(4);
    Assert.assertEquals(0, tempInt.asInteger());
  }
View Full Code Here

    tempInt = (OSDInteger)array.get(3);
    Assert.assertEquals(13, tempInt.asInteger());

    Assert.assertEquals(OSDType.Integer, array.get(4).getType());
    tempInt = (OSDInteger)array.get(4);
    Assert.assertEquals(0, tempInt.asInteger());
  }

  /// <summary>
  /// Test that various UUID representations are parsed correctly.
  /// </summary>
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.