Package com.ngt.jopenmetaverse.shared.structureddata

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDString.asString()


    tempSD = map.get("scale");
    Assert.assertNotNull(tempSD);
    Assert.assertTrue(tempSD instanceof OSDString);
    Assert.assertTrue(tempSD.getType() == OSDType.String);
    tempStr = (OSDString)tempSD;
    Assert.assertEquals("one minute", tempStr.asString());

    tempSD = map.get("simulator statistics");
    Assert.assertNotNull(tempSD);
    Assert.assertTrue(tempSD instanceof OSDMap);
    Assert.assertTrue(tempSD.getType() == OSDType.Map);
View Full Code Here


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

    Assert.assertEquals(OSDType.String, array.get(0).getType());
    tempStr = (OSDString)array.get(0);
    Assert.assertEquals("Kissling", tempStr.asString());

    Assert.assertEquals(OSDType.String, array.get(1).getType());
    tempStr = (OSDString)array.get(1);
    Assert.assertEquals("Attack ships on fire off the shoulder of Orion", tempStr.asString());
View Full Code Here

    tempStr = (OSDString)array.get(0);
    Assert.assertEquals("Kissling", tempStr.asString());

    Assert.assertEquals(OSDType.String, array.get(1).getType());
    tempStr = (OSDString)array.get(1);
    Assert.assertEquals("Attack ships on fire off the shoulder of Orion", tempStr.asString());

    Assert.assertEquals(OSDType.String, array.get(2).getType());
    tempStr = (OSDString)array.get(2);
    Assert.assertEquals("< > & \' \"", tempStr.asString());
View Full Code Here

    tempStr = (OSDString)array.get(1);
    Assert.assertEquals("Attack ships on fire off the shoulder of Orion", tempStr.asString());

    Assert.assertEquals(OSDType.String, array.get(2).getType());
    tempStr = (OSDString)array.get(2);
    Assert.assertEquals("< > & \' \"", tempStr.asString());

    Assert.assertEquals(OSDType.String, array.get(3).getType());
    tempStr = (OSDString)array.get(3);
    Assert.assertEquals("", tempStr.asString());
View Full Code Here

    tempStr = (OSDString)array.get(2);
    Assert.assertEquals("< > & \' \"", tempStr.asString());

    Assert.assertEquals(OSDType.String, array.get(3).getType());
    tempStr = (OSDString)array.get(3);
    Assert.assertEquals("", tempStr.asString());

  }

  /// <summary>
  /// Test that various Integer representations are parsed correctly.
View Full Code Here

        Assert.assertEquals(OSDType.Integer, llsdNestedIntTwo.getType());
        Assert.assertEquals(2, llsdNestedIntTwo.asInteger());

        OSDString llsdString = (OSDString)llsdMap.get("test");
        Assert.assertEquals(OSDType.String, llsdString.getType());
        Assert.assertEquals("what", llsdString.asString());

        OSDInteger llsdIntOne = (OSDInteger)llsdArray.get(1);
        Assert.assertEquals(OSDType.Integer, llsdIntOne.getType());
        Assert.assertEquals(124, llsdIntOne.asInteger());
        OSDInteger llsdIntTwo = (OSDInteger)llsdArray.get(2);
View Full Code Here

    tempSD = map.get("scale");
    Assert.assertNotNull(tempSD);
    Assert.assertTrue(tempSD instanceof OSDString);
    Assert.assertTrue(tempSD.getType() == OSDType.String);
    tempStr = (OSDString)tempSD;
    Assert.assertEquals("one minute", tempStr.asString());

    tempSD = map.get("simulator statistics");
    Assert.assertNotNull(tempSD);
    Assert.assertTrue(tempSD instanceof OSDMap);
    Assert.assertTrue(tempSD.getType() == OSDType.Map);
View Full Code Here

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

    Assert.assertEquals(OSDType.String, array.get(0).getType());
    tempStr = (OSDString)array.get(0);
    Assert.assertEquals("Kissling", tempStr.asString());

    Assert.assertEquals(OSDType.String, array.get(1).getType());
    tempStr = (OSDString)array.get(1);
    Assert.assertEquals("Attack ships on fire off the shoulder of Orion", tempStr.asString());
View Full Code Here

    tempStr = (OSDString)array.get(0);
    Assert.assertEquals("Kissling", tempStr.asString());

    Assert.assertEquals(OSDType.String, array.get(1).getType());
    tempStr = (OSDString)array.get(1);
    Assert.assertEquals("Attack ships on fire off the shoulder of Orion", tempStr.asString());

    Assert.assertEquals(OSDType.String, array.get(2).getType());
    tempStr = (OSDString)array.get(2);
    Assert.assertEquals("&lt; &gt; &amp; &apos; &quot;", tempStr.asString());
View Full Code Here

    tempStr = (OSDString)array.get(1);
    Assert.assertEquals("Attack ships on fire off the shoulder of Orion", tempStr.asString());

    Assert.assertEquals(OSDType.String, array.get(2).getType());
    tempStr = (OSDString)array.get(2);
    Assert.assertEquals("&lt; &gt; &amp; &apos; &quot;", tempStr.asString());

    Assert.assertEquals(OSDType.String, array.get(3).getType());
    tempStr = (OSDString)array.get(3);
    Assert.assertEquals("", tempStr.asString());
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.