Skip to content

Commit

Permalink
Merge pull request #5614 from bobjacobsen/more-profile-test
Browse files Browse the repository at this point in the history
Improve ability of tests to run separately
  • Loading branch information
bobjacobsen committed Aug 6, 2018
2 parents 6719c10 + 8f2850a commit 336c062
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions java/test/jmri/configurexml/BlockManagerXmlTest.java
Expand Up @@ -444,6 +444,7 @@ public static Test suite() {
@Override
protected void setUp() {
JUnitUtil.setUp();
JUnitUtil.resetProfileManager();
}

@Override
Expand Down
1 change: 1 addition & 0 deletions java/test/jmri/configurexml/ConfigXmlManagerTest.java
Expand Up @@ -179,6 +179,7 @@ public static Test suite() {
@Override
protected void setUp() {
JUnitUtil.setUp();
JUnitUtil.resetProfileManager();
}

@Override
Expand Down
1 change: 1 addition & 0 deletions java/test/jmri/configurexml/DccLocoAddressXmlTest.java
Expand Up @@ -24,6 +24,7 @@ public void testCtor(){
@Before
public void setUp() {
JUnitUtil.setUp();
JUnitUtil.resetProfileManager();
}

@After
Expand Down
1 change: 1 addition & 0 deletions java/test/jmri/configurexml/DefaultClassMigrationTest.java
Expand Up @@ -22,6 +22,7 @@ public void testCTor() {
@Before
public void setUp() {
JUnitUtil.setUp();
JUnitUtil.resetProfileManager();
}

@After
Expand Down
Expand Up @@ -77,6 +77,7 @@ public static Test suite() {
@Override
protected void setUp() {
JUnitUtil.setUp();
JUnitUtil.resetProfileManager();
}

@Override
Expand Down
1 change: 1 addition & 0 deletions java/test/jmri/configurexml/ErrorHandlerTest.java
Expand Up @@ -22,6 +22,7 @@ public void testCTor() {
@Before
public void setUp() {
JUnitUtil.setUp();
JUnitUtil.resetProfileManager();
}

@After
Expand Down
1 change: 1 addition & 0 deletions java/test/jmri/configurexml/ErrorMemoTest.java
Expand Up @@ -22,6 +22,7 @@ public void testCTor() {
@Before
public void setUp() {
JUnitUtil.setUp();
JUnitUtil.resetProfileManager();
}

@After
Expand Down
Expand Up @@ -27,6 +27,7 @@ public void StringConstructorTest(){
@Before
public void setUp() {
JUnitUtil.setUp();
JUnitUtil.resetProfileManager();

jmri.util.JUnitUtil.initDefaultUserMessagePreferences();
}
Expand Down
1 change: 1 addition & 0 deletions java/test/jmri/configurexml/LoadXmlConfigActionTest.java
Expand Up @@ -22,6 +22,7 @@ public void testCTor() {
@Before
public void setUp() {
JUnitUtil.setUp();
JUnitUtil.resetProfileManager();
}

@After
Expand Down
1 change: 1 addition & 0 deletions java/test/jmri/configurexml/LoadXmlUserActionTest.java
Expand Up @@ -21,6 +21,7 @@ public void testCTor() {
// The minimal setup for log4J
@Before
public void setUp() {
JUnitUtil.resetProfileManager();
JUnitUtil.setUp();
}

Expand Down
1 change: 1 addition & 0 deletions java/test/jmri/configurexml/SchemaTestBase.java
Expand Up @@ -113,6 +113,7 @@ public static Collection<Object[]> getDirectories(File directory, boolean recurs
@Before
public void setUp() throws Exception {
JUnitUtil.setUp();
JUnitUtil.resetProfileManager();
this.validate = XmlFile.getDefaultValidate();
}

Expand Down
1 change: 1 addition & 0 deletions java/test/jmri/configurexml/SectionManagerXmlTest.java
Expand Up @@ -551,6 +551,7 @@ public static Test suite() {
@Override
protected void setUp() {
JUnitUtil.setUp();
JUnitUtil.resetProfileManager();
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion java/test/jmri/configurexml/StoreXmlAllActionTest.java
Expand Up @@ -22,7 +22,7 @@ public void testCTor() {
@Before
public void setUp() {
JUnitUtil.setUp();
jmri.util.JUnitUtil.resetProfileManager();
JUnitUtil.resetProfileManager();
}

@After
Expand Down
2 changes: 1 addition & 1 deletion java/test/jmri/configurexml/StoreXmlConfigActionTest.java
Expand Up @@ -22,7 +22,7 @@ public void testCTor() {
@Before
public void setUp() {
JUnitUtil.setUp();
jmri.util.JUnitUtil.resetProfileManager();
JUnitUtil.resetProfileManager();
}

@After
Expand Down
1 change: 1 addition & 0 deletions java/test/jmri/configurexml/StoreXmlUserActionTest.java
Expand Up @@ -22,6 +22,7 @@ public void testCTor() {
@Before
public void setUp() {
JUnitUtil.setUp();
JUnitUtil.resetProfileManager();
}

@After
Expand Down
1 change: 1 addition & 0 deletions java/test/jmri/configurexml/TransitManagerXmlTest.java
Expand Up @@ -51,6 +51,7 @@ public void StoreOneTransitTest() throws Exception {
@Before
public void setUp() {
JUnitUtil.setUp();
JUnitUtil.resetProfileManager();

jmri.util.JUnitUtil.initDefaultUserMessagePreferences();
}
Expand Down
Expand Up @@ -22,6 +22,7 @@ public void testCTor() {
@Before
public void setUp() {
JUnitUtil.setUp();
JUnitUtil.resetProfileManager();
}

@After
Expand Down

0 comments on commit 336c062

Please sign in to comment.