Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
additional tests for WiThrottle; some JUnit4 conversions
- Loading branch information
Showing
14 changed files
with
293 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
java/test/jmri/jmrit/withrottle/ControllerInterfaceScaffold.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,39 @@ | |||
package jmri.jmrit.withrottle; | |||
|
|||
/** | |||
* Provide a dummy controller interface so that functionallity can | |||
* be tested. | |||
* | |||
* @author Paul Bender Copyright (C) 2018 | |||
*/ | |||
public class ControllerInterfaceScaffold implements ControllerInterface { | |||
|
|||
private String lastPacket = null; | |||
private String lastAlert = null; | |||
private String lastInfo = null; | |||
|
|||
public void sendPacketToDevice(String message){ | |||
lastPacket = message; | |||
} | |||
|
|||
public String getLastPacket(){ | |||
return lastPacket; | |||
} | |||
|
|||
public void sendAlertMessage(String message){ | |||
lastAlert = message; | |||
} | |||
|
|||
public String getLastAlert(){ | |||
return lastAlert; | |||
} | |||
|
|||
public void sendInfoMessage(String message){ | |||
lastInfo = message; | |||
} | |||
|
|||
public String getLastInfo(){ | |||
return lastInfo; | |||
} | |||
|
|||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.