I am trying to use the hamcrest assertThat() for my tests and getting errror.
public void shouldProcessMutualFundNavGivenNavList() throws IOException {
//given
MarketService marketService = new MarketService();
marketService.setMutualFundNav(mutualFundNav);
//when
ArrayList<String[]> navList = marketService.retrieveLatestNavList();
//then
assertThat(navList, is(notNullValue()));
}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:testCompile (default-testCompile) on project ManageMyMoney-web: Compilation
failure: Compilation failure:
[ERROR] \xyz\workspaces\ManageMyMoney\web\src\test\java\com\mmm\service\Mark
etServiceIntegrationTest.java:[8,26] cannot find symbol
[ERROR] symbol : class MatcherAssert
[ERROR] location: package org.hamcrest
[ERROR] \xyz\workspaces\ManageMyMoney\web\src\test\java\com\mmm\service\Mark
etServiceIntegrationTest.java:[8,0] static import only from classes and interfac
es
[ERROR] \xyz\workspaces\ManageMyMoney\web\src\test\java\com\mmm\service\Mark
etServiceIntegrationTest.java:[37,8] cannot find symbol
[ERROR] symbol : method assertThat(java.util.ArrayList<java.lang.String[]>,org.
hamcrest.Matcher<java.lang.Object>)
[ERROR] location: class com.mmm.service.MarketServiceIntegrationTest