model.addGroup(new Group("g2").addResource(Resource.create("2.js")));
victim = new Wro4jMojo() {
@Override
protected WroManagerFactory newWroManagerFactory()
throws MojoExecutionException {
final DefaultStandaloneContextAwareManagerFactory managerFactory = new DefaultStandaloneContextAwareManagerFactory();
managerFactory.setUriLocatorFactory(WroTestUtils.createResourceMockingLocatorFactory());
managerFactory.setModelFactory(WroTestUtils.simpleModelFactory(model));
managerFactory.setNamingStrategy(new DefaultHashEncoderNamingStrategy());
return managerFactory;
}
};
setUpMojo(victim);