Package br.com.caelum.vraptor.ioc.fixture

Examples of br.com.caelum.vraptor.ioc.fixture.ComponentFactoryInTheClasspath$Provided


 
 
 
  @Test
  public void shoudCallPredestroyExactlyOneTimeForComponentFactoriesScannedFromTheClasspath() {
    ComponentFactoryInTheClasspath componentFactory = getFromContainer(ComponentFactoryInTheClasspath.class);
    assertThat(componentFactory.getCallsToPreDestroy(), is(equalTo(0)));
    provider.stop();
    assertThat(componentFactory.getCallsToPreDestroy(), is(equalTo(1)));

    resetProvider();
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.ioc.fixture.ComponentFactoryInTheClasspath$Provided

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.