Package org.bitbucket.ouyi.conv.test

Examples of org.bitbucket.ouyi.conv.test.ConvTestTest$ConvTestTestFactory


  @Test
  public final void testFromBytes() throws Exception {
    Convertibles.initialize("org.bitbucket.ouyi.conv.test");
   
    ConvTestTest testObject = new ConvTestTest(13);
   
    ByteBuffer b = ByteBuffer.allocate(testObject.byteSize());
   
    testObject.toBytes(b);
   
    b.flip();
   
    ConvTestTest testObject2 = (ConvTestTest) Convertibles.fromBytes(b);
   
    assertTrue(testObject2.getValue() == 13);
  }
View Full Code Here

TOP

Related Classes of org.bitbucket.ouyi.conv.test.ConvTestTest$ConvTestTestFactory

Copyright © 2018 www.massapicom. 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.