Package com.ngt.jopenmetaverse.shared.structureddata

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDUri.asUri()


    array = (OSDArray)theSD;

    Assert.assertEquals(OSDType.URI, array.get(0).getType());
    tempURI = (OSDUri)array.get(0);
    URI testURI = new URI("http://sim956.agni.lindenlab.com:12035/runtime/agents");
    Assert.assertEquals(testURI, tempURI.asUri());

    Assert.assertEquals(OSDType.URI, array.get(1).getType());
    tempURI = (OSDUri)array.get(1);
    Assert.assertEquals("", tempURI.asUri().toString());
  }
View Full Code Here


    URI testURI = new URI("http://sim956.agni.lindenlab.com:12035/runtime/agents");
    Assert.assertEquals(testURI, tempURI.asUri());

    Assert.assertEquals(OSDType.URI, array.get(1).getType());
    tempURI = (OSDUri)array.get(1);
    Assert.assertEquals("", tempURI.asUri().toString());
  }

  /// <summary>
  /// Test some nested containers.  This instanceof not a very deep or complicated SD graph
  /// but it should reveal basic nesting issues.
View Full Code Here

    array = (OSDArray)theSD;

    Assert.assertEquals(OSDType.URI, array.get(0).getType());
    tempURI = (OSDUri)array.get(0);
    URI testURI = new URI("http://sim956.agni.lindenlab.com:12035/runtime/agents");
    Assert.assertEquals(testURI, tempURI.asUri());

//    Assert.assertEquals(OSDType.URI, array.get(1).getType());
//    tempURI = (OSDUri)array.get(1);
//    Assert.assertEquals("", tempURI.asUri().toString());
  }
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.