Search in sources :

Example 11 with Publication

use of uk.nhs.digital.ps.test.acceptance.models.Publication in project hippo by NHS-digital-website.

the class CmsSteps method whenICreateANewPublication.

@When("^I create a fully populated publication$")
public void whenICreateANewPublication() throws Throwable {
    final Publication publication = TestDataFactory.createFullyPopulatedPublication().build();
    testDataRepo.setPublication(publication);
    assertThat("New publication created.", contentPage.newPublication(publication), is(true));
}
Also used : Publication(uk.nhs.digital.ps.test.acceptance.models.Publication) When(cucumber.api.java.en.When)

Aggregations

Publication (uk.nhs.digital.ps.test.acceptance.models.Publication)11 Given (cucumber.api.java.en.Given)5 Then (cucumber.api.java.en.Then)3 When (cucumber.api.java.en.When)2 After (cucumber.api.java.After)1 LocalDateTime (java.time.LocalDateTime)1 ChronoUnit (java.time.temporal.ChronoUnit)1 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)1 Matcher (org.hamcrest.Matcher)1 Dataset (uk.nhs.digital.ps.test.acceptance.models.Dataset)1 PublicationArchive (uk.nhs.digital.ps.test.acceptance.models.PublicationArchive)1 PublicationSeries (uk.nhs.digital.ps.test.acceptance.models.PublicationSeries)1 SectionWidget (uk.nhs.digital.ps.test.acceptance.pages.widgets.SectionWidget)1