use of jmri.jmrix.nce.NceMessage in project JMRI by JMRI.
the class NceMonPanelTest method testMsg.
@Test
@Ignore("see comments below for corrections required.")
public void testMsg() {
// Prior to JUnit4 conversion, this test method was commented out with a note reading
// Following are timing-specific, occasionally fail, so commented out
NceMessage m = new NceMessage(3);
m.setBinary(false);
m.setOpCode('L');
m.setElement(1, '0');
m.setElement(2, 'A');
((NceMonPanel) pane).message(m);
// The following assertions need to be re-written. There is no
// current method for retrieving the text panel from the NceMonPanel.
//Assert.assertEquals("length ", "cmd: \"L0A\"\n".length(), ((NceMonPanel)pane).getPanelText().length());
//Assert.assertEquals("display", "cmd: \"L0A\"\n", ((NceMonPanel)pane).getPanelText());
}
Aggregations