ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick <ric...@gmail.com>
Subject Re: Maven and iBatis 3.0 - Excuse me for the stupid question
Date Thu, 27 Aug 2009 18:47:09 GMT
On Thu, Aug 27, 2009 at 3:53 AM, Richard Bibb <richard.bibb@aimhedge.com>wrote:

>
> The problem is, when under test how do I distinguish between the Mappers
> under test and those being used to do the testing? At the moment I only
> seem
> to be able to get things to work if I put all the Mapper.xml files in the
> test sqlmaps directory. Clearly this isn't good.
>
> Can someone offer advice to a maven/iBatis novice?
>


I'm a bit confused. It sounds like you want to run different SQL statements
in test vs your real code? The actual SQL itself is going to change? That
seems a bit odd at first glance to me, since I'd think the idea of the tests
is to make sure that the production Mappers you wrote actually work, so not
sure I'd see a case to have different ones used in test? Maybe you could
elaborate more on it. (Actually you won't even be able to build a Mapper
class of the same name in a test package that has the same structure. You
could have it use a different mapper.xml file, but not the class name.)

Can you explain why you want to use different Mappers in Test from your real
code?

Mime
View raw message