Package com.foreach.across.core.context.bootstrap

Examples of com.foreach.across.core.context.bootstrap.ModuleBootstrapOrderBuilder


  public void disablingInfrastructureModuleIsNoProblem() {
    Collection<AcrossModule> added =
        list( requiresTwoThreeAndOptionalOne, one, requiresTwo, two, three, infrastructureRequiringTwo );
    infrastructureRequiringTwo.setEnabled( false );

    ModuleBootstrapOrderBuilder moduleBootstrapOrderBuilder = new ModuleBootstrapOrderBuilder( added );
    Collection<AcrossModule> ordered = moduleBootstrapOrderBuilder.getOrderedModules();

    assertEquals( list( two, three, one, requiresTwoThreeAndOptionalOne, requiresTwo, infrastructureRequiringTwo ),
                  ordered );

    Collection<AcrossModule> dependencies = moduleBootstrapOrderBuilder.getConfiguredRequiredDependencies( one );
    assertFalse( dependencies.contains( infrastructureRequiringTwo ) );
  }
View Full Code Here


    assertEquals( list( one, six, three, four, five, two ), ordered );
  }

  private Collection<AcrossModule> order( Collection<AcrossModule> list ) {
    return new ModuleBootstrapOrderBuilder( list ).getOrderedModules();
  }
View Full Code Here

TOP

Related Classes of com.foreach.across.core.context.bootstrap.ModuleBootstrapOrderBuilder

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.