Package com.foreach.across.test.modules.naming

Examples of com.foreach.across.test.modules.naming.NamingConfig


    AcrossContext context = new AcrossContext();
    context.addModule( firstModule );
    context.addModule( lastModule );
    context.bootstrap();

    NamingConfig first = AcrossContextUtils.getApplicationContext( firstModule ).getBean( NamingConfig.class );
    assertSame( context, first.getAutoAcrossContext() );
    assertSame( context, first.getSpecificAcrossContext() );
    assertSame( firstModule, first.getCurrentModule() );
    assertSame( firstModule, first.getAutoNamingModule() );
    assertSame( firstModule, first.getModuleNamedFirst() );
    assertSame( lastModule, first.getModuleNamedLast() );

    NamingConfig last = AcrossContextUtils.getApplicationContext( lastModule ).getBean( NamingConfig.class );
    assertSame( context, last.getAutoAcrossContext() );
    assertSame( context, last.getSpecificAcrossContext() );
    assertSame( lastModule, last.getCurrentModule() );
    assertSame( lastModule, last.getAutoNamingModule() );
    assertSame( firstModule, last.getModuleNamedFirst() );
    assertSame( lastModule, last.getModuleNamedLast() );
  }
View Full Code Here

TOP

Related Classes of com.foreach.across.test.modules.naming.NamingConfig

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.