org.softevo.ample
Class AmpleLauncher.TestListenerFaker

java.lang.Object
  extended by org.softevo.ample.AmpleLauncher.TestListenerFaker
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
AmpleLauncher

private class AmpleLauncher.TestListenerFaker
extends java.lang.Object
implements java.lang.Runnable

A fake class that is used to convince the remote JUnit-Runner of Eclipse that everything is okay.
This class simply opens a socket on a predefined port and reads data until the stream is closed by the remote side. No JUnit test will run without this.

Author:
dallmeier

Field Summary
private  int port
          The port we are listening on.
 
Constructor Summary
AmpleLauncher.TestListenerFaker(int port)
          Creates a new listener.
 
Method Summary
 void run()
          Opens a ServerSocket, waits for a single incoming connection and reads data from this connection forever.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

private int port
The port we are listening on.

Constructor Detail

AmpleLauncher.TestListenerFaker

public AmpleLauncher.TestListenerFaker(int port)
Creates a new listener.

Parameters:
port - the port we listen on
Method Detail

run

public void run()
Opens a ServerSocket, waits for a single incoming connection and reads data from this connection forever.

Specified by:
run in interface java.lang.Runnable