Package test

Source Code of test.RemoveITMsTest

package test;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.Before;
import org.junit.Test;

import skyproc.ModListing;
import skyproc.SPGlobal;
import skyproc.SPImporter;

public class RemoveITMsTest {

  @Before
  public void setUp() throws Exception {
   
    SPGlobal.pathToData = "../data/";
   
    ArrayList<ModListing> mods = new ArrayList<ModListing>();
   
    mods.add(new ModListing("Skyrim.esm"));
    mods.add(new ModListing("test.esp"));
   
    SPImporter importer = new SPImporter();
    importer.importMods(mods);
  }

  @Test
  public void test() {
    assertEquals(SPGlobal.getDB().numMods(), 2);
  }
}
TOP

Related Classes of test.RemoveITMsTest

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.