Package com.gwesm.dao

Examples of com.gwesm.dao.CastorDAO.loadData()


   * @throws DAOException
   */
  public static void main(final String[] args) throws DAOException {

    DAO dao = new CastorDAO();
    GWESM gwesm = dao.loadData("testsData\\GWESM-Sample.xml");

    Character character = gwesm.getAccounts().get(0).getCharacters().get(0);

    Display display = new Display();
    final Shell shell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);
View Full Code Here


public class TestDAO {

  @Test
  public void testLoadSave() throws Exception {
    DAO dao = new CastorDAO();
    GWESM gwesm = dao.loadData("testsData\\GWESM-Sample.xml");
    dao.saveData(gwesm, "testsData\\outputs\\GWESM-Sample-Output.xml");
  }
}
View Full Code Here

public class TestMVP {

  public void testname() throws Exception {
    DAO dao = new CastorDAO();
    GWESM gwesm = dao.loadData("testsData\\GWESM-Sample.xml");

    // Character character = null;
    //
    // StatisticsPresenter p = new StatisticsPresenter(gwesm, character);
    // StatisticsView v = new StatisticsView();
View Full Code Here

    // Sauvegarde
    dao.saveData(gwesm, outputFile);

    // Chargement
    GWESM loadedGwesm = dao.loadData(outputFile);
    // Verif persistence
    Assert.assertEquals(1, loadedGwesm.getAccounts().size());

  }
}
View Full Code Here

  }

  public static void main(final String[] args) throws DAOException {

    DAO dao = new CastorDAO();
    GWESM gwesm = dao.loadData("testsData" + File.separator
        + "GWESM-Sample.xml");
    Account account = gwesm.getAccounts().get(0);

    Display display = new Display();
    final Shell shell = new Shell(display);
View Full Code Here

   * @throws DAOException
   */
  public static void main(final String[] args) throws DAOException {

    DAO dao = new CastorDAO();
    GWESM gwesm = dao.loadData("testsData" + File.separator
        + "GWESM-Sample.xml");
    Account account = gwesm.getAccounts().get(1);

    Display display = new Display();
    final Shell shell = new Shell(display);
View Full Code Here

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.