Permalink
Browse files

Explicitly register all @Configuration classes

  • Loading branch information...
1 parent b830599 commit 40f7ba2f41ff1970e6c67b928128b52258758b02 @cbeams committed Feb 12, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/test/com/bank/config/code/IntegrationTests.java
@@ -33,8 +33,7 @@ public void transferTenDollars() throws InsufficientFundsException {
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
ctx.getEnvironment().setDefaultProfiles("dev");
- //ctx.register(TransferConfig.class, JndiDataConfig.class, StandaloneDataConfig.class);
- ctx.scan("com.bank.config.code");
+ ctx.register(TransferServiceConfig.class, StandaloneDataConfig.class, JndiDataConfig.class);
ctx.refresh();
TransferService transferService = ctx.getBean(TransferService.class);

0 comments on commit 40f7ba2

Please sign in to comment.