Package org.springframework.boot.autoconfigure

Examples of org.springframework.boot.autoconfigure.TestAutoConfigurationSorter


public class CloudAutoConfigurationTests {

  @Test
  public void testOrder() throws Exception {
    ResourceLoader loader = new DefaultResourceLoader();
    TestAutoConfigurationSorter sorter = new TestAutoConfigurationSorter(loader);
    Collection<String> classNames = new ArrayList<String>();
    classNames.add(MongoAutoConfiguration.class.getName());
    classNames.add(DataSourceAutoConfiguration.class.getName());
    classNames.add(MongoRepositoriesAutoConfiguration.class.getName());
    classNames.add(JpaRepositoriesAutoConfiguration.class.getName());
    classNames.add(CloudAutoConfiguration.class.getName());
    List<String> ordered = sorter.getInPriorityOrder(classNames);
    assertThat(ordered.get(0), equalTo(CloudAutoConfiguration.class.getName()));
  }
View Full Code Here

TOP

Related Classes of org.springframework.boot.autoconfigure.TestAutoConfigurationSorter

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.