Package com.gwesm.dao

Examples of com.gwesm.dao.CastorDAO


   * @param args
   * @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

import com.gwesm.dao.DAO;

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

  @Test
  public void testSaveGWESM() throws Exception {

    final String outputFile = "testsData\\outputs\\SaveGWESM.xml";
    DAO dao = new CastorDAO();

    // Creation de l'arbre
    GWESM gwesm = new GWESM();

    Account account1 = new Account("Mon Compte");
    gwesm.addAccount(account1);

    // Verif création
    Assert.assertEquals(1, gwesm.getAccounts().size());

    // 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

   * @param args
   * @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

Related Classes of com.gwesm.dao.CastorDAO

Copyright © 2018 www.massapicom. 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.