Search in sources :

Example 1 with ProgrammerScaffold

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);
}
Also used : DefaultProgrammerManager(jmri.managers.DefaultProgrammerManager) ProgrammerScaffold(jmri.ProgrammerScaffold) Test(org.junit.Test)

Aggregations

ProgrammerScaffold (jmri.ProgrammerScaffold)1 DefaultProgrammerManager (jmri.managers.DefaultProgrammerManager)1 Test (org.junit.Test)1