Examples of RepeatPage


Examples of com.google.sitebricks.acceptance.page.RepeatPage

@Test(suiteName = AcceptanceTest.SUITE)
public class RepeatAcceptanceTest {

  public void shouldRepeatItemsFromCollection() {
    WebDriver driver = AcceptanceTest.createWebDriver();
    RepeatPage page = RepeatPage.open(driver);

    List<String> expectedNames = Arrays.asList(
        "0: Dhanji (last? false)",
        "1: Josh (last? false)",
        "2: Jody (last? false)",
        "3: Iron Man (last? true)");
    List<String> expectedMovies =
        Arrays.asList("Dhanji Josh Jody Iron Man",
            "Dhanji Josh Jody Iron Man",
            "Dhanji Josh Jody Iron Man");

    List<String> actualNames = page.getRepeatedNames();
    List<String> actualMovies = page.getRepeatedMovies();

    assert CollectionUtils.isEqualCollection(expectedNames, actualNames)
        : "repeated names didn't match what was expected";
    assert CollectionUtils.isEqualCollection(expectedMovies, actualMovies)
        : "repeated movies didn't match what was expected";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.