source: trunk/JavaHelperLibTest/src/de/ugoe/cs/util/console/mock/MockOutputListener.java @ 319

Last change on this file since 319 was 319, checked in by sherbold, 12 years ago
  • Property svn:mime-type set to text/plain
File size: 533 bytes
Line 
1package de.ugoe.cs.util.console.mock;
2
3import de.ugoe.cs.util.console.listener.IOutputListener;
4
5public 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.