assertThat(pageSpec.getSections().get(0).getObjects().get(2).getSpecs().get(0).getOriginalText(), is("above: menu-item-7"));
}
@Test
public void shouldAllowTo_mixConditionalStatements_withParameterizations() throws IOException {
PageSpecReader specReader = new PageSpecReader(new Properties(), null);
PageSpec pageSpec = specReader.read(getClass().getResource("/specs/mix-conditions-with-parameterizations.spec").getFile());
ConditionalBlock conditionalBlock = pageSpec.getSections().get(0).getConditionalBlocks().get(0);
assertThat(conditionalBlock.getBodyObjects().size(), is(3));
assertThat(conditionalBlock.getBodyObjects().get(0).getObjectName(), is("banner-1"));
assertThat(conditionalBlock.getBodyObjects().get(1).getObjectName(), is("banner-2"));
assertThat(conditionalBlock.getBodyObjects().get(2).getObjectName(), is("banner-3"));