Package org.jamesii.core.util.misc.session

Examples of org.jamesii.core.util.misc.session.IExpiring.activated()


    // after two times calling this method has to return false
    testObject.hasBeenActive();
    assertFalse(testObject.hasBeenActive());

    // after activated(), hasBeenActive has to return true
    testObject.activated();
    assertTrue(testObject.hasBeenActive());

    for (Method m : methods) {
      try {
        testObject = getTestObject();
View Full Code Here


   */
  public void testDisposal() {
    IExpiring sessionObject = bringObjectInContext();
    WeakReference<IExpiring> testRef = new WeakReference<>(sessionObject);
    assertNotNull(testRef.get());
    sessionObject.activated();
    sessionObject.hasBeenActive();
    sessionObject.hasBeenActive();
    sessionObject.expire();
    sessionObject = null;
    System.gc();
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.