Examples of BobString


Examples of net.sf.joafip.store.service.objectfortest.BobString

  public void testString3() throws StoreException,
      StoreInvalidClassException, StoreNotSerializableException,
      StoreClassNotFoundException, StoreDataCorruptedException,
      HeapException, StoreTooBigForSerializationException {
    final String string = "hello";
    final BobString bob = new BobString();
    bob.setString(string);
    store.setRoot(bob);
    store.save(true, false);
    // store.checkIntegrity();
    DATA_MANAGER_INTEGRITY_CHECKER.checkIntegrity(dataManager);

    final BobString read = (BobString) store.readAndGetRoot();
    assertEquals("strings must be equals", string, read.getString());
  }
View Full Code Here

Examples of net.sf.joafip.store.service.objectfortest.BobString

  public void testStringUnlink() throws StoreException,
      StoreInvalidClassException, StoreNotSerializableException,
      StoreClassNotFoundException, StoreDataCorruptedException,
      HeapException, StoreTooBigForSerializationException {// NOPMD
    final String string = "hello";
    final BobString bob = new BobString();
    bob.setString(string);
    store.setRoot(bob);
    store.save(true, false);
    // store.checkIntegrity();
    DATA_MANAGER_INTEGRITY_CHECKER.checkIntegrity(dataManager);

    final BobString read = (BobString) store.readAndGetRoot();
    read.setString(null);
    store.save(true, false);
    // store.checkIntegrity();
    DATA_MANAGER_INTEGRITY_CHECKER.checkIntegrity(dataManager);
    assertNotNull("root must be defined", store.readAndGetRoot());// for
    // PMD
View Full Code Here

Examples of net.sf.joafip.store.service.objectfortest.BobString

    final BobObjectArray source = new BobObjectArray();
    Object[] sourceValues = new Object[4];
    sourceValues[0] = Integer.valueOf(0);
    sourceValues[1] = "hello";
    sourceValues[2] = EnumForTest.VAL1;
    sourceValues[3] = new BobString("luc");
    source.setValues(sourceValues);
    final Object copy;
    if (useJavaAgent) {
      copy = DeepCopier.getInstance().deepCopy(source, this, true);
    } else {
View Full Code Here

Examples of net.sf.joafip.store.service.objectfortest.BobString

    final BobObjectArray source = new BobObjectArray();
    Object[] sourceValues = new Object[4];
    sourceValues[0] = Integer.valueOf(0);
    sourceValues[1] = "hello";
    sourceValues[2] = EnumForTest.VAL1;
    sourceValues[3] = new BobString("luc");
    source.setValues(sourceValues);
    final Object copy = DeepCopier.getInstance().deepCopy(source, this,
        true);
    assertEquals("bad class", BobObjectArray.class, copy.getClass());
    assertNotSame(MUST_NOT_BE_SAME_INSTANCE, source, copy);
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.