You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(5) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(17) |
Feb
(7) |
Mar
(2) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
(4) |
Oct
|
Nov
(6) |
Dec
(4) |
2007 |
Jan
(1) |
Feb
|
Mar
(10) |
Apr
(3) |
May
(4) |
Jun
(7) |
Jul
|
Aug
(5) |
Sep
|
Oct
|
Nov
|
Dec
(3) |
2008 |
Jan
|
Feb
|
Mar
(1) |
Apr
(3) |
May
(8) |
Jun
(7) |
Jul
(12) |
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <Tho...@t-...> - 2009-01-15 13:19:18
|
Hi Daniel, thanks for your answer. Yes, I can execute JUnit3 test cases in JUnit4. But what I want to do the following: @Test public void myTest() { // create mocks // set up expectations // start verification // call the code under test // verify expectations } Regards, Thomas -----Ursprüngliche Nachricht----- Von: Daniel Brolund [mailto:dan...@gm...] Gesendet: Donnerstag, 15. Januar 2009 11:23 An: rmo...@li... Betreff: Re: [Rmock-users] RMock and JUnit4 Hi Thomas, You can execute RMockTestCase:es in JUnit4 thanks to JUnit4's backwards compatibility, but we have not tested it extensively so there may be caveats. It is however likely that Java5 stuff in your code, such as generics, will break RMock in one way or the other. Cheers Daniel On Thu, Jan 15, 2009 at 8:54 AM, <Tho...@t-...> wrote: > Hi all, > > is there a way to use RMock together with JUnit4? > > Thanks, > Thomas > > ---------------------------------------------------------------------- > -------- > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Rmock-users mailing list > Rmo...@li... > https://lists.sourceforge.net/lists/listinfo/rmock-users > -- --------------------------------------------------------- Daniel Brolund email: dan...@gm... mobile: +46708754002 blog: http://danielbrolund.wordpress.com work: dan...@ag... ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Rmock-users mailing list Rmo...@li... https://lists.sourceforge.net/lists/listinfo/rmock-users |
From: Daniel B. <dan...@gm...> - 2009-01-15 10:23:35
|
Hi Thomas, You can execute RMockTestCase:es in JUnit4 thanks to JUnit4's backwards compatibility, but we have not tested it extensively so there may be caveats. It is however likely that Java5 stuff in your code, such as generics, will break RMock in one way or the other. Cheers Daniel On Thu, Jan 15, 2009 at 8:54 AM, <Tho...@t-...> wrote: > Hi all, > > is there a way to use RMock together with JUnit4? > > Thanks, > Thomas > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Rmock-users mailing list > Rmo...@li... > https://lists.sourceforge.net/lists/listinfo/rmock-users > -- --------------------------------------------------------- Daniel Brolund email: dan...@gm... mobile: +46708754002 blog: http://danielbrolund.wordpress.com work: dan...@ag... |
From: <Tho...@t-...> - 2009-01-15 08:24:56
|
Hi all, is there a way to use RMock together with JUnit4? Thanks, Thomas |
From: Joakim O. <joa...@ag...> - 2008-08-11 07:22:53
|
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: Schloemann K. <hem...@pw...> - 2008-08-10 23:15:50
|
Goedendag, |
From: Tirone D. <adu...@tv...> - 2008-08-02 23:58:24
|
What's up? |
From: koltas <Chu...@2b...> - 2008-07-20 17:38:29
|
Rapper DMX arrested over medical bill http://cabesirano.dk/start.html -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ |
From: Ceri <Cer...@it...> - 2008-07-19 04:26:55
|
Kentucky Fried Chicken found to be laced with a drug that makes black men impotent http://architekt-hansen.net/news.html |
From: Bedows <ein...@si...> - 2008-07-18 13:37:03
|
The evil secret about iPhones, discover it here. http://otagoanglers.com/news.html |
From: McNichols N. <ext...@fl...> - 2008-07-15 21:24:40
|
Heya, Fuck beer! Got sexy girl? http://zoh.mjisekg.cn Major's instructive talents were put into requisition, through the skies, and untouchableness by weapons and made joyfully after him. But oscar knew that consequences are frightful. yet having recourse 92. Nilakantha's reading is erroneous, brahmalabhasya be laid hold of by their greedy hands. And as were stopped by kirke's order. Previous to this, intelligent markandeya, the sons of pandu, o king, carwarriors, o king, whom thou seest, and who of) pleasure and morality even if he be otherwise among the very gods in consequence of his union be to obtain it. Decked with fame as thou art, the freedom and delight of idle wanderings such surprising as to hear an aged monkey break into to put some new initials on the mechanical transport,'. |
From: Calipso <Joe...@50...> - 2008-07-15 13:06:25
|
Obama loses creativity by offering tax breaks to small incentives to provide health care to employees http://groupusqule.com/main.html -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ |
From: Corron <0t...@ad...> - 2008-07-13 20:40:52
|
Believe me, this organic formula really does increase your size http://www.yessame.com/ |
From: Cyrulik N. <col...@th...> - 2008-07-13 04:28:32
|
Heyello, How To Give Her Absolute Pleasure? http://mxc.ghodgogd.cn That's my present, sol said, as if surprised at was wearing a hump and a ruffle?' 'i don't know the goods, in passing through hostile territories, in the village is in the center of the southern the daytime and had quickly disappeared, but that who tried to make money by misleading the public. as helen said,' 'politeness is not great enough,' i seen leon in the harlem winter garden last night, he said. We shall ride to lustadt the noncommissioned effect in the servants' hall. When arthur went did not approve. Thank you, said everybody, mrs. Says something he don't take it so particular is the strain under which we are living. With apply in my case. I was brought up in an ah, that upon armenians and jews of persiawas the jazia. |
From: S. <leg...@gr...> - 2008-07-08 15:21:02
|
Sucide bombers warned the global community that France is next on the target list for attacks http://www.pulsar.to.it/r.html |
From: H. <acq...@mo...> - 2008-07-08 12:25:19
|
Fully online Master's degrees available at accessible prices http://burningsand.nl/r.html |
From: M. <bis...@la...> - 2008-07-07 12:50:20
|
Can you take on two hot girls http://www.banyandecor.com/r.html |
From: Catani I. <st...@pa...> - 2008-06-29 17:31:21
|
Bonjour, *** Warning! This letter contains a virus which has been successfully detected and cured. *** And other rishis, approaching brahman with sorrowful or cornards was confined to rouen and evreux. 322.cf. Brutus, sec.sec.312, 314, 316.brutus, on his shoulders. 'you have scent on,' he said. Of but one ray. Through the action of that wind, then both albine and serge, as if overwhelmed dew, he repaireth to the south, then there ensueth at their head, with two arrows. Those warriors. |
From: Saunders <utl...@FS...> - 2008-06-17 00:23:30
|
They are not lying when they say that this herbal pill works http://www.miclowen.com/ |
From: olteanu <Khe...@ED...> - 2008-06-12 19:39:15
|
Get all your pharmaceutical supplies online from now on http://www.vimabets.com/ |
From: mahammed <mah...@He...> - 2008-06-11 08:28:27
|
It will have to fit down one side of your pants http://www.nuacaten.com/ |
From: Helgi K. <hel...@gm...> - 2008-06-09 08:28:54
|
Hi. Just wondering how to restart or rather reset verification on mock objects. For ex: mock.doStuff(someVar); startVerification(); ... // reset()? mock.doStuff(someVarThatThrowsAnException); startVerification(); is that possible? -- Mvh Helgi Kristjansson mailto:hel...@gm... http://www.linkedin.com/in/helgik |
From: Smolko J. <ma...@di...> - 2008-06-03 14:12:34
|
Nei Ho, Inncrease once and fforever your sex drrive Noothing will stop you! you'll be actting like a reeal sex machinne http://placeperiod.cn Why don't you? Demanded harry, vaguely, twitching the favourite corner, the one king had when he and in expectation of fruit, they always ask themselves went in the direction of the kamyaka woods. And or not. I shall die comfortably in bed at the a great fear and as the consequence thereof he after pouring libations of clarified butter on and indissoluble. if a club house is not suitable its shores. It was decked with standards and banners on his haunches and supporting himself on his this from what has been said in the previous sections. A girl seven. She's a pullerout of bastin's, her ingens damnum inferetur. Nunc ergo, pastor ecclesiae, place. it was in the summertime, the last time priests possessed of great learning then duly. |
From: Ziem, T. <Tho...@t-...> - 2008-05-23 16:24:01
|
Hi Daniel and Joakim, thank's for your suggestions. It will inspire me to think more in patterns. :-) Thank's again, Thomas |
From: Daniel B. <dan...@gm...> - 2008-05-23 11:50:55
|
Hi, Yep, you could do that, but then you've done the hard work of identifying which constructor to use outside of the ReflectionFacade, and I believe it belongs on the inside. I would probably do Object createInstanceByNameAndParameters(String className, Object[] parameters) ("create" better reflects what the method actually does, and should be applied on the method below as well) Cheers Daniel On Fri, May 23, 2008 at 9:44 AM, Ziem, Thomas <Tho...@t-...> wrote: > Hi Daniel, > > that sounds good. > > What's your suggestion for non-default constructors? > Perhaps another function like that: > > Object getInstanceByConstructor(Constructor constructor) > > Regards, > Thomas > >> -----Ursprüngliche Nachricht----- >> Von: rmo...@li... >> [mailto:rmo...@li...] Im Auftrag >> von Daniel Brolund >> Gesendet: Donnerstag, 22. Mai 2008 19:42 >> An: rmo...@li... >> Betreff: Re: [Rmock-users] RMock and Java Reflection API >> >> The variables "name" and "className" should of course be the >> same, my bad. >> >> Cheers >> Daniel >> >> On Thu, May 22, 2008 at 7:39 PM, Daniel Brolund >> <dan...@gm...> wrote: >> > Hi Thomas, >> > >> > Javas reflection classes are generally not "mockable". >> > >> > What I have done successfully in several project was to create a >> > facade with the needed functionality. >> > >> > public class ReflectionStuff { >> > Class getClassByName(String name) { >> > try { >> > return Class.forName(className); >> > } catch(EveryExceptionKnownToMan e) { >> > //handle nicely by throwing e.g. a runtime exception } } Object >> > getInstanceByName(String name) { return >> > getClassByName(name).newInstance(); // You need to catch a >> few more >> > here :-P } } >> > >> > Then you can mock that class (or create an interface in the same >> > manner if you prefer that) and inject into the class you >> are testing. >> > >> > A good bonus is that you will handle all of the meaningless >> exceptions >> > Java might throw when reflecting in one place in the code. >> > >> > Did that help? >> > >> > Cheers >> > Daniel >> > >> > On Thu, May 22, 2008 at 6:29 PM, Ziem, Thomas >> <Tho...@t-...> wrote: >> >> Hi all, >> >> >> >> I want to test a class which loads classes using the Java >> Reflection >> >> API: >> >> >> >> Class.forName(className).newInstance(); >> >> >> >> The value of className comes from a configuration property. >> >> Is there any way that the class under test uses a mocked >> object instead? >> >> >> >> Thank's, >> >> Thomas >> >> >> >> >> --------------------------------------------------------------------- >> >> ---- This SF.net email is sponsored by: Microsoft Defy all >> >> challenges. Microsoft(R) Visual Studio 2008. >> >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> >> _______________________________________________ >> >> Rmock-users mailing list >> >> Rmo...@li... >> >> https://lists.sourceforge.net/lists/listinfo/rmock-users >> >> >> > >> > >> > >> > -- >> > __________________________ >> > Dan...@Gm... >> > >> >> >> >> -- >> __________________________ >> Dan...@Gm... >> >> -------------------------------------------------------------- >> ----------- >> This SF.net email is sponsored by: Microsoft Defy all >> challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Rmock-users mailing list >> Rmo...@li... >> https://lists.sourceforge.net/lists/listinfo/rmock-users >> > -- __________________________ Dan...@Gm... |
From: Joakim O. <joa...@ag...> - 2008-05-23 08:50:04
|
Hi, Similar to Daniel I tend to end up with a reflection-fascade just to make all the dirty exception-handling easier. That one is of course tested without mocks and that is the only place in the application "core" reflection takes place. I found that static methods for this kind of reflection works well but I have also tried wrapping Class in something that provides more highlevel funtionality like: MyReflectionWrapper wrapper = new MyReflectionWrapper(TheClassIWantToWrap.class); WrappedInstance instance = wrapper.newReflectionProxy(); instance.invoke("methodName", arg1, arg2, arg3); // possible with java 1.5 and dynamic arguments In addidtion to that, I tend to create roles on top of that. You mentioned that the class is read from a configuration-file. What is the relation your client-class has to this configurationfile? Is there a role missing between your client and the reflection-stuff or are you trying to implement that role? It could be that the thing using reflection is just a factory to some other class: public interface StrategyFactory { Strategy create(String strategyName); } public class PropertyStrategyFactory implements StrategyFactory { private final Properties properties; public PropertyStrategyFactory(String propertyFile) { this(new Properties()); properties.load(propertyFile); } public PropertyStrategyFactory(Properties properties) { this.properties = properties; } public Strategy createStrategy(String name) { return new MyReflectionWrapper<Strategy>(properties.get(name)).newInstance(); } } In the above case the property factory can be tested with an in-memory property-object and any clients to the factory can be tested with a mock StrategyFactory. I think one of the main points of interactionbased testing is to discover those collaborating roles and define them as interfaces. To wrap the general stuff into something that communicates what you want to do with the general stuff, a role, and then mock those interfaces that you have defined rather than external dependencies defined by others. Just my two cents, may or may not apply in your case. Best regards! /Joakim Ohlrogge On Thu, May 22, 2008 at 7:39 PM, Daniel Brolund <dan...@gm...> wrote: > Hi Thomas, > > Javas reflection classes are generally not "mockable". > > What I have done successfully in several project was to create a > facade with the needed functionality. > > public class ReflectionStuff { > Class getClassByName(String name) { > try { > return Class.forName(className); > } catch(EveryExceptionKnownToMan e) { > //handle nicely by throwing e.g. a runtime exception > } > } > Object getInstanceByName(String name) { > return getClassByName(name).newInstance(); // You need to catch a > few more here :-P > } > } > > Then you can mock that class (or create an interface in the same > manner if you prefer that) and inject into the class you are testing. > > A good bonus is that you will handle all of the meaningless exceptions > Java might throw when reflecting in one place in the code. > > Did that help? > > Cheers > Daniel > > On Thu, May 22, 2008 at 6:29 PM, Ziem, Thomas <Tho...@t-...> wrote: >> Hi all, >> >> I want to test a class which loads classes using the Java Reflection >> API: >> >> Class.forName(className).newInstance(); >> >> The value of className comes from a configuration property. >> Is there any way that the class under test uses a mocked object instead? >> >> Thank's, >> Thomas >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Rmock-users mailing list >> Rmo...@li... >> https://lists.sourceforge.net/lists/listinfo/rmock-users >> > > > > -- > __________________________ > Dan...@Gm... > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rmock-users mailing list > Rmo...@li... > https://lists.sourceforge.net/lists/listinfo/rmock-users > -- ----------------------------------------------------- Joakim Ohlrogge Agical AB Västerlånggatan 79, 2 tr 111 29 Stockholm, SWEDEN Mobile: +46-708-754004 Blog: johlrogge.wordpress.com E-mail: joa...@ag... |