use of jmri.ProgrammerScaffold in project JMRI by JMRI.
the class ProgServiceModePaneTest method testCreateHorizontalDIRECTBYTEMODE.
@Test
public void testCreateHorizontalDIRECTBYTEMODE() {
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
// add dummy DCC
InstanceManager.setProgrammerManager(new DefaultProgrammerManager((new ProgrammerScaffold(DefaultProgrammerManager.DIRECTBYTEMODE))));
Assert.assertTrue("programer manager available", InstanceManager.getDefault(jmri.ProgrammerManager.class) != null);
// create and show
jmri.util.JmriJFrame f = new jmri.util.JmriJFrame("Horizontal DIRECTBYTEMODE");
f.getContentPane().add(new ProgServiceModePane(BoxLayout.X_AXIS));
f.pack();
f.setLocation(0, 100);
f.setVisible(true);
}
Aggregations