1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-12 02:02:51 +00:00

Updated maven build script

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-13 18:21:38 -03:00
parent 73d793c28c
commit 7afb924443
11 changed files with 147 additions and 71 deletions

View File

@@ -4,28 +4,17 @@ import org.junit.Test;
import script.template.item.AdenaItemTemplate;
import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Scopes;
import com.l2jserver.db.dao.DAOModuleMySQL5;
import com.l2jserver.model.id.factory.IDFactoryModule;
import com.l2jserver.model.id.template.factory.ItemTemplateIDFactory;
import com.l2jserver.service.ServiceModule;
import com.l2jserver.service.ServiceStartException;
import com.l2jserver.service.game.scripting.ScriptingService;
import com.l2jserver.service.game.scripting.ScriptingServiceImpl;
public class StaticTemplateServiceTest {
private final Injector injector = Guice.createInjector(
new IDFactoryModule(), new DAOModuleMySQL5(), new AbstractModule() {
@Override
protected void configure() {
bind(ScriptingService.class).to(ScriptingServiceImpl.class)
.in(Scopes.SINGLETON);
bind(TemplateService.class).to(StaticTemplateService.class)
.in(Scopes.SINGLETON);
}
});
private final Injector injector = Guice.createInjector(new ServiceModule(),
new IDFactoryModule(), new DAOModuleMySQL5());
private final TemplateService service = injector
.getInstance(TemplateService.class);
private final ItemTemplateIDFactory factory = injector