Package net.sf.joafip.store.service.objectfortest

Examples of net.sf.joafip.store.service.objectfortest.EnumForTest.ordinal()


   */
  public void testEnum1() throws StoreException, StoreInvalidClassException,
      StoreNotSerializableException, StoreClassNotFoundException,
      StoreDataCorruptedException, StoreTooBigForSerializationException {
    final EnumForTest EnumForTestVal1 = EnumForTest.VAL1;
    final int ordinal = EnumForTestVal1.ordinal();
    final String string = "string1";
    EnumForTestVal1.setObject(string);
    final BobContainer bobContainer = new BobContainer();
    bobContainer.setObject1(EnumForTestVal1);

View Full Code Here


    assertEquals("object class must be EnumForTest class",
        EnumForTest.class, object.getClass());
    assertEquals("must be first enum value", EnumForTestVal1, object);

    final EnumForTest EnumForTestRead = (EnumForTest) object;
    final int ordinalRead = EnumForTestRead.ordinal();
    assertEquals("must have same ordinal that original object", ordinal,
        ordinalRead);
    assertEquals("must be equal to original", EnumForTestVal1,
        EnumForTestRead);
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.