You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(13) |
Aug
(151) |
Sep
(21) |
Oct
(6) |
Nov
(70) |
Dec
(8) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(47) |
Feb
(66) |
Mar
(23) |
Apr
(115) |
May
(24) |
Jun
(53) |
Jul
(10) |
Aug
(279) |
Sep
(84) |
Oct
(149) |
Nov
(138) |
Dec
(52) |
2003 |
Jan
(22) |
Feb
(20) |
Mar
(29) |
Apr
(106) |
May
(170) |
Jun
(122) |
Jul
(70) |
Aug
(64) |
Sep
(27) |
Oct
(71) |
Nov
(49) |
Dec
(9) |
2004 |
Jan
(7) |
Feb
(38) |
Mar
(3) |
Apr
(9) |
May
(22) |
Jun
(4) |
Jul
(1) |
Aug
(2) |
Sep
(2) |
Oct
|
Nov
(15) |
Dec
(2) |
2005 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
(1) |
May
(28) |
Jun
(3) |
Jul
(11) |
Aug
(5) |
Sep
(1) |
Oct
(5) |
Nov
(2) |
Dec
(3) |
2006 |
Jan
(8) |
Feb
(3) |
Mar
(8) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Steve F. <sm...@us...> - 2003-06-12 22:45:23
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic In directory sc8-pr-cvs1:/tmp/cvs-serv21757/src/core/com/mockobjects/dynamic Modified Files: VoidStub.java CallSequence.java Mock.java CallOnceExpectation.java Callable.java ThrowStub.java CallBag.java CallSignature.java ReturnStub.java Log Message: Removed 'mock' parameter from Callable.call() Fixed up some of the field names in the mocks for testing dynamic mocks Index: VoidStub.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/VoidStub.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- VoidStub.java 18 May 2003 20:59:35 -0000 1.2 +++ VoidStub.java 12 Jun 2003 22:45:11 -0000 1.3 @@ -10,7 +10,7 @@ return "returns <void>"; } - public Object call(Mock mock, String methodName, Object[] args) throws Throwable { + public Object call(String methodName, Object[] args) throws Throwable { return null; } Index: CallSequence.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/CallSequence.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- CallSequence.java 18 May 2003 20:59:35 -0000 1.5 +++ CallSequence.java 12 Jun 2003 22:45:12 -0000 1.6 @@ -17,16 +17,16 @@ this.matchedCalls.reset(); } - public Object call(Mock mock, String methodName, Object[] args) throws Throwable { + public Object call(String methodName, Object[] args) throws Throwable { if (expectedCalls.size() == 0) throw new AssertionFailedError("no methods defined on mock, received: " + DynamicUtil.methodToString(methodName, args)); if (callIndex == expectedCalls.size()) throw new AssertionFailedError("mock called too many times, received: " + DynamicUtil.methodToString(methodName, args)); Callable nextCall = (Callable)expectedCalls.get(callIndex++); if (nextCall.matches(methodName, args)) - return nextCall.call(mock, methodName, args); + return nextCall.call(methodName, args); try { - return matchedCalls.call(mock, methodName, args); + return matchedCalls.call(methodName, args); } catch (AssertionFailedError ex) { throw createUnexpectedCallError(methodName, args); } Index: Mock.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/Mock.java,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- Mock.java 8 Jun 2003 21:49:22 -0000 1.22 +++ Mock.java 12 Jun 2003 22:45:12 -0000 1.23 @@ -85,7 +85,7 @@ } else if (isMockNameGetter(method, args)) { return this.getMockName(); } else { - return calls.call(this, method.getName(), (args == null ? new Object[0] : args)); + return calls.call(method.getName(), (args == null ? new Object[0] : args)); } } catch (AssertionFailedError ex) { throw new AssertionFailedError(name + ": " + ex.getMessage()); Index: CallOnceExpectation.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/CallOnceExpectation.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- CallOnceExpectation.java 20 May 2003 00:05:24 -0000 1.1 +++ CallOnceExpectation.java 12 Jun 2003 22:45:13 -0000 1.2 @@ -14,9 +14,9 @@ return delegate.getDescription() + " [" + (wasCalled ? "" : "not ") + "called]"; } - public Object call(Mock mock, String methodName, Object[] args) throws Throwable { + public Object call(String methodName, Object[] args) throws Throwable { wasCalled = true; - return delegate.call( mock, methodName, args ); + return delegate.call( methodName, args ); } public boolean matches(String methodName, Object[] args) { Index: Callable.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/Callable.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- Callable.java 18 May 2003 20:59:35 -0000 1.2 +++ Callable.java 12 Jun 2003 22:45:13 -0000 1.3 @@ -4,6 +4,6 @@ public interface Callable extends Verifiable { String getDescription(); - Object call( Mock mock, String methodName, Object[] args ) throws Throwable; + Object call( String methodName, Object[] args ) throws Throwable; boolean matches(String methodName, Object[] args); } Index: ThrowStub.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/ThrowStub.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ThrowStub.java 18 May 2003 20:59:35 -0000 1.2 +++ ThrowStub.java 12 Jun 2003 22:45:13 -0000 1.3 @@ -15,7 +15,7 @@ this.throwable = throwable; } - public Object call(Mock mock, String methodName, Object[] args) throws Throwable { + public Object call(String methodName, Object[] args) throws Throwable { throw throwable; } Index: CallBag.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/CallBag.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- CallBag.java 8 Jun 2003 21:47:53 -0000 1.3 +++ CallBag.java 12 Jun 2003 22:45:14 -0000 1.4 @@ -20,7 +20,7 @@ this.expectedMatches.clear(); } - public Object call(Mock mock, String methodName, Object[] args) + public Object call(String methodName, Object[] args) throws Throwable { Callable matchingCall = findMatchingCall(methodName, args, this.expectedCalls); @@ -31,7 +31,7 @@ throw createUnexpectedCallError(methodName, args); } - return matchingCall.call(mock, methodName, args); + return matchingCall.call(methodName, args); } private Callable findMatchingCall(String methodName, Object[] args, List callList) { Index: CallSignature.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/CallSignature.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- CallSignature.java 19 May 2003 23:37:49 -0000 1.1 +++ CallSignature.java 12 Jun 2003 22:45:14 -0000 1.2 @@ -14,10 +14,10 @@ this.delegate = delegate; } - public Object call( Mock mock, String methodName, Object[] args ) + public Object call( String methodName, Object[] args ) throws Throwable { - return delegate.call( mock, methodName, args ); + return delegate.call( methodName, args ); } public void verify() { Index: ReturnStub.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/ReturnStub.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ReturnStub.java 18 May 2003 20:59:35 -0000 1.2 +++ ReturnStub.java 12 Jun 2003 22:45:14 -0000 1.3 @@ -15,7 +15,7 @@ this.result = result; } - public Object call(Mock mock, String methodName, Object[] args) throws Throwable { + public Object call(String methodName, Object[] args) throws Throwable { return result; } |
From: Tim M. <tim...@po...> - 2003-06-11 23:41:16
|
I seem to recall that Vincent added this? Although I'm suprised that the javadoc comment is not clear though as he's a big advocate of javadoc? Tim > -----Original Message----- > From: moc...@li... > [mailto:moc...@li...]On Behalf Of > Nat Pryce > Sent: 11 June 2003 09:50 > To: Moc...@Li... > Subject: [MO-java-dev] Reset method in CallableAddable > > > What is the reset method in CallableAddable meant to do? The Javadoc > comment is not clear, there are no tests for any implementations of it, it > is not used in any examples, and the implementation in the CallSequence > class is obviously broken whatever the semantics. > > Since it is not used and seems not to be used by anybody judging by the > existence of the CallSequence bug, could we remove it? > > Cheers, > Nat. > _______________________ > Dr. Nathaniel Pryce > B13media Ltd. > http://www.b13media.com > +44 (0)7712 526 661 > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > Mockobjects-java-dev mailing list > Moc...@li... > https://lists.sourceforge.net/lists/listinfo/mockobjects-java-dev > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003 > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003 |
From: Nat P. <nat...@b1...> - 2003-06-11 21:27:06
|
In that case, the reset method in CallSequence should set callIndex to 0. Cheers, Nat. _______________________ Dr. Nathaniel Pryce B13media Ltd. http://www.b13media.com +44 (0)7712 526 661 ----- Original Message ----- From: <st...@m3...> To: <moc...@li...> Sent: Wednesday, June 11, 2003 11:08 AM Subject: Re: [MO-java-dev] Reset method in CallableAddable > What is the reset method in CallableAddable meant to do? The Javadoc > comment is not clear, there are no tests for any implementations of it, it > is not used in any examples, and the implementation in the CallSequence > class is obviously broken whatever the semantics. Vincent added it to make some of his setup easier but, being a bit naughty, did so without any tests. There is a user, so we should fix it rather than drop it. S. ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Mockobjects-java-dev mailing list Moc...@li... https://lists.sourceforge.net/lists/listinfo/mockobjects-java-dev |
From: <st...@m3...> - 2003-06-11 10:09:05
|
> What is the reset method in CallableAddable meant to do? The Javadoc > comment is not clear, there are no tests for any implementations of it, it > is not used in any examples, and the implementation in the CallSequence > class is obviously broken whatever the semantics. Vincent added it to make some of his setup easier but, being a bit naughty,= did so without any tests. There is a user, so we should fix it rather than= drop it. S. |
From: Nat P. <nat...@b1...> - 2003-06-11 09:00:31
|
What is the reset method in CallableAddable meant to do? The Javadoc comment is not clear, there are no tests for any implementations of it, it is not used in any examples, and the implementation in the CallSequence class is obviously broken whatever the semantics. Since it is not used and seems not to be used by anybody judging by the existence of the CallSequence bug, could we remove it? Cheers, Nat. _______________________ Dr. Nathaniel Pryce B13media Ltd. http://www.b13media.com +44 (0)7712 526 661 |
From: Steve F. <sm...@us...> - 2003-06-10 17:07:51
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic In directory sc8-pr-cvs1:/tmp/cvs-serv5083/src/core/com/mockobjects/dynamic Modified Files: CallStub.java OrderedMock.java Log Message: Tidied up some comments Index: CallStub.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/CallStub.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- CallStub.java 18 May 2003 20:59:35 -0000 1.2 +++ CallStub.java 10 Jun 2003 17:07:45 -0000 1.3 @@ -3,9 +3,6 @@ */ package com.mockobjects.dynamic; -/** - * @author dev - */ public abstract class CallStub implements Callable { Index: OrderedMock.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/OrderedMock.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- OrderedMock.java 18 May 2003 20:59:35 -0000 1.2 +++ OrderedMock.java 10 Jun 2003 17:07:45 -0000 1.3 @@ -3,9 +3,6 @@ */ package com.mockobjects.dynamic; -/** - * @author Administrator - */ public class OrderedMock extends Mock { public OrderedMock(Class mockedClass) { |
From: Nat P. <nat...@b1...> - 2003-06-10 13:12:15
|
Why does the CallSequence also have a bag of matchedCalls? It seems a needless complication to make a sequence be both a sequence and a bag at the same time, and to break the "class has only one responsibility" and "reuse through composition" guidelines. Putting a sequence into a bag would have the same effect and would allow us to remove the matchedCalls from the sequence. Cheers, Nat. _______________________ Dr. Nathaniel Pryce B13media Ltd. http://www.b13media.com +44 (0)7712 526 661 |
From: <st...@m3...> - 2003-06-10 11:00:34
|
> It should be possible to use a CallBag or a CallSequence wherever you can > use a Call. That is, you should be able to have a bag of sequences or a > sequence of bags, with single-shot calls mixed in as well. If that is not > possible, then I would consider that a bug. Then the two collections should implement the matches method. S. |
From: Nat P. <nat...@b1...> - 2003-06-10 10:55:40
|
It should be possible to use a CallBag or a CallSequence wherever you can use a Call. That is, you should be able to have a bag of sequences or a sequence of bags, with single-shot calls mixed in as well. If that is not possible, then I would consider that a bug. _______________________ Dr. Nathaniel Pryce B13media Ltd. http://www.b13media.com +44 (0)7712 526 661 ----- Original Message ----- From: <st...@m3...> To: <moc...@li...> Cc: <st...@m3...> Sent: Tuesday, June 10, 2003 11:19 AM Subject: Re: [MO-java-dev] CallBag is a Callable? > I'm worried that we'll refactor out flexibility that will be very difficult > to put back in when somebody needs it. The previous version of the dynamic > mocks was a little too inflexible, and mock objects created by the core > library are very inflexible and need to be modified too frequently. > > The idea of making CallBag and CallSequence implement Call is to find a > happy medium between the simplicity of sequences or choices of expected > calls and the over-complexity of state machines. In which case, perhaps we should distinguish between Callable and Matchable? To me, the current situation is confusing because we have 2 implementations that will fail if you try to use them as Callables. S. ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Mockobjects-java-dev mailing list Moc...@li... https://lists.sourceforge.net/lists/listinfo/mockobjects-java-dev |
From: <st...@m3...> - 2003-06-10 10:19:41
|
> I'm worried that we'll refactor out flexibility that will be very difficu= lt > to put back in when somebody needs it. The previous version of the dynam= ic > mocks was a little too inflexible, and mock objects created by the core > library are very inflexible and need to be modified too frequently. >=20 > The idea of making CallBag and CallSequence implement Call is to find a > happy medium between the simplicity of sequences or choices of expected > calls and the over-complexity of state machines. In which case, perhaps we should distinguish between Callable and Matchable= ? To me, the current situation is confusing because we have 2 implementatio= ns that will fail if you try to use them as Callables. S. |
From: Nat P. <nat...@b1...> - 2003-06-10 09:55:37
|
From: "Steve Freeman" <st...@m3...> > Do we want to drop it, then? The c# equivalent doesn't pass the object > through. Actually, let's drop it. I've realised that you can get the same effect using other Java mechanisms -- instance variables or final variables and inner classes, for example. It's better to be consistent with other Mock libraries. Cheers, Nat. |
From: <st...@m3...> - 2003-06-10 09:52:05
|
I've been looking through the code again, and I'm not convinced that CallBa= g and CallSequence are Calleable, as defined by the interface. Even though = both implement a call() method, both throw a (different) exception on the m= atches method and so don't conform to the interface. Presumably the idea wa= s to be able to use collection in a daisy chain of calls, but are we being = too general? Do we have a concrete example of where this is useful? I'm inclined to think that the CallableAddable and CallCollection should be= merged in some way? S. |
From: Steve F. <st...@m3...> - 2003-06-09 19:55:50
|
Do we want to drop it, then? The c# equivalent doesn't pass the object through. S. Nat Pryce wrote: > I needed it in a project that used the old dynamic mock package (that didn't > support it and needed modification), which is why I added it to the new > DynaMock package. > > I agree that it's pretty a rare requirement though. |
From: Nat P. <nat...@b1...> - 2003-06-09 16:04:12
|
I needed it in a project that used the old dynamic mock package (that didn't support it and needed modification), which is why I added it to the new DynaMock package. I agree that it's pretty a rare requirement though. Regards, Nat. _______________________ Dr. Nathaniel Pryce B13media Ltd. http://www.b13media.com +44 (0)7712 526 661 ----- Original Message ----- From: <st...@m3...> To: <moc...@li...> Sent: Monday, June 09, 2003 11:46 AM Subject: Re: [MO-java-dev] mock parameter in call() method? > It allows mocked call to have access to "this", which is useful if you need > to mock side effects. I can see that it /might/ be useful. I'm just struck that it hasn't been so far. Perhaps we've overestimated the requirement. S. ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Mockobjects-java-dev mailing list Moc...@li... https://lists.sourceforge.net/lists/listinfo/mockobjects-java-dev |
From: Griffin C. <gri...@ya...> - 2003-06-09 14:46:53
|
I just wanted to drop a line to let everyone know of the new DotNetMock site. It's been in construction over the past couple of weeks, and the construction is ongoing. http://dotnetmock.sourceforge.net/tiki Check out the wiki for some new information about MO's and their use. This list will include: - MO Design Patterns & AntiPatterns - Creating MO's for 3rd Party components - Introducing MO's to a new systems & existing systems - Effective UI testing using MO's - Utilization of MO's throughout a team/company Since my project is .NET, in the beginning most of the code will be .NET based. But I am expecting to branch out into other languages, Java & Ruby especially. Drop me a line if anyone has any comments. As always, the wiki is open, so if you have something to add, go for it. Thanks, Griffin ===== Griffin Caprio "Your child against mine. The winner will be hailed, the loser will be booed until my throat hurts!" - Homer Simpson to Marge __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |
From: <st...@m3...> - 2003-06-09 10:46:15
|
> It allows mocked call to have access to "this", which is useful if you ne= ed > to mock side effects. I can see that it /might/ be useful. I'm just struck that it hasn't been so= far. Perhaps we've overestimated the requirement. S. |
From: Nat P. <nat...@b1...> - 2003-06-09 09:49:40
|
It allows mocked call to have access to "this", which is useful if you need to mock side effects. Cheers, Nat. _______________________ Dr. Nathaniel Pryce B13media Ltd. http://www.b13media.com +44 (0)7712 526 661 ----- Original Message ----- From: "Steve Freeman" <st...@m3...> To: "'Mockobjects-Java-Dev'" <moc...@li...> Sent: Monday, June 09, 2003 12:27 AM Subject: [MO-java-dev] mock parameter in call() method? > Been browsing the code and I can't find an example where the first mock > parameter is actually used from the call(mock, methodName, args) method. > Have I missed something? > > S > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > Mockobjects-java-dev mailing list > Moc...@li... > https://lists.sourceforge.net/lists/listinfo/mockobjects-java-dev |
From: Steve F. <st...@m3...> - 2003-06-08 23:28:20
|
Been browsing the code and I can't find an example where the first mock parameter is actually used from the call(mock, methodName, args) method. Have I missed something? S |
From: Steve F. <sm...@us...> - 2003-06-08 21:49:25
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic In directory sc8-pr-cvs1:/tmp/cvs-serv11112/src/core/com/mockobjects/dynamic Modified Files: Mock.java Log Message: Renamed callSequence to calls. Not just sequences any more Index: Mock.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/Mock.java,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- Mock.java 8 Jun 2003 00:30:29 -0000 1.21 +++ Mock.java 8 Jun 2003 21:49:22 -0000 1.22 @@ -13,12 +13,12 @@ private String name; private Object proxy; private CallFactory callFactory; - private CallableAddable callSequence; + private CallableAddable calls; public Mock(CallFactory callFactory, CallableAddable callableAddable, Class mockedClass, String name) { this.name = name; this.callFactory = callFactory; - this.callSequence = callableAddable; + this.calls = callableAddable; this.proxy = Proxy.newProxyInstance(getClass().getClassLoader(), new Class[] { mockedClass }, this); } @@ -31,7 +31,7 @@ } public void reset() { - this.callSequence.reset(); + this.calls.reset(); } public static String mockNameFromClass(Class c) { @@ -85,7 +85,7 @@ } else if (isMockNameGetter(method, args)) { return this.getMockName(); } else { - return callSequence.call(this, method.getName(), (args == null ? new Object[0] : args)); + return calls.call(this, method.getName(), (args == null ? new Object[0] : args)); } } catch (AssertionFailedError ex) { throw new AssertionFailedError(name + ": " + ex.getMessage()); @@ -102,7 +102,7 @@ public void verify() { try { - callSequence.verify(); + calls.verify(); } catch (AssertionFailedError ex) { throw new AssertionFailedError(name + ": " + ex.getMessage()); } @@ -117,7 +117,7 @@ } public void expect(String methodName, ConstraintMatcher args) { - callSequence.addExpect(callFactory.createCallExpectation(callFactory.createCallSignature(methodName, args, callFactory.createVoidStub()))); + calls.addExpect(callFactory.createCallExpectation(callFactory.createCallSignature(methodName, args, callFactory.createVoidStub()))); } public void expectAndReturn(String methodName, Object result) { @@ -153,7 +153,7 @@ } public void expectAndReturn(String methodName, ConstraintMatcher args, Object result) { - callSequence.addExpect(callFactory.createCallExpectation(callFactory.createCallSignature(methodName, args, callFactory.createReturnStub(result)))); + calls.addExpect(callFactory.createCallExpectation(callFactory.createCallSignature(methodName, args, callFactory.createReturnStub(result)))); } public void expectAndThrow(String methodName, Throwable exception) { @@ -165,7 +165,7 @@ } public void expectAndThrow(String methodName, ConstraintMatcher args, Throwable exception) { - callSequence.addExpect(callFactory.createCallExpectation(callFactory.createCallSignature(methodName, args, callFactory.createThrowStub(exception)))); + calls.addExpect(callFactory.createCallExpectation(callFactory.createCallSignature(methodName, args, callFactory.createThrowStub(exception)))); } public void matchAndReturn(String methodName, Object result) { @@ -209,7 +209,7 @@ } public void matchAndReturn(String methodName, ConstraintMatcher args, Object result) { - callSequence.addMatch(callFactory.createCallSignature(methodName, args, callFactory.createReturnStub(result))); + calls.addMatch(callFactory.createCallSignature(methodName, args, callFactory.createReturnStub(result))); } public void matchAndThrow(String methodName, Throwable throwable) { @@ -229,7 +229,7 @@ } public void matchAndThrow(String methodName, ConstraintMatcher args, Throwable throwable) { - callSequence.addMatch(callFactory.createCallSignature(methodName, args, callFactory.createThrowStub(throwable))); + calls.addMatch(callFactory.createCallSignature(methodName, args, callFactory.createThrowStub(throwable))); } /** @deprecated @see OrderedMock @@ -268,7 +268,7 @@ this.expect(methodName); } - /** @deprecated Not required, as if methodName is called, you will get a an exception + /** @deprecated Not required, as if methodName is called, you will get an exception */ public void expectNotCalled(String methodName) { } |
From: Steve F. <sm...@us...> - 2003-06-08 21:48:28
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic In directory sc8-pr-cvs1:/tmp/cvs-serv10774/src/core/com/mockobjects/dynamic Modified Files: CallCollection.java Log Message: Removed unnecesary 'extends Object' Index: CallCollection.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/CallCollection.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- CallCollection.java 18 May 2003 20:59:35 -0000 1.2 +++ CallCollection.java 8 Jun 2003 21:48:24 -0000 1.3 @@ -2,7 +2,7 @@ import junit.framework.AssertionFailedError; -abstract public class CallCollection extends Object { +abstract public class CallCollection { protected AssertionFailedError createUnexpectedCallError(String methodName, Object[] args) { |
From: Steve F. <sm...@us...> - 2003-06-08 21:47:57
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic In directory sc8-pr-cvs1:/tmp/cvs-serv10609/src/core/com/mockobjects/dynamic Modified Files: CallBag.java Log Message: Tidy up spaces Index: CallBag.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/CallBag.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- CallBag.java 18 May 2003 20:59:35 -0000 1.2 +++ CallBag.java 8 Jun 2003 21:47:53 -0000 1.3 @@ -32,7 +32,6 @@ } return matchingCall.call(mock, methodName, args); - } private Callable findMatchingCall(String methodName, Object[] args, List callList) { |
From: Steve F. <sm...@us...> - 2003-06-08 00:30:34
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic In directory sc8-pr-cvs1:/tmp/cvs-serv20554/src/core/com/mockobjects/dynamic Modified Files: Mock.java Log Message: Moved all the "core" mock methods to be the last in the series of overloadings. Just to make them easier to find. Index: Mock.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/Mock.java,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- Mock.java 21 May 2003 07:57:11 -0000 1.20 +++ Mock.java 8 Jun 2003 00:30:29 -0000 1.21 @@ -144,10 +144,6 @@ this.expectAndReturn(methodName, singleEqualArg, new Integer(result)); } - public void expectAndReturn(String methodName, ConstraintMatcher args, Object result) { - callSequence.addExpect(callFactory.createCallExpectation(callFactory.createCallSignature(methodName, args, callFactory.createReturnStub(result)))); - } - public void expectAndReturn(String methodName, ConstraintMatcher args, boolean result) { this.expectAndReturn(methodName, args, new Boolean(result)); } @@ -156,6 +152,10 @@ this.expectAndReturn(methodName, args, new Integer(result)); } + public void expectAndReturn(String methodName, ConstraintMatcher args, Object result) { + callSequence.addExpect(callFactory.createCallExpectation(callFactory.createCallSignature(methodName, args, callFactory.createReturnStub(result)))); + } + public void expectAndThrow(String methodName, Throwable exception) { this.expectAndThrow(methodName, C.NO_ARGS, exception); } @@ -200,16 +200,16 @@ this.matchAndReturn(methodName, singleEqualArg, new Integer(result)); } - public void matchAndReturn(String methodName, ConstraintMatcher args, Object result) { - callSequence.addMatch(callFactory.createCallSignature(methodName, args, callFactory.createReturnStub(result))); - } - public void matchAndReturn(String methodName, ConstraintMatcher args, boolean result) { this.matchAndReturn(methodName, args, new Boolean(result)); } public void matchAndReturn(String methodName, ConstraintMatcher args, int result) { this.matchAndReturn(methodName, args, new Integer(result)); + } + + public void matchAndReturn(String methodName, ConstraintMatcher args, Object result) { + callSequence.addMatch(callFactory.createCallSignature(methodName, args, callFactory.createReturnStub(result))); } public void matchAndThrow(String methodName, Throwable throwable) { |
From: Steve F. <sm...@us...> - 2003-06-08 00:29:25
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/test/mockobjects In directory sc8-pr-cvs1:/tmp/cvs-serv20184/src/core/test/mockobjects Modified Files: TestExpectationSet.java Log Message: Tidied up jmports Index: TestExpectationSet.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/test/mockobjects/TestExpectationSet.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- TestExpectationSet.java 14 May 2003 15:05:50 -0000 1.3 +++ TestExpectationSet.java 8 Jun 2003 00:29:22 -0000 1.4 @@ -1,12 +1,12 @@ package test.mockobjects; -import com.mockobjects.ExpectationSet; -import com.mockobjects.MapEntry; +import java.util.Vector; + import junit.framework.Test; import junit.framework.TestSuite; -import java.util.ArrayList; -import java.util.Vector; +import com.mockobjects.ExpectationSet; +import com.mockobjects.MapEntry; public class TestExpectationSet extends TestExpectationCollection { private static final Class THIS = TestExpectationSet.class; |
From: Steve F. <sm...@us...> - 2003-06-08 00:29:05
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/sql In directory sc8-pr-cvs1:/tmp/cvs-serv20073/src/jdk/common/com/mockobjects/sql Modified Files: CommonMockCallableStatement.java ExpectationSqlRow.java Log Message: Tidied up jmports Index: CommonMockCallableStatement.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/sql/CommonMockCallableStatement.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- CommonMockCallableStatement.java 17 Jan 2003 17:11:50 -0000 1.1 +++ CommonMockCallableStatement.java 8 Jun 2003 00:29:01 -0000 1.2 @@ -1,438 +1,436 @@ -/* - * - * ==================================================================== - * - * The Apache Software License, Version 1.1 - * - * Copyright (c) 2002 The Apache Software Foundation. All rights - * reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The end-user documentation included with the redistribution, if - * any, must include the following acknowlegement: - * "This product includes software developed by the - * Apache Software Foundation (http://www.apache.org/)." - * Alternately, this acknowlegement may appear in the software itself, - * if and wherever such third-party acknowlegements normally appear. - * - * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software - * Foundation" must not be used to endorse or promote products derived - * from this software without prior written permission. For written - * permission, please contact ap...@ap.... - * - * 5. Products derived from this software may not be called "Apache" - * nor may "Apache" appear in their names without prior written - * permission of the Apache Group. - * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * ==================================================================== - * - * This software consists of voluntary contributions made by many - * individuals on behalf of the Apache Software Foundation. For more - * information on the Apache Software Foundation, please see - * <http://www.apache.org/>. - * - */ - -// ------------------------------------------------------------------------ 78 - -package com.mockobjects.sql; - -import java.sql.*; -import java.util.Calendar; -import java.io.Reader; -import java.io.InputStream; -import java.math.BigDecimal; -import java.net.URL; - -import com.mockobjects.*; - -abstract class CommonMockCallableStatement - extends CommonMockPreparedStatement implements CallableStatement { - - public void registerOutParameter(int parameterIndex, int sqlType) { - notImplemented(); - } - - public void registerOutParameter(int parameterIndex, int sqlType, int scale) { - notImplemented(); - } - - public void registerOutParameter(int parameterIndex, int sqlType, String typeName) { - notImplemented(); - } - - public void registerOutParameter(String parameterName, int sqlType) { - notImplemented(); - } - - public void registerOutParameter(String parameterName, int sqlType, int scale) { - notImplemented(); - } - - public void registerOutParameter(String parameterName, int sqlType, String typeName) { - notImplemented(); - } - - public boolean wasNull() { - notImplemented(); - return false; - } - - public String getString(int parameterIndex) { - notImplemented(); - return null; - } - - public String getString(String parameterName) { - notImplemented(); - return null; - } - - public boolean getBoolean(int parameterIndex) { - notImplemented(); - return false; - } - - public boolean getBoolean(String parameterName) { - notImplemented(); - return false; - } - - public byte getByte(int parameterIndex) { - notImplemented(); - return 0; - } - - public byte getByte(String parameterName) { - notImplemented(); - return 0; - } - - public short getShort(int parameterIndex) { - notImplemented(); - return 0; - } - - public short getShort(String parameterName) { - notImplemented(); - return 0; - } - - public int getInt(int parameterIndex) { - notImplemented(); - return 0; - } - - public int getInt(String parameterName) { - notImplemented(); - return 0; - } - - public long getLong(int parameterIndex) { - notImplemented(); - return 0; - } - - public long getLong(String parameterName) { - notImplemented(); - return 0; - } - - public float getFloat(int parameterIndex) { - notImplemented(); - return 0; - } - - public float getFloat(String parameterName) { - notImplemented(); - return 0; - } - - public double getDouble(int parameterIndex) { - notImplemented(); - return 0; - } - - public double getDouble(String parameterName) { - notImplemented(); - return 0; - } - - public BigDecimal getBigDecimal(int parameterIndex) { - notImplemented(); - return null; - } - - public BigDecimal getBigDecimal(String parameterName) { - notImplemented(); - return null; - } - - public BigDecimal getBigDecimal(int parameterIndex, int scale) { - notImplemented(); - return null; - } - - public byte[] getBytes(int parameterIndex) { - notImplemented(); - return null; - } - - public byte[] getBytes(String parameterName) { - notImplemented(); - return null; - } - - public Date getDate(int parameterIndex) { - notImplemented(); - return null; - } - - public Date getDate(String parameterName) { - notImplemented(); - return null; - } - - public Date getDate(int parameterIndex, Calendar cal) { - notImplemented(); - return null; - } - - public Date getDate(String parameterName, Calendar cal) { - notImplemented(); - return null; - } - - public Time getTime(int parameterIndex) { - notImplemented(); - return null; - } - - public Time getTime(String parameterName) { - notImplemented(); - return null; - } - - public Time getTime(int parameterIndex, Calendar cal) { - notImplemented(); - return null; - } - - public Time getTime(String parameterName, Calendar cal) { - notImplemented(); - return null; - } - - public Timestamp getTimestamp(int parameterIndex) { - notImplemented(); - return null; - } - - public Timestamp getTimestamp(String parameterName) { - notImplemented(); - return null; - } - - public Timestamp getTimestamp(int parameterIndex, Calendar cal) { - notImplemented(); - return null; - } - - public Timestamp getTimestamp(String parameterName, Calendar cal) { - notImplemented(); - return null; - } - - public Object getObject(int parameterIndex) { - notImplemented(); - return null; - } - - public Object getObject(String parameterName) { - notImplemented(); - return null; - } - - public Object getObject(int parameterIndex, java.util.Map map) { - notImplemented(); - return null; - } - - public Object getObject(String parameterName, java.util.Map map) { - notImplemented(); - return null; - } - - public Ref getRef(int parameterIndex) { - notImplemented(); - return null; - } - - public Ref getRef(String parameterName) { - notImplemented(); - return null; - } - - public Blob getBlob(int parameterIndex) { - notImplemented(); - return null; - } - - public Blob getBlob(String parameterName) { - notImplemented(); - return null; - } - - public Clob getClob(int parameterIndex) { - notImplemented(); - return null; - } - - public Clob getClob(String parameterName) { - notImplemented(); - return null; - } - - public Array getArray(int parameterIndex) { - notImplemented(); - return null; - } - - public Array getArray(String parameterName) { - notImplemented(); - return null; - } - - public URL getURL(int parameterIndex) { - notImplemented(); - return null; - } - - public URL getURL(String parameterName) { - notImplemented(); - return null; - } - - public void setAsciiStream(String parameterName, InputStream x, int length) { - notImplemented(); - } - - public void setBigDecimal(String parameterName, BigDecimal x) { - notImplemented(); - } - - public void setBinaryStream(String parameterName, InputStream x, int length) { - notImplemented(); - } - - public void setBoolean(String parameterName, boolean x) { - notImplemented(); - } - - public void setByte(String parameterName, byte x) { - notImplemented(); - } - - public void setBytes(String parameterName, byte[] x) { - notImplemented(); - } - - public void setCharacterStream(String parameterName, Reader reader, int length) { - notImplemented(); - } - - public void setDate(String parameterName, Date x) { - notImplemented(); - } - - public void setDate(String parameterName, Date x, Calendar cal) { - notImplemented(); - } - - public void setDouble(String parameterName, double x) { - notImplemented(); - } - - public void setFloat(String parameterName, float x) { - notImplemented(); - } - - public void setInt(String parameterName, int x) { - notImplemented(); - } - - public void setLong(String parameterName, long x) { - notImplemented(); - } - - public void setNull(String parameterName, int sqlType) { - notImplemented(); - } - - public void setNull(String parameterName, int sqlType, String typeName) { - notImplemented(); - } - - public void setObject(String parameterName, Object x) { - notImplemented(); - } - - public void setObject(String parameterName, Object x, int targetSqlType) { - notImplemented(); - } - - public void setObject(String parameterName, Object x, int targetSqlType, int scale) { - notImplemented(); - } - - public void setShort(String parameterName, short x) { - notImplemented(); - } - - public void setString(String parameterName, String x) { - notImplemented(); - } - - public void setTime(String parameterName, Time x) { - notImplemented(); - } - - public void setTime(String parameterName, Time x, Calendar cal) { - notImplemented(); - } - - public void setTimestamp(String parameterName, Timestamp x) { - notImplemented(); - } - - public void setTimestamp(String parameterName, Timestamp x, Calendar cal) { - notImplemented(); - } - - public void setURL(String parameterName, URL val) { - notImplemented(); - } +/* + * + * ==================================================================== + * + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2002 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, if + * any, must include the following acknowlegement: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowlegement may appear in the software itself, + * if and wherever such third-party acknowlegements normally appear. + * + * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software + * Foundation" must not be used to endorse or promote products derived + * from this software without prior written permission. For written + * permission, please contact ap...@ap.... + * + * 5. Products derived from this software may not be called "Apache" + * nor may "Apache" appear in their names without prior written + * permission of the Apache Group. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * <http://www.apache.org/>. + * + */ + +// ------------------------------------------------------------------------ 78 + +package com.mockobjects.sql; + +import java.io.InputStream; +import java.io.Reader; +import java.math.BigDecimal; +import java.net.URL; +import java.sql.*; +import java.util.Calendar; + +abstract class CommonMockCallableStatement + extends CommonMockPreparedStatement implements CallableStatement { + + public void registerOutParameter(int parameterIndex, int sqlType) { + notImplemented(); + } + + public void registerOutParameter(int parameterIndex, int sqlType, int scale) { + notImplemented(); + } + + public void registerOutParameter(int parameterIndex, int sqlType, String typeName) { + notImplemented(); + } + + public void registerOutParameter(String parameterName, int sqlType) { + notImplemented(); + } + + public void registerOutParameter(String parameterName, int sqlType, int scale) { + notImplemented(); + } + + public void registerOutParameter(String parameterName, int sqlType, String typeName) { + notImplemented(); + } + + public boolean wasNull() { + notImplemented(); + return false; + } + + public String getString(int parameterIndex) { + notImplemented(); + return null; + } + + public String getString(String parameterName) { + notImplemented(); + return null; + } + + public boolean getBoolean(int parameterIndex) { + notImplemented(); + return false; + } + + public boolean getBoolean(String parameterName) { + notImplemented(); + return false; + } + + public byte getByte(int parameterIndex) { + notImplemented(); + return 0; + } + + public byte getByte(String parameterName) { + notImplemented(); + return 0; + } + + public short getShort(int parameterIndex) { + notImplemented(); + return 0; + } + + public short getShort(String parameterName) { + notImplemented(); + return 0; + } + + public int getInt(int parameterIndex) { + notImplemented(); + return 0; + } + + public int getInt(String parameterName) { + notImplemented(); + return 0; + } + + public long getLong(int parameterIndex) { + notImplemented(); + return 0; + } + + public long getLong(String parameterName) { + notImplemented(); + return 0; + } + + public float getFloat(int parameterIndex) { + notImplemented(); + return 0; + } + + public float getFloat(String parameterName) { + notImplemented(); + return 0; + } + + public double getDouble(int parameterIndex) { + notImplemented(); + return 0; + } + + public double getDouble(String parameterName) { + notImplemented(); + return 0; + } + + public BigDecimal getBigDecimal(int parameterIndex) { + notImplemented(); + return null; + } + + public BigDecimal getBigDecimal(String parameterName) { + notImplemented(); + return null; + } + + public BigDecimal getBigDecimal(int parameterIndex, int scale) { + notImplemented(); + return null; + } + + public byte[] getBytes(int parameterIndex) { + notImplemented(); + return null; + } + + public byte[] getBytes(String parameterName) { + notImplemented(); + return null; + } + + public Date getDate(int parameterIndex) { + notImplemented(); + return null; + } + + public Date getDate(String parameterName) { + notImplemented(); + return null; + } + + public Date getDate(int parameterIndex, Calendar cal) { + notImplemented(); + return null; + } + + public Date getDate(String parameterName, Calendar cal) { + notImplemented(); + return null; + } + + public Time getTime(int parameterIndex) { + notImplemented(); + return null; + } + + public Time getTime(String parameterName) { + notImplemented(); + return null; + } + + public Time getTime(int parameterIndex, Calendar cal) { + notImplemented(); + return null; + } + + public Time getTime(String parameterName, Calendar cal) { + notImplemented(); + return null; + } + + public Timestamp getTimestamp(int parameterIndex) { + notImplemented(); + return null; + } + + public Timestamp getTimestamp(String parameterName) { + notImplemented(); + return null; + } + + public Timestamp getTimestamp(int parameterIndex, Calendar cal) { + notImplemented(); + return null; + } + + public Timestamp getTimestamp(String parameterName, Calendar cal) { + notImplemented(); + return null; + } + + public Object getObject(int parameterIndex) { + notImplemented(); + return null; + } + + public Object getObject(String parameterName) { + notImplemented(); + return null; + } + + public Object getObject(int parameterIndex, java.util.Map map) { + notImplemented(); + return null; + } + + public Object getObject(String parameterName, java.util.Map map) { + notImplemented(); + return null; + } + + public Ref getRef(int parameterIndex) { + notImplemented(); + return null; + } + + public Ref getRef(String parameterName) { + notImplemented(); + return null; + } + + public Blob getBlob(int parameterIndex) { + notImplemented(); + return null; + } + + public Blob getBlob(String parameterName) { + notImplemented(); + return null; + } + + public Clob getClob(int parameterIndex) { + notImplemented(); + return null; + } + + public Clob getClob(String parameterName) { + notImplemented(); + return null; + } + + public Array getArray(int parameterIndex) { + notImplemented(); + return null; + } + + public Array getArray(String parameterName) { + notImplemented(); + return null; + } + + public URL getURL(int parameterIndex) { + notImplemented(); + return null; + } + + public URL getURL(String parameterName) { + notImplemented(); + return null; + } + + public void setAsciiStream(String parameterName, InputStream x, int length) { + notImplemented(); + } + + public void setBigDecimal(String parameterName, BigDecimal x) { + notImplemented(); + } + + public void setBinaryStream(String parameterName, InputStream x, int length) { + notImplemented(); + } + + public void setBoolean(String parameterName, boolean x) { + notImplemented(); + } + + public void setByte(String parameterName, byte x) { + notImplemented(); + } + + public void setBytes(String parameterName, byte[] x) { + notImplemented(); + } + + public void setCharacterStream(String parameterName, Reader reader, int length) { + notImplemented(); + } + + public void setDate(String parameterName, Date x) { + notImplemented(); + } + + public void setDate(String parameterName, Date x, Calendar cal) { + notImplemented(); + } + + public void setDouble(String parameterName, double x) { + notImplemented(); + } + + public void setFloat(String parameterName, float x) { + notImplemented(); + } + + public void setInt(String parameterName, int x) { + notImplemented(); + } + + public void setLong(String parameterName, long x) { + notImplemented(); + } + + public void setNull(String parameterName, int sqlType) { + notImplemented(); + } + + public void setNull(String parameterName, int sqlType, String typeName) { + notImplemented(); + } + + public void setObject(String parameterName, Object x) { + notImplemented(); + } + + public void setObject(String parameterName, Object x, int targetSqlType) { + notImplemented(); + } + + public void setObject(String parameterName, Object x, int targetSqlType, int scale) { + notImplemented(); + } + + public void setShort(String parameterName, short x) { + notImplemented(); + } + + public void setString(String parameterName, String x) { + notImplemented(); + } + + public void setTime(String parameterName, Time x) { + notImplemented(); + } + + public void setTime(String parameterName, Time x, Calendar cal) { + notImplemented(); + } + + public void setTimestamp(String parameterName, Timestamp x) { + notImplemented(); + } + + public void setTimestamp(String parameterName, Timestamp x, Calendar cal) { + notImplemented(); + } + + public void setURL(String parameterName, URL val) { + notImplemented(); + } } Index: ExpectationSqlRow.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/sql/ExpectationSqlRow.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ExpectationSqlRow.java 13 Apr 2002 15:08:23 -0000 1.1 +++ ExpectationSqlRow.java 8 Jun 2003 00:29:01 -0000 1.2 @@ -1,10 +1,11 @@ package com.mockobjects.sql; import java.sql.SQLException; -import java.util.Map; import java.util.Iterator; -import com.mockobjects.*; -import com.mockobjects.util.*; +import java.util.Map; + +import com.mockobjects.ExpectationMap; +import com.mockobjects.Verifiable; public class ExpectationSqlRow implements Verifiable { private ExpectationMap values; |
From: Steve F. <sm...@us...> - 2003-06-08 00:29:05
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/rmi In directory sc8-pr-cvs1:/tmp/cvs-serv20073/src/jdk/common/com/mockobjects/rmi Modified Files: MockNaming.java Log Message: Tidied up jmports Index: MockNaming.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/rmi/MockNaming.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- MockNaming.java 19 Jun 2002 15:26:25 -0000 1.2 +++ MockNaming.java 8 Jun 2003 00:29:01 -0000 1.3 @@ -1,16 +1,16 @@ package com.mockobjects.rmi; -import com.mockobjects.*; -import com.mockobjects.util.AssertMo; - -import java.rmi.Remote; +import java.net.MalformedURLException; import java.rmi.AlreadyBoundException; -import java.rmi.RemoteException; import java.rmi.NotBoundException; -import java.net.MalformedURLException; -import java.util.Vector; +import java.rmi.Remote; +import java.rmi.RemoteException; import alt.java.rmi.Naming; + +import com.mockobjects.ExpectationValue; +import com.mockobjects.MockObject; +import com.mockobjects.ReturnObjectList; public class MockNaming extends MockObject implements Naming { private final ReturnObjectList myRemotes = new ReturnObjectList("remotes"); |