Package test

Source Code of test.ContextTest

package test;

import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ContextTest {

  @Test
  public void repro() {
    AnnotationConfigApplicationContext ctx =
        new AnnotationConfigApplicationContext();
    ctx.register(FirstDao.class);
    ctx.register(SecondDao.class);
    ctx.register(FirstService.class);
    ctx.register(SecondService.class);
    ctx.refresh();
  }

}
TOP

Related Classes of test.ContextTest

TOP
Copyright © 2018 www.massapi.com. 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.