What about assertThat(result.getX(), is(equalTo("xValue"))? Does that work?
Maybe it's just the hasProperty Matcher.


On Wed, Jan 8, 2014 at 2:31 PM, <[email protected]> wrote:

> On Wednesday, January 8, 2014 1:31:30 AM UTC-4, Marc R. Hoffmann wrote:
> > Hi,
> >
> >
> >
> > you can use Hamcrest Matchers with JaCoCo/EclEmma. There are no known
> >
> > limitations.
> >
> >
> >
> > Best regards,
> >
> > -marc
> >
> >
> >
> > On 07.01.14 22:39, [email protected] wrote:
> >
> > > Good day,
> >
> > >
> >
> > > We are using Hamcrest Matchers in our JUnit tests and this does not
> seem to affect the coverage report.
> >
> > >
> >
> > > Are they supported in any fashion?
> >
> > >
> >
> > > Thank you,
> >
> > >
> >
> > > Troy
> >
> > >
>
> Thanks for the reply,
>
> The unfortunate thing is none of the objects tested with Matchers register
> as covered assertThat(result, hasProperty("x", equalTo("xValue")),
>
> whereas making an assertion does assertEquals("xValue", result.getX())
> does.
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
"I find many of the machines of violence very attractive. Tanks, airplanes,
warships, especially aircraft carriers."
- 14th Dalai Lama

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to