Search in sources :

Example 96 with DccLocoAddress

use of jmri.DccLocoAddress in project JMRI by JMRI.

the class NceConsistTest method testCtor2.

@Test
public void testCtor2() {
    // DccLocoAddress constructor test.
    NceConsist c = new NceConsist(new DccLocoAddress(3, false), memo);
    // send a reply the memory read instruction trigged by the constructor above.
    nnis.sendTestReply(new NceReply(nnis, "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"), null);
    Assert.assertNotNull(c);
    c.dispose();
}
Also used : DccLocoAddress(jmri.DccLocoAddress) Test(org.junit.Test)

Aggregations

DccLocoAddress (jmri.DccLocoAddress)96 Consist (jmri.Consist)12 ThrottleManager (jmri.ThrottleManager)7 IOException (java.io.IOException)6 Element (org.jdom2.Element)6 Test (org.junit.Test)6 Matcher (java.util.regex.Matcher)5 DccThrottle (jmri.DccThrottle)5 SystemConnectionMemo (jmri.jmrix.SystemConnectionMemo)5 JsonException (jmri.server.json.JsonException)5 Pattern (java.util.regex.Pattern)4 IdTag (jmri.IdTag)3 JsonNode (com.fasterxml.jackson.databind.JsonNode)2 ArrayNode (com.fasterxml.jackson.databind.node.ArrayNode)2 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)2 ArrayList (java.util.ArrayList)2 Locale (java.util.Locale)2 JTextField (javax.swing.JTextField)2 CommandStation (jmri.CommandStation)2 ProgrammerException (jmri.ProgrammerException)2