Skip to content

Commit

Permalink
Add the possibility to give some packages to a MongoLinkRule
Browse files Browse the repository at this point in the history
  • Loading branch information
fguerin committed Dec 27, 2013
1 parent fa57715 commit a99ca28
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -8,9 +8,9 @@

public class MongolinkRule extends ExternalResource {

public static MongolinkRule withPackage(String packageToScan) {
public static MongolinkRule withPackage(String... packagesToScan) {
MongolinkRule result = new MongolinkRule();
ContextBuilder contextBuilder = new ContextBuilder(packageToScan);
ContextBuilder contextBuilder = new ContextBuilder(packagesToScan);
sesionManager = MongoSessionManager.create(contextBuilder, Settings.defaultInstance().withDbFactory(FongoDbFactory.class));
return result;
}
Expand Down

0 comments on commit a99ca28

Please sign in to comment.