Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [recommenders-dev] Problem with Hamcrest Testing

On 30.10.15 06:03, varun gupta wrote:
> Yeah the problem I was having was in the Eclipse IDE , that is solved ,
> thanks. But now i wanted to know why the test is failing in  Hudson?

Well, Hudson says [1]:

> Error Message
> 
> Expected: iterable containing [<org.eclipse.recommenders.internal.models.rcp.ModelRepositoriesView$KnownCoordinate@a455a512>, <org.eclipse.recommenders.internal.models.rcp.ModelRepositoriesView$KnownCoordinate@700e4381>]
>      but: item 0: was <org.eclipse.recommenders.internal.models.rcp.ModelRepositoriesView$KnownCoordinate@700e4381>
> 
> Stacktrace
> 
> java.lang.AssertionError: 
> Expected: iterable containing [<org.eclipse.recommenders.internal.models.rcp.ModelRepositoriesView$KnownCoordinate@a455a512>, <org.eclipse.recommenders.internal.models.rcp.ModelRepositoriesView$KnownCoordinate@700e4381>]
>      but: item 0: was <org.eclipse.recommenders.internal.models.rcp.ModelRepositoriesView$KnownCoordinate@700e4381>
> 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
> 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
> 	at org.eclipse.recommenders.internal.models.rcp.KnownCoordinateComparatorTest.testForArtifactId(KnownCoordinateComparatorTest.java:68)

If you can't read that page [1], please tell me so I can ask the
webmaster to relax read access on our Hudson.

That being said, does KnownCoordinateComparatorTest run in your Eclipse
IDE or when building with

  mvn clean verify

Best wishes,

Andreas

[1]
<https://hudson.eclipse.org/recommenders/job/org.eclipse.recommenders-gerrit/1330/jdk=jdk-1.7.0-latest,simrel=luna/testReport/org.eclipse.recommenders.internal.models.rcp/KnownCoordinateComparatorTest/testForArtifactId/>


-- 
Codetrails GmbH
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Phone: +49-6151-276-7092
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940


Back to the top