Package com.l2client.test.junit

Source Code of com.l2client.test.junit.DAOActionLoadTest

package com.l2client.test.junit;

import junit.framework.TestCase;

import com.l2client.dao.IDAO;
import com.l2client.dao.derby.DatastoreDAO;
import com.l2client.gui.actions.BaseUsable;


public class DAOActionLoadTest extends TestCase{
 
  public void testSelf() {
    final IDAO dao = DatastoreDAO.get();
    dao.init();
//    InputController.getInstance().setInGameInputHandler(new InputHandler());
    BaseUsable[] ret = dao.loadAllActions();
    dao.finit();
    assertTrue("Any actions returned", ret != null && ret.length > 0);

  }

}
TOP

Related Classes of com.l2client.test.junit.DAOActionLoadTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.