Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
240 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
java/test/apps/startup/AbstractActionModelFactoryTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package apps.startup; | ||
|
||
import jmri.util.JUnitUtil; | ||
import jmri.util.startup.StartupModel; | ||
|
||
import org.junit.After; | ||
import org.junit.Assert; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
/** | ||
* PerformActionModelXmlTest.java | ||
* <p> | ||
* Test for the PerformActionModelXml class | ||
* | ||
* @author Paul Bender Copyright (C) 2016 | ||
*/ | ||
public class AbstractActionModelFactoryTest { | ||
|
||
@Test | ||
@SuppressWarnings("deprecation") | ||
public void testCtor() { | ||
Assert.assertNotNull("PerformActionModelXml constructor", new AbstractActionModelFactory() { | ||
@Override | ||
public String getEditModelMessage() { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
} | ||
|
||
@Override | ||
public Class<? extends StartupModel> getModelClass() { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
} | ||
|
||
@Override | ||
public StartupModel newModel() { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
} | ||
}); | ||
} | ||
|
||
@Before | ||
public void setUp() { | ||
JUnitUtil.setUp(); | ||
} | ||
|
||
@After | ||
public void tearDown() { | ||
JUnitUtil.tearDown(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package apps.startup; | ||
|
||
import javax.swing.JFileChooser; | ||
|
||
import jmri.util.JUnitUtil; | ||
import jmri.util.startup.StartupModel; | ||
|
||
import org.junit.After; | ||
import org.junit.Assert; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
/** | ||
* PerformActionModelXmlTest.java | ||
* <p> | ||
* Test for the PerformActionModelXml class | ||
* | ||
* @author Paul Bender Copyright (C) 2016 | ||
*/ | ||
public class AbstractFileModelFactoryTest { | ||
|
||
@Test | ||
@SuppressWarnings("deprecation") | ||
public void testCtor() { | ||
Assert.assertNotNull("PerformActionModelXml constructor", new AbstractFileModelFactory() { | ||
@Override | ||
protected JFileChooser setFileChooser() { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
} | ||
|
||
@Override | ||
public Class<? extends StartupModel> getModelClass() { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
} | ||
|
||
@Override | ||
public StartupModel newModel() { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
} | ||
}); | ||
} | ||
|
||
@Before | ||
public void setUp() { | ||
JUnitUtil.setUp(); | ||
} | ||
|
||
@After | ||
public void tearDown() { | ||
JUnitUtil.tearDown(); | ||
} | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
java/test/jmri/util/startup/StartupActionsManagerTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package jmri.util.startup; | ||
|
||
import jmri.util.JUnitUtil; | ||
|
||
import org.junit.After; | ||
import org.junit.Assert; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
/** | ||
* | ||
* @author Paul Bender Copyright (C) 2017 | ||
*/ | ||
public class StartupActionsManagerTest { | ||
|
||
@Test | ||
public void testCTor() { | ||
StartupActionsManager t = new StartupActionsManager(); | ||
Assert.assertNotNull("exists",t); | ||
} | ||
|
||
@Before | ||
public void setUp() { | ||
JUnitUtil.setUp(); | ||
} | ||
|
||
@After | ||
public void tearDown() { | ||
JUnitUtil.tearDown(); | ||
} | ||
|
||
// private final static Logger log = LoggerFactory.getLogger(StartupActionsManagerTest.class); | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
java/test/jmri/util/startup/configurexml/PerformActionModelXmlTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package jmri.util.startup.configurexml; | ||
|
||
import jmri.util.JUnitUtil; | ||
import org.junit.After; | ||
import org.junit.Assert; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
/** | ||
* PerformActionModelXmlTest.java | ||
* | ||
* Test for the PerformActionModelXml class | ||
* | ||
* @author Paul Bender Copyright (C) 2016 | ||
*/ | ||
public class PerformActionModelXmlTest { | ||
|
||
@Test | ||
public void testCtor(){ | ||
Assert.assertNotNull("PerformActionModelXml constructor",new PerformActionModelXml()); | ||
} | ||
|
||
@Before | ||
public void setUp() { | ||
JUnitUtil.setUp(); | ||
} | ||
|
||
@After | ||
public void tearDown() { | ||
JUnitUtil.tearDown(); | ||
} | ||
|
||
} | ||
|
34 changes: 34 additions & 0 deletions
34
java/test/jmri/util/startup/configurexml/PerformFileModelXmlTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package jmri.util.startup.configurexml; | ||
|
||
import jmri.util.JUnitUtil; | ||
import org.junit.After; | ||
import org.junit.Assert; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
/** | ||
* PerformFileModelXmlTest.java | ||
* | ||
* Test for the PerformFileModelXml class | ||
* | ||
* @author Paul Bender Copyright (C) 2016 | ||
*/ | ||
public class PerformFileModelXmlTest { | ||
|
||
@Test | ||
public void testCtor(){ | ||
Assert.assertNotNull("PerformFileModelXml constructor",new PerformFileModelXml()); | ||
} | ||
|
||
@Before | ||
public void setUp() { | ||
JUnitUtil.setUp(); | ||
} | ||
|
||
@After | ||
public void tearDown() { | ||
JUnitUtil.tearDown(); | ||
} | ||
|
||
} | ||
|
34 changes: 34 additions & 0 deletions
34
java/test/jmri/util/startup/configurexml/PerformScriptModelXmlTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package jmri.util.startup.configurexml; | ||
|
||
import jmri.util.JUnitUtil; | ||
import org.junit.After; | ||
import org.junit.Assert; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
/** | ||
* PerformScriptModelXmlTest.java | ||
* | ||
* Test for the PerformScriptModelXml class | ||
* | ||
* @author Paul Bender Copyright (C) 2016 | ||
*/ | ||
public class PerformScriptModelXmlTest { | ||
|
||
@Test | ||
public void testCtor(){ | ||
Assert.assertNotNull("PerformScriptModelXml constructor",new PerformScriptModelXml()); | ||
} | ||
|
||
@Before | ||
public void setUp() { | ||
JUnitUtil.setUp(); | ||
} | ||
|
||
@After | ||
public void tearDown() { | ||
JUnitUtil.tearDown(); | ||
} | ||
|
||
} | ||
|