Package com.gwesm.mvpc

Source Code of com.gwesm.mvpc.TestMVP

package com.gwesm.mvpc;

import com.gwesm.core.GWESM;
import com.gwesm.dao.CastorDAO;
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();
    // p.addView(v);
    //
    // Assert.assertEquals(12, p.getTotalProphs());
    // Assert.assertEquals(4, p.getOwnedProphs());
    //
    // character.addEliteSkill(null);
    // Assert.assertEquals(5, p.getOwnedProphs());
    //
    // Assert.assertEquals(12, p.getTotalFactions());
    // Assert.assertEquals(4, p.getOwnedFactions());
    //
    // character.addEliteSkill(null);
    // Assert.assertEquals(5, p.getOwnedFactions());
    //
    // Assert.assertEquals(12, p.getTotalNightfall());
    // Assert.assertEquals(4, p.getOwnedNightfall());
    //
    // character.addEliteSkill(null);
    // Assert.assertEquals(5, p.getOwnedNightfall());
    //
    // Assert.assertEquals(12, p.getTotalOverall());
    // Assert.assertEquals(4, p.getOwnedOverall());

  }
}
TOP

Related Classes of com.gwesm.mvpc.TestMVP

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.