@AfterClass public static void tearDownAfter() throws Exception { RuntimeDelegate.setInstance(null); }
@After public void tearDown() throws Exception { RuntimeDelegate.setInstance(null); }
@AfterClass public static void tearDownAfter() throws Exception { RuntimeDelegate.setInstance(null); }
@After public void tearDown() throws Exception { RuntimeDelegate.setInstance(null); }
@BeforeClass public static void setUpBefore() throws Exception { ServiceRegistry.setInstance(null); RuntimeDelegate.setInstance(new JPARuntimeDelegate()); PersonHandler personHandler = new PersonHandler(); ServiceRegistry. getInstance(). getService(TemplateManagementService.class). configure( Lists.<Class<?>>newArrayList(), Arrays.<ResourceHandler>asList(personHandler)); }
@BeforeClass public static void setUpBefore() throws Exception { ServiceRegistry.setInstance(null); RuntimeDelegate.setInstance(new InMemoryRuntimeDelegate()); PersonHandler personHandler = new PersonHandler(); QueryableResourceHandler queryHandler=new QueryableResourceHandler(); ServiceRegistry. getInstance(). getService(TemplateManagementService.class). configure( Lists.<Class<?>>newArrayList(), Arrays.<ResourceHandler>asList(personHandler,queryHandler)); }
@Before public void setUp() throws Exception { ServiceRegistry.setInstance(null); RuntimeDelegate.setInstance(new InMemoryRuntimeDelegate()); this.templateManagementService = ServiceRegistry. getInstance(). getService(TemplateManagementService.class); this.templateManagementService. configure( Lists.<Class<?>>newArrayList(), Arrays.<ResourceHandler>asList(new PersonHandler())); this.modelFactory= RuntimeDelegate. getInstance(). getModelFactory(); this.writeSessionService= ServiceRegistry. getInstance(). getService(WriteSessionService.class); }
@Before public void setUp() throws Exception { ServiceRegistry.setInstance(null); RuntimeDelegate.setInstance(new InMemoryRuntimeDelegate()); PersonHandler personHandler = new PersonHandler(); ServiceRegistry.