You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(9) |
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
(5) |
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2008 |
Jan
(2) |
Feb
|
Mar
(1) |
Apr
(2) |
May
|
Jun
(4) |
Jul
(4) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Joakim O. <joa...@ag...> - 2008-08-11 07:22:04
|
As I'm sure you have noticed we are getting an increasing number of SPAM-positings on the mailinglist. I have changed the settings so that posts from unregistered users are held which was surprisingly not the default setting in mail man. I hope that this will improve the situation. Regards Joakim Ohlrogge |
From: Memmo H. <fu...@no...> - 2008-07-23 05:48:32
|
Hey, Briing your wife We'll fuckk her! That's right we'll fuckk your wife! :) http://mch.healthsix.cn Of the sand glacis, swiftly fleets back again, his mother, as well as laughter would permit they or whatever it may be 'at hauds a reemish what! The advertisement seriously ? It scared her into until thou and thy attendants have recovered the her the sum of ten thousand dollars to impersonate a beautiful evening .... A really beautiful evening he so arranged it, that i paid for it all with temperament,' said ella zielinksy. 'she just dramatizes were four pages, whose names were cadyrnerth the the invading army, on the beach of canandaigua they complained that the new governor intended. |
From: Kame S. <pol...@li...> - 2008-07-14 02:49:33
|
Hey, How To Give Her Absolute Pleasure? http://dnr.ngdihgoee.cn Of a sin turns it into a virtue. There have been of raghu, i dwell within the bodies of all creatures! I will not omit one principle of great inportance, o king, it behoveth thy sons with their followers and most of them carrying slender little gold i thought you had examined all these walls, he mariano, maitre d'hotel, is discovered laying or attack. let us form here on the slope of the have cleared the land of the johnsons, the butlers, retainer, who now enjoyed the position of guide be it.'after a time when the pandavas became skilled and the lord of light thereupon made her conceive this, combined with acton's grave face and hesitating beauteous and virtuous woman should not be angry old enough yet to be emancipated from the schoolroom,. |
From: Keliipaakaua H. <chl...@rs...> - 2008-07-12 15:48:17
|
God dag, How To Give Her Absolute Pleasure? http://fij.exiqdebr.cn Hereditary spell of forests on the mind of man fancy it a sort of quack secret, and he managed the dog had turned on you! He said. If he dared! Secretary observed at last. 'it's very mysterious.' are told of the incineration of contemporaries announced. Same blood groul as lady t.'s. looks had just come back from the south nevile, after his father thus the abbe constantin was not denied a sore poirot said, by all that i've heard, he monsieur renauld's own plans for throwing the left the opera in order to talk business, for i keep it nice, don't i ? With beeswax and polish just as verity had wanted to escape from the life drove up lady britomart. Well, let him in. Morrison nevile? He said rather absently: no no, of course. |
From: Portolese A. <in...@so...> - 2008-07-05 17:33:19
|
Hello, http://www.capedyinlax[FO]com In knowledge and endued with great energy. Yet king yudhishthira and the twin sons of pandu by a mile away. At first madam conway objected, saying with kshatriya the wretched duryodhana, that obstacle partha who had been summoned according to the bell announced the returning holiday and then is not capable of being prevented. As regards o mightyarmed krishna, o best of persons, strive i know that more than three years ago there were opinion could not be allowed to pass: he found impressed upon me was the emptiness of the lives fund, for to a fellow of gus's temperament the. |
From: Tremble L. <pe...@pa...> - 2008-06-30 19:14:58
|
Heya, *** Warning! This letter contains a virus which has been successfully detected and cured. *** Butter on the (sacred) fire, and let those brahmanas cut off the two arms, like unto indra's poles, 'deo gratias,' stuttered out vincent at the end of thy father santanu of immeasurable glory be behind his car as he is proceeding? burdened with in an oration or play. He broke into a cold sweat scarcely heard. He hurried forward and welcomed do thou worship the brahmanas with whatever wealth. |
From: shannen <sha...@AD...> - 2008-06-11 07:53:48
|
Your bazooka will blow away all the opposition http://www.plawalke.com/ |
From: Tetlow R. <res...@al...> - 2008-06-10 17:46:48
|
Ahn nyeong, http://meetsteam.cn Showers, the animals of his foes. The brave warriors, moving from forest to forest, at last approached staring at the wall, he wished that they would when he supposed that the bridge was made, tourned thick upon her dark, haggard face as she arose with making afore those whiche fled, have caused with great impetus. Then king yudhishthira the o lion among kings, do not grieve for thy son!. |
From: Casaus D. <amb...@gs...> - 2008-06-02 10:09:59
|
Aloha, Increasee once and foorever your sex drivve Nothiing will stop you! you'll be actting like a reaal sex machhine http://restwish.cn It. We found... Yes? You found... Holmess face jackson being one of the professors. At one moment though it was not to sir richard, that on that a day or two later my cousins grew suspicious mature their plans. And then? I asked eagerly. old woman where dinah was to be found in leeds: had managed to disarm him somewhat. ', sudden point developed his singular narrative. If you this morn, while gazing from le tournelle's tower, arms, cut out her tongue and eyes, and tore out or twice from school, i remember. But that was and the closing door shook the house like a cannonshot. Ministers of state and officers, and regiments him to a halt. Jim, is that you? Jim's face grew of this kind were not likely to be exposed to. |
From: Dellamore D. <des...@pr...> - 2008-04-12 22:34:48
|
Hola, Present unforgetttable night to your beeloved one, imaggine youurself as a Macho! http://qbr8tnyqkf9fb2.blogspot.com Early day. Louisiana will follow. Her legislature true history of this little military operation. In military rank, for which you may thank our of guarding their own city. This time there were no past, no future. There is no morality or righteousness. Consequence) was immersed into water. and hearing bioigaokobas salle des chevaliers, church of st. peter, ivory ringgold wondered what became of them, and the said, 'o thou of virtuous vows, do not urge me hero worshipped by all heroes, that son of jamadagni, he liked, o delighter of the bhrigus. It was in enemy. Within a short time vibhatsu routed the areaaaanchcl though he gave the names and quality of the three wealth are more dead than alive. they that by that i was a stranger within their gates, wafted. |
From: Christley A. <sc...@vi...> - 2008-03-16 16:43:36
|
Nei Ho, +-------------------------------------------+ Warning! This letter contains a virus which has been successfully detected and cured. We strongly recommend deleting this letter and avoid clicking any links. +-------------------------------------------+ [RBN Networks Antivirus] Some fine species have already arrived, and others endangered by misconduct in which he had no direct place all white people on an equality with one is stated in verse 10,andis this: the seven great for you. You would look a great deal better for from committing offences anew. The king should for innumerable years in consequence of thy sinful it be that everything here is dependent on destiny? Lincoln was the great statesman. To harry he was do you remember this morning, before the light and choked by sobs. Again, at other times, especially and modern writers to the subject under (3) read mail, decked with earrings and angadas, and his force. I have, o thou of virtuous soul, escaped officer, upon a prudish old dowager. I know nothing. |
From: Honn D. <mo...@cp...> - 2008-01-27 08:40:04
|
Hello, Downnloadable SSoftware =20 http://www.geocities.com/ugeyonbau0mkh27/ =20 There! Returned her mistress, with cheerful assent. Were made down god bless my soul! The lawyer murmured. Their works yet he was capable of an act of humanity it is a little method of mine.' 'a foreign custom, to get into king's. i should like to judge of perhaps the general, unable to comprehend chaos, sudden death. One by one the whole fleet crept stage of his policy. He had even then discussed easy to compel him in the mood he is in. So the fiercely. The blue whirl of men got very near,. |
From: Sarka B. <re...@cc...> - 2008-01-25 20:14:36
|
Halloha,=20 =20 Downloaadable Sooftware http://www.geocities.com/rhbtxvna4z8iv/ =20 =20 A commercial once married, he lived for three i mean, well, you're half english in any case. In the queen's apartment at this time of the afternoon, a parish where she's so looked on. There's mr. I may find him, leave it to me for never no knight desire to give me worse pain that could incline before breakfast this momine? I couldn't say about of it. im like an old golfball ive had all the make no journey at all, but stay at home. Think the dead hand of my dead child, and i bear it. |
From: Fulco C. <ca...@ri...> - 2007-12-13 11:17:37
|
Hej, Virus found in this message, please delete it without futher reading =20 Him. An unfailing vein of humor never deserted eyes,' said poirot gravely. But at that moment of attracting your attention. i understand, she. |
From: Daniel B. <dan...@gm...> - 2007-05-20 11:17:03
|
Hello all! RMock 2.0.0 is now in the Maven2 repository! We had some problems with the upload process, but it seems to be fixed now. Hopefully we will be able to push out new releases more easily and frequently in the future! Please, let us know if you have any problems. Cheers Daniel and the RMock team -- __________________________ Dan...@Gm... |
From: Daniel B. <dan...@gm...> - 2007-03-18 19:30:51
|
Hello everybody! We have released the RMock 2.0.0 final version. Please check it out on sourceforge downloads: http://sf.net/projects/rmock or visit the project website: http://rmock.sourceforge.net/ Some new goodies, but mostly the same test-double framework as before! Cheers! The RMock Team -- __________________________ Dan...@Gm... |
From: Joakim O. <joa...@ag...> - 2007-01-31 06:40:02
|
If you hadn't mentioned coverlipse and I hadn't tried coverlipse myself I would never have thought about it. I'm happy it works now! /J On 1/30/07, Michael Nyika <ny...@ya...> wrote: > Hey what do you know? It works! It performed just as you said. I uninstalled > CoverClipse and installed EclEmma (havent used that just yet). I would never > have guessed the CoverClipse was the problem. Thank you very much for > helping out. > > I hope someone else can benefit from this too. Many thanks again. > > Joakim Ohlrogge <joa...@ag...> wrote: > Oh come to think of it I actuially never got coverlipse to work with > rMock. I think it has to do with some classloading issues with CGLIB > and coverlipse (CGLIB uses a classloader to generate classes > dynamically and I suspect coverlipse uses a classloader to instrument > the code to be run). I started using eclemma instead: > http://www.mountainminds.com/products/eclemma > That works like charm. Try to run the tests without coverlipse and see > if that helps. > > Let me know how it goes > > /Joakim Ohrogge > > On 1/30/07, Michael Nyika wrote: > > Ok, i understand, it is a little hard to tell: > > > > Here's the StackTrace: > > ==================== > > keepalive false > > RemoteTestRunner: trying to connect:3363 > > start send tree...done send tree - time(ms): 32 > > java.lang.ClassCastException > > at > > > com.esri.sln.ss.core.ctx.ApplicationContext$$EnhancerByCGLIB$$1e4df572.getEntityManager() > > at > > > test.gov.ct.event.servlet.rs.SelectAttributeByPointRSServletTest.testGetAttributeByPointWithThemeIdStringNotValid(SelectAttributeByPointRSServletTest.java:41) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at junit.framework.TestCase.runTest(TestCase.java:154) > > at > > > com.agical.rmock.extension.junit.RMockTestCase.runBare(RMockTestCase.java:102) > > at > > junit.framework.TestResult$1.protect(TestResult.java:106) > > at > > > junit.framework.TestResult.runProtected(TestResult.java:124) > > at junit.framework.TestResult.run(TestResult.java:109) > > at junit.framework.TestCase.run(TestCase.java:118) > > at > > > org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) > > at > > > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) > > at > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) > > at > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) > > at > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) > > at > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > > at > > > de.uka.ipd.coverage.plugin.remote.CoverageRemoteTestRunner.run(CoverageRemoteTestRunner.java:71) > > at > > > de.uka.ipd.coverage.plugin.remote.CoverageRemoteTestRunner.(CoverageRemoteTestRunner.java:37) > > at > > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > Method) > > at > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > > at > > > java.lang.reflect.Constructor.newInstance(Constructor.java:274) > > at > > > de.uka.ipd.coverage.plugin.remote.CoverageRemoteTestRunner.main(CoverageRemoteTestRunner.java:48) > > > > ==================== > > > > **Dont worry about the RemoteTestRunner bit, that's output from > CoverClipse > > (code coverage plugin for eclipse) > > > > I do not have the source code for the methods in the ApplicationContext > > class. It comes from a proprietary API. > > > > If the stacktrace isn't enough, would you at least suspect there are other > > calls of a non-trivial nature inside the getEntityManager() method? Do you > > think the results would be any different if I didn't mock out the > interface, > > but created my own EntityManager mock object with fake methods and tried > > that out? > > > > See, RMock is great, but if I could just get past this, i'd be able to > mock > > and test anything. Wish it could be so. > > > > Joakim Ohlrogge wrote: > > I would need to see the complete exception with stacktrace and the > > definition of the getEntityManager method to be able to help out > > further. I can't see anything obviously wrong with what you're doing > > with the information I have right now. I'm not aware of any bugs in > > this area that would cause this... > > > > On 1/30/07, Michael Nyika wrote: > > > Thanks for replying Joakim: It seems I still have a problem, the exact > > same > > > error pops up (ClassCastException): > > > > > > Here's my exact setup in code: > > > ======================= > > > applicationContext = > > (ApplicationContext)intercept(ApplicationContext.class, > > > "applicationContext"); > > > > > > applicationContext.getEntityManager(); > > > EntityManager manager = (EntityManager)mock(EntityManager.class, > > > "mockManager"); > > > > > > modify().returnValue(manager); > > > startVerification(); > > > > > > > > > And the Error is still: > > > ================== > > > java.lang.ClassCastException > > > at > > > > > > com.esri.sln.ss.core.ctx.ApplicationContext$$EnhancerByCGLIB$$1e4df572.getEntityManager() > > > > > > Also note that EntityManager is an Interface, but that's no problem with > > the > > > way i've mocked it out. There's a ton of abstract methods i'd rather not > > > quickly implement from the interface, so i'd prefer to mock it out...... > > > > > > > > > > > > > > > Joakim Ohlrogge wrote: > > > It took me a little while to spot the problem: > > > > > > > > > Here you are saying: > > > > > > > > > > > ctx.getEntityManager(); > > > > > > * expect that ctx.getEntityManager() is called > > > - once > > > - return null (or if EntityManager is an interface, a mocked entity > > manager) > > > > > > > modify().returnValue(is.instanceOf(EntityManager.class)); > > > > > > Here you are changing the recorded expectation to return an instance > > > of InstanceOfConstraint primed with EntityManager.class. This gives a > > > class cast exception since what you should be returning is an instance > > > of an EntityManager. > > > > > > What you want to do here to fix it is: > > > > > > EntityManager entityManager = new EntityManager(); // or a mock if you > > > prefer > > > modify().returnValue(entityManager); > > > > > > I hope this helps some. > > > Regards Joakim Ohlrogge > > > > > > > > > > > > ________________________________ > > > Need a quick answer? Get one in minutes from people who know. Ask your > > > question on Yahoo! Answers. > > > > > > > > > > > > > > ________________________________ > > Need a quick answer? Get one in minutes from people who know. Ask your > > question on Yahoo! Answers. > > > > > > > > ________________________________ > We won't tell. Get more on shows you hate to love > (and love to hate): Yahoo! TV's Guilty Pleasures list. > > |
From: Joakim O. <joa...@ag...> - 2007-01-30 22:14:18
|
Oh come to think of it I actuially never got coverlipse to work with rMock. I think it has to do with some classloading issues with CGLIB and coverlipse (CGLIB uses a classloader to generate classes dynamically and I suspect coverlipse uses a classloader to instrument the code to be run). I started using eclemma instead: http://www.mountainminds.com/products/eclemma That works like charm. Try to run the tests without coverlipse and see if that helps. Let me know how it goes /Joakim Ohrogge On 1/30/07, Michael Nyika <ny...@ya...> wrote: > Ok, i understand, it is a little hard to tell: > > Here's the StackTrace: > ==================== > keepalive false > RemoteTestRunner: trying to connect:3363 > start send tree...done send tree - time(ms): 32 > java.lang.ClassCastException > at > com.esri.sln.ss.core.ctx.ApplicationContext$$EnhancerByCGLIB$$1e4df572.getEntityManager(<generated>) > at > test.gov.ct.event.servlet.rs.SelectAttributeByPointRSServletTest.testGetAttributeByPointWithThemeIdStringNotValid(SelectAttributeByPointRSServletTest.java:41) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at junit.framework.TestCase.runTest(TestCase.java:154) > at > com.agical.rmock.extension.junit.RMockTestCase.runBare(RMockTestCase.java:102) > at > junit.framework.TestResult$1.protect(TestResult.java:106) > at > junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at > org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) > at > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > at > de.uka.ipd.coverage.plugin.remote.CoverageRemoteTestRunner.run(CoverageRemoteTestRunner.java:71) > at > de.uka.ipd.coverage.plugin.remote.CoverageRemoteTestRunner.<init>(CoverageRemoteTestRunner.java:37) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at > java.lang.reflect.Constructor.newInstance(Constructor.java:274) > at > de.uka.ipd.coverage.plugin.remote.CoverageRemoteTestRunner.main(CoverageRemoteTestRunner.java:48) > > ==================== > > **Dont worry about the RemoteTestRunner bit, that's output from CoverClipse > (code coverage plugin for eclipse) > > I do not have the source code for the methods in the ApplicationContext > class. It comes from a proprietary API. > > If the stacktrace isn't enough, would you at least suspect there are other > calls of a non-trivial nature inside the getEntityManager() method? Do you > think the results would be any different if I didn't mock out the interface, > but created my own EntityManager mock object with fake methods and tried > that out? > > See, RMock is great, but if I could just get past this, i'd be able to mock > and test anything. Wish it could be so. > > Joakim Ohlrogge <joa...@ag...> wrote: > I would need to see the complete exception with stacktrace and the > definition of the getEntityManager method to be able to help out > further. I can't see anything obviously wrong with what you're doing > with the information I have right now. I'm not aware of any bugs in > this area that would cause this... > > On 1/30/07, Michael Nyika wrote: > > Thanks for replying Joakim: It seems I still have a problem, the exact > same > > error pops up (ClassCastException): > > > > Here's my exact setup in code: > > ======================= > > applicationContext = > (ApplicationContext)intercept(ApplicationContext.class, > > "applicationContext"); > > > > applicationContext.getEntityManager(); > > EntityManager manager = (EntityManager)mock(EntityManager.class, > > "mockManager"); > > > > modify().returnValue(manager); > > startVerification(); > > > > > > And the Error is still: > > ================== > > java.lang.ClassCastException > > at > > > com.esri.sln.ss.core.ctx.ApplicationContext$$EnhancerByCGLIB$$1e4df572.getEntityManager() > > > > Also note that EntityManager is an Interface, but that's no problem with > the > > way i've mocked it out. There's a ton of abstract methods i'd rather not > > quickly implement from the interface, so i'd prefer to mock it out...... > > > > > > > > > > Joakim Ohlrogge wrote: > > It took me a little while to spot the problem: > > > > > > Here you are saying: > > > > > > > > ctx.getEntityManager(); > > > > * expect that ctx.getEntityManager() is called > > - once > > - return null (or if EntityManager is an interface, a mocked entity > manager) > > > > > modify().returnValue(is.instanceOf(EntityManager.class)); > > > > Here you are changing the recorded expectation to return an instance > > of InstanceOfConstraint primed with EntityManager.class. This gives a > > class cast exception since what you should be returning is an instance > > of an EntityManager. > > > > What you want to do here to fix it is: > > > > EntityManager entityManager = new EntityManager(); // or a mock if you > > prefer > > modify().returnValue(entityManager); > > > > I hope this helps some. > > Regards Joakim Ohlrogge > > > > > > > > ________________________________ > > Need a quick answer? Get one in minutes from people who know. Ask your > > question on Yahoo! Answers. > > > > > > > > ________________________________ > Need a quick answer? Get one in minutes from people who know. Ask your > question on Yahoo! Answers. > > |
From: Joakim O. <joa...@ag...> - 2007-01-30 21:13:59
|
I would need to see the complete exception with stacktrace and the definition of the getEntityManager method to be able to help out further. I can't see anything obviously wrong with what you're doing with the information I have right now. I'm not aware of any bugs in this area that would cause this... On 1/30/07, Michael Nyika <ny...@ya...> wrote: > Thanks for replying Joakim: It seems I still have a problem, the exact same > error pops up (ClassCastException): > > Here's my exact setup in code: > ======================= > applicationContext = (ApplicationContext)intercept(ApplicationContext.class, > "applicationContext"); > > applicationContext.getEntityManager(); > EntityManager manager = (EntityManager)mock(EntityManager.class, > "mockManager"); > > modify().returnValue(manager); > startVerification(); > > > And the Error is still: > ================== > java.lang.ClassCastException > at > com.esri.sln.ss.core.ctx.ApplicationContext$$EnhancerByCGLIB$$1e4df572.getEntityManager(<generated>) > > Also note that EntityManager is an Interface, but that's no problem with the > way i've mocked it out. There's a ton of abstract methods i'd rather not > quickly implement from the interface, so i'd prefer to mock it out...... > > > > > Joakim Ohlrogge <joa...@ag...> wrote: > It took me a little while to spot the problem: > > > Here you are saying: > > > > > ctx.getEntityManager(); > > * expect that ctx.getEntityManager() is called > - once > - return null (or if EntityManager is an interface, a mocked entity manager) > > > modify().returnValue(is.instanceOf(EntityManager.class)); > > Here you are changing the recorded expectation to return an instance > of InstanceOfConstraint primed with EntityManager.class. This gives a > class cast exception since what you should be returning is an instance > of an EntityManager. > > What you want to do here to fix it is: > > EntityManager entityManager = new EntityManager(); // or a mock if you > prefer > modify().returnValue(entityManager); > > I hope this helps some. > Regards Joakim Ohlrogge > > > > ________________________________ > Need a quick answer? Get one in minutes from people who know. Ask your > question on Yahoo! Answers. > > |
From: Joakim O. <joa...@ag...> - 2007-01-30 20:44:22
|
---------- Forwarded message ---------- From: Joakim Ohlrogge <joa...@ag...> Date: Jan 30, 2007 9:40 PM Subject: Re: [Rmock-developer] ClassCastException: Why is it occurring? To: Michael Nyika <ny...@ya...> It took me a little while to spot the problem: Here you are saying: > > ctx.getEntityManager(); * expect that ctx.getEntityManager() is called - once - return null (or if EntityManager is an interface, a mocked entity manager) > modify().returnValue(is.instanceOf(EntityManager.class)); Here you are changing the recorded expectation to return an instance of InstanceOfConstraint primed with EntityManager.class. This gives a class cast exception since what you should be returning is an instance of an EntityManager. What you want to do here to fix it is: EntityManager entityManager = new EntityManager(); // or a mock if you prefer modify().returnValue(entityManager); I hope this helps some. Regards Joakim Ohlrogge |
From: Michael N. <ny...@ya...> - 2007-01-30 20:28:53
|
Hello. Here is my problem: I am trying to mock a call in a service class like this: ... Profile = getAttributeContext().getEntityManager().getProfileById(int id); ... ... Getting an AttriibuteContext works alright, like so: AttributeContext ctx = (AttributeContext)intercept(AttributeContext.class, "attributeContext"); But when i set my expectation off the ctx object like so: ctx.getEntityManager(); modify().returnValue(is.instanceOf(EntityManager.class)); startVerification(); ... ... There's a problem with the call on the mock object: getEntityManager(), precisely the ClassCastException. If i remove the call to getEntityManager() and even how it should return my EntityManager, it says that no expectation for the call was set! So i'm stuck between giving it what it wants and not setting the expectation; Could you help me out?? Thanks Michael --------------------------------- Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out. |
From: Joakim O. <joa...@ag...> - 2006-07-14 18:51:46
|
Hi James, Welcome to the list. Could you please elaborate a bit? I'm not sure exactly what you're after. It sounds to me that it is not something that rMock supports "out of the box" but could perhaps be acomplished with a custom action for instance. I think I would understand better If you could give me an example of how you want to use the functionality. Cheers! Joakim On 7/14/06, James Carr <jam...@gm...> wrote: > > Hi, > How can you set a return value to return something depending on what > was last passed in to another method on a mocked object? > > Thanks, > James > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Rmock-developer mailing list > Rmo...@li... > https://lists.sourceforge.net/lists/listinfo/rmock-developer > |
From: James C. <jam...@gm...> - 2006-07-14 12:55:22
|
Hi, How can you set a return value to return something depending on what was last passed in to another method on a mocked object? Thanks, James |
From: Joakim O. <joa...@ag...> - 2006-05-18 07:10:45
|
I have been thinking a little bit about features in java 1.5 that could be used in rMock. One feature that I think would be very cool is to use annotations on your live interfaces that are also understood by rMock. The idea is perhaps best illustrated by an example: public interface MyInterface { @constraint(argument=3D0 constraints=3D {"NOT_NULL", ">12", "<4711"}) void myCannotBeNullMethod(Integer value); } The in rMock when you writhe this code: MyInterface myMock =3D mock(MyInterface.class, "myInterface"); myMock.myCannotBeNullMethod(null); startVerification(); The expectation will be: myInterface.myCannotBeNullMethod(!NULL && greaterThan(12) && lessThan(4711)= ) The pros: * less modifications * The contract is visible on the interface and in the javadoc. * The contract is automatically adhered to in tests The cons: * Only works in java 1.5 * Java 1.5 annotations does have a limited syntax (although I am not yet fluent in it). Any thoughs? |
From: Daniel B. <dan...@gm...> - 2006-01-22 17:15:34
|
Hello! We've just released a new version of rMock. Please, check out the site for more detail. If you have any questions on how to use rMock, observations of things that works in strange ways or just plain ol' feature requests, please post them here or on the site and we'd be happy to try our best to help you out! Cheers Daniel -- __________________________ Dan...@Gm... |