Skip to content
Permalink
Browse files

suppress normal warning during test

  • Loading branch information...
bobjacobsen committed Oct 27, 2018
1 parent ee7536b commit a90201bb351ce7f10078fc4f3ce7b161943348ea
@@ -1,6 +1,6 @@
package jmri.jmrix.rfid.networkdriver.configurexml;

import jmri.util.JUnitUtil;
import jmri.util.*;
import org.junit.*;
import jmri.jmrix.rfid.networkdriver.ConnectionConfig;

@@ -19,7 +19,16 @@ public void setUp() {
JUnitUtil.setUp();
xmlAdapter = new ConnectionConfigXml();
cc = new ConnectionConfig();

}

@Test(timeout=5000)
@Override
public void loadTest() throws jmri.configurexml.JmriConfigureXmlException {
super.loadTest();
// the port attribute for testing is "(none selected)", which isn't an int
JUnitAppender.assertWarnMessage("Could not parse port attribute: [Attribute: port=\"(none selected)\"]");
}

@After
public void tearDown() {

0 comments on commit a90201b

Please sign in to comment.
You can’t perform that action at this time.