Update of /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/test/mock2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12903/input/javasrc/biz/xsoftware/test/mock2
Modified Files:
TestMockCreator.java
Log Message:
add log to mocklib2 , add ID to mocklib2 , correct wait time to mocklib2
Index: TestMockCreator.java
===================================================================
RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/test/mock2/TestMockCreator.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** TestMockCreator.java 27 Mar 2006 15:44:31 -0000 1.14
--- TestMockCreator.java 5 Apr 2006 15:27:12 -0000 1.15
***************
*** 24,28 ****
public void testMockCreator() throws Exception {
! MockObject m = MockObjectFactory.createMock(ListenerOne.class);
// ListenerOne l=(ListenerOne)m;
--- 24,28 ----
public void testMockCreator() throws Exception {
! MockObject m = MockObjectFactory.createMock("1",ListenerOne.class);
// ListenerOne l=(ListenerOne)m;
***************
*** 48,52 ****
public void testNoVerifyCalled() throws Exception {
! MockObject m = MockObjectFactory.createMock(ListenerOne.class);
// ListenerOne l=(ListenerOne)m;
String methodName1 = "callMeFirst";
--- 48,52 ----
public void testNoVerifyCalled() throws Exception {
! MockObject m = MockObjectFactory.createMock("2",ListenerOne.class);
// ListenerOne l=(ListenerOne)m;
String methodName1 = "callMeFirst";
***************
*** 66,70 ****
public void testExpectWithRetVal() throws Exception {
! MockObject m = MockObjectFactory.createMock(ListenerOne.class);
ListenerOne l = (ListenerOne) m;
--- 66,70 ----
public void testExpectWithRetVal() throws Exception {
! MockObject m = MockObjectFactory.createMock("3",ListenerOne.class);
ListenerOne l = (ListenerOne) m;
***************
*** 89,93 ****
public void testTwoMethods() throws Exception {
! MockObject m = MockObjectFactory.createMock(ListenerOne.class);
ListenerOne l = (ListenerOne) m;
--- 89,93 ----
public void testTwoMethods() throws Exception {
! MockObject m = MockObjectFactory.createMock("4",ListenerOne.class);
ListenerOne l = (ListenerOne) m;
***************
*** 120,130 ****
public void testTwoMethodsOnThread() throws Exception {
! MockObject m = MockObjectFactory.createMock(ListenerOne.class);
final ListenerOne l = (ListenerOne) m;
String methodName1 = "callMeFirst";
String methodName2 = "callMeSecond";
! CalledMethod callMeFirst = m.expect(methodName1);
! CalledMethod callMeSecond = m.expect(methodName2);
final int var1 = 4;
--- 120,130 ----
public void testTwoMethodsOnThread() throws Exception {
! MockObject m = MockObjectFactory.createMock("5",ListenerOne.class);
final ListenerOne l = (ListenerOne) m;
String methodName1 = "callMeFirst";
String methodName2 = "callMeSecond";
! CalledMethod callMeFirst = m.expect(methodName1,4000);
! CalledMethod callMeSecond = m.expect(methodName2,4000);
final int var1 = 4;
***************
*** 133,137 ****
public void run() {
try {
! Thread.sleep(1000);
l.callMeFirst(var1);
l.callMeSecond(param);
--- 133,137 ----
public void run() {
try {
! Thread.sleep(3000);
l.callMeFirst(var1);
l.callMeSecond(param);
|