I'm not using signed jar files.
On Jan 22, 3:25 pm, szczepiq <
szcze...@gmail.com> wrote:
> Hey,
>
> Here's my bet: for some reason when you run in maven, the classes appear as
> from signed package. Since the package is signed, mockito cannot generate a
> new class in this package. So, what we do is we generate the class in a
> different package -> the consequence is the generated class cannot access
> mocked type -> BANG!
>
> This is how we do it internally:
>
> if (mockedType.getSigners() != null) {
> enhancer.setNamingPolicy ...
>
> If my assumption is right it cannot be fixed on Mockito side. You've gotta
> publicize your classes! No problem with that -> privacy is evil anyway (go
> open languages!). :)
>
> Cheers!
> Szczepan
>
> On Sat, Jan 22, 2011 at 12:28 AM, Brice Dutheil <
brice.duth...@gmail.com>wrote:
>
> > Hi Dave
>
> > Eclipse bootstrasps the tests differently than maven. If the tests pass in
> > Eclipse, there's something going wrong with the maven environement.
> > I heard there was some problem with a recent update of surefire, which is
> > invoked by maven in the test phase, could you check the version please.
>
> > Oh and other versions as well, such as maven or JUnit versions, it could
> > help narrow the problem.
>
> > --
> > Bryce
>
> >>
mockito+u...@googlegroups.com<
mockito%2Bunsu...@googlegroups.com>
> >> .
> >
mockito+u...@googlegroups.com<
mockito%2Bunsu...@googlegroups.com>
> > .