From: Daniel B. <dan...@gm...> - 2006-11-16 07:12:10
|
Hi Mick! Is the problem basically that you want to use RMock's mocking capabilities, but you don't want to extend RMockTestCase? If so, at the moment it will be kind of tricky. RMocks test lifecycle is currently a bit too tightly coupled with the JUnit class. We're hoping to address this problem in a not so far future. >From your mail I get the feeling that you test a lot of things at the same time. Is there any way you could divide the code (and the tests) in smaller pieces and by doing so you don't need the functionality from two base test classes? Also, by arbitrary, do you actually mean arbitrary or do you mean random? And for creating objects from XML, I got like 900 hits on Google for <"xml to object" java>. Are they all bad? :-) Cheers Daniel On 11/14/06, Mick Knutson <mic...@gm...> wrote: > I have a UserDto that I need to populate with values, before I can send it > to my UserManager. Then my UserManager needs a mock UserDAO service. So > rMock creates my UserDAO, but I need to still create a few different > UserDTO's to test various scenarios inside my UserManager. > > > > > > On 11/14/06, Daniel Brolund <dan...@gm...> wrote: > > Hello Mick! > > I'm not quite sure what you are looking for here. > > Do you want to use RMocks mocking ability? Or are you after > > assertThat(...) ? Or am I totally off...? > > > > A code example/sketch of what you would like to do would probably help > > us a lot to understand your needs and provide you with further help. > > > > Cheers > > Daniel > > > > On 11/13/06, Mick Knutson <mic...@gm...> wrote: > > > I have several business objects that I want to rMock test. They all take > > > various types of DTO's as inputs, then I am creating DAO mocks that will > > > return another DTO back to these BO's. > > > > > > So, I have looked at JTestCase, DDTUnit and Jetif to help create > arbitrary > > > Objects, but DDTUnit needs to extend it's own TestCase, and I can't seem > to > > > get JTestCase with Jice integration to work. > > > > > > S0, can someone please help me solve creating arbitrary Objects from XML > > > descriptors? > > > > > > -- > > > > > > Thanks > > > > > > DJ MICK > > > http://www.djmick.com > > > http://www.myspace.com/mickknutson > > > > ------------------------------------------------------------------------- > > > 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-users mailing list > > > Rmo...@li... > > > > https://lists.sourceforge.net/lists/listinfo/rmock-users > > > > > > > > > > > > > > > -- > > __________________________ > > Dan...@Gm... > > > > > > -- > > > Thanks > > DJ MICK > http://www.djmick.com > http://www.myspace.com/mickknutson -- __________________________ Dan...@Gm... |