Last change
on this file since 323 was
319,
checked in by sherbold, 13 years ago
|
|
-
Property svn:mime-type set to
text/plain
|
File size:
533 bytes
|
Rev | Line | |
---|
[319] | 1 | package de.ugoe.cs.util.console.mock;
|
---|
| 2 |
|
---|
| 3 | import de.ugoe.cs.util.console.listener.IOutputListener;
|
---|
| 4 |
|
---|
| 5 | public class MockOutputListener implements IOutputListener {
|
---|
| 6 | private String secondLastOutput = null;
|
---|
| 7 | private String lastOutput = null;
|
---|
| 8 | public String getLastOutput() {
|
---|
| 9 | return lastOutput;
|
---|
| 10 | }
|
---|
| 11 | public String getSecondLastOutput() {
|
---|
| 12 | return secondLastOutput;
|
---|
| 13 | }
|
---|
| 14 | @Override
|
---|
| 15 | public void outputMsg(String newMessage) {
|
---|
| 16 | if( lastOutput!=null ) {
|
---|
| 17 | secondLastOutput=lastOutput;
|
---|
| 18 | }
|
---|
| 19 | lastOutput = newMessage;
|
---|
| 20 |
|
---|
| 21 | }
|
---|
| 22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.