Search in sources :

Example 1 with ViewCclaPage

use of io.pivotal.cla.webdriver.pages.ViewCclaPage in project pivotal-cla by pivotalsoftware.

the class CclaControllerTests method view.

@Test
@WithAnonymousUser
public void view() {
    when(mockClaRepository.findByNameAndPrimaryTrue(cla.getName())).thenReturn(cla);
    ViewCclaPage signPage = ViewCclaPage.go(getDriver(), cla.getName());
    assertThat(signPage.getCorporate()).isEqualTo(cla.getCorporateContent().getHtml());
}
Also used : ViewCclaPage(io.pivotal.cla.webdriver.pages.ViewCclaPage) WithAnonymousUser(org.springframework.security.test.context.support.WithAnonymousUser) Test(org.junit.Test)

Aggregations

ViewCclaPage (io.pivotal.cla.webdriver.pages.ViewCclaPage)1 Test (org.junit.Test)1 WithAnonymousUser (org.springframework.security.test.context.support.WithAnonymousUser)1