added run statement to mock thread
#story[782]
This commit is contained in:
@@ -29,11 +29,8 @@ public class MockOutput implements Runnable
|
|||||||
private int heartbeatSequenceNum = 1;
|
private int heartbeatSequenceNum = 1;
|
||||||
|
|
||||||
public MockOutput() throws IOException {
|
public MockOutput() throws IOException {
|
||||||
/**************sockets*******************/
|
|
||||||
//start Time
|
//start Time
|
||||||
lastHeartbeatTime = System.currentTimeMillis();
|
lastHeartbeatTime = System.currentTimeMillis();
|
||||||
|
|
||||||
|
|
||||||
serverSocket = new ServerSocket(4942);
|
serverSocket = new ServerSocket(4942);
|
||||||
|
|
||||||
|
|
||||||
@@ -134,8 +131,6 @@ public class MockOutput implements Runnable
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**************sockets*******************/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -143,6 +138,7 @@ public class MockOutput implements Runnable
|
|||||||
public static void main(String argv[]) throws Exception
|
public static void main(String argv[]) throws Exception
|
||||||
{
|
{
|
||||||
MockOutput client = new MockOutput();
|
MockOutput client = new MockOutput();
|
||||||
|
client.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user