Package net.sf.joafip.store.entity.bytecode

Examples of net.sf.joafip.store.entity.bytecode.WithOtherAccess


    WithStatic.setField(1);
    assertEquals("", 1, WithStatic.getField());
  }

  public void testPutFieldWithOtherAccess() {
    final WithOtherAccess first = new WithOtherAccess();
    final WithOtherAccess second = new WithOtherAccess();
    first.setIntField(1);
    first.setLongField(1);
    second.setIntField(0);
    second.setLongField(0);
    first.putState(second);
    assertEquals("put int field error", 1, second.getIntField());
    assertEquals("put long field error", 1, second.getLongField());
  }
View Full Code Here


    assertEquals("put int field error", 1, second.getIntField());
    assertEquals("put long field error", 1, second.getLongField());
  }

  public void testGetFieldWithOtherAccess() {
    final WithOtherAccess first = new WithOtherAccess();
    final WithOtherAccess second = new WithOtherAccess();
    first.setIntField(0);
    first.setLongField(0);
    second.setIntField(1);
    second.setLongField(1);
    first.getState(second);
    assertEquals("put int field error", 1, second.getIntField());
    assertEquals("put long field error", 1, second.getLongField());
  }
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.entity.bytecode.WithOtherAccess

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.