I want to learn java coding for specific testcase
--- Update ---
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import com.cengage.qa.assignment.pages.AwardsGivenPage;
import com.cengage.qa.assignment.pages.AwardsRewardedPage ;
import com.cengage.qa.assignment.pages.HomePage;
public class AwardsReceivedPageTest {
protected AwardsRewardedPage awardsRewardedPage;
protected HomePage homePage;
protected AwardsGivenPage awardsGivenPage;
@Before
public void setUp() {
homePage = new HomePage();
awardsRewardedPage = homePage.gotoAwardsReceivedPage();
}
@After
public void tearDown() {
homePage.closeSession();
}
@Test
public void verifyAwardsReceivedPageDisplayed() {
assertThat(awardsRewardedPage.getTitle(),
is("Cengage Learning - Awards"));
}
I am getting a failure, when i run the junit of "verify awards....." testscript. can you please explain me whats the reason