コード例 #1
0
 public void testShutdown() throws PureException {
   EngineServer server = EngineServer.getInstance();
   long lStart = System.currentTimeMillis();
   server.shutdown();
   long lEnd = System.currentTimeMillis();
   System.out.println("time used: " + (lEnd - lStart) + "ms");
   assertTrue(server.getStatus().isStopped());
 }
コード例 #2
0
 public void testGetEngineBeans() {
   EngineServer server = EngineServer.getInstance();
   Iterator itr = server.getEngineBeans().iterator();
   EngineBean bean;
   while (itr.hasNext()) {
     bean = (EngineBean) itr.next();
     System.out.println(bean.toString());
   }
 }
コード例 #3
0
 public void testGetEngineBean() {
   EngineServer server = EngineServer.getInstance();
   EngineBean bean = server.getEngineBean("force");
   assertNotNull(bean);
 }
コード例 #4
0
 public void testGetStatus() {
   EngineServer server = EngineServer.getInstance();
   System.out.println("EngineServer status: " + server.getStatus().getFlag());
   // assertTrue(server.getStatus().isStopped());
 }