Package com.google.common.testing

Examples of com.google.common.testing.TearDownAccepter


  public static void maybeAddGuiceBerryTearDown(
      ThreadLocal<TearDown> scaffoldingThreadLocal, final TestDescription testDescription,
      final TearDown toTearDown) {
    Object testToTearDown = testDescription.getTestCase();
    if (testToTearDown instanceof TearDownAccepter) {
      TearDownAccepter tdtc = (TearDownAccepter) testToTearDown;
      tdtc.addTearDown(toTearDown);
    } else {
      scaffoldingThreadLocal.set(toTearDown);
    }
  }
View Full Code Here


          ToTearDown toTearDown = injector.getInstance(ToTearDown.class);
          toTearDown.runTearDown();
        }
      });
     
      TearDownAccepter accepter = wrappedGetInstance(injector, TearDownAccepter.class, gbeClass);
      buildTestWrapperInstance(injector).toRunBeforeTest();
     
      injectMembersIntoTest(gbeClass, injector);
    }
View Full Code Here

TOP

Related Classes of com.google.common.testing.TearDownAccepter

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.