Files
2026-06-17 14:00:51 +02:00

50 lines
1.1 KiB
Java

package jmri.jmrit.ussctc;
import org.junit.Assert;
import org.junit.jupiter.api.*;
import jmri.util.JUnitUtil;
/**
* Tests for Follower classes in the jmri.jmrit.ussctc package
*
* @author Bob Jacobsen Copyright 2007
*/
public class FollowerTest {
@Test
public void testCreate() {
Follower f = new Follower("12", "34", false, "56");
Assert.assertEquals("12", f.getOutputName());
Assert.assertEquals("34", f.getSensorName());
Assert.assertEquals(false, f.getInvert());
Assert.assertEquals("56", f.getVetoName());
}
@Test
public void testInstantiate() {
Follower f = new Follower("12", "34", false, "56");
f.instantiate();
}
@Test
public void testCreateRep() throws jmri.JmriException {
JUnitUtil.initRouteManager();
Follower f = new Follower("12", "34", false, "56");
f.instantiate();
new Follower("12");
}
@BeforeEach
public void setUp() {
JUnitUtil.setUp();
}
@AfterEach
public void tearDown() {
JUnitUtil.tearDown();
}
}