From 25c476a09b0a177e676ed1d0c51f0c11b1dccd94 Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Sun, 11 Jun 2017 06:58:45 +0200 Subject: [PATCH] Delete SeleniumPageObjectTest.java (#2039) --- .../junit/SeleniumPageObjectTest.java | 50 ------------------- 1 file changed, 50 deletions(-) delete mode 100644 selenium-junit-testng/src/test/java/com/baeldung/selenium/junit/SeleniumPageObjectTest.java diff --git a/selenium-junit-testng/src/test/java/com/baeldung/selenium/junit/SeleniumPageObjectTest.java b/selenium-junit-testng/src/test/java/com/baeldung/selenium/junit/SeleniumPageObjectTest.java deleted file mode 100644 index f47110f86e..0000000000 --- a/selenium-junit-testng/src/test/java/com/baeldung/selenium/junit/SeleniumPageObjectTest.java +++ /dev/null @@ -1,50 +0,0 @@ -package test.java.com.baeldung.selenium.junit; - -import main.java.com.baeldung.selenium.config.SeleniumConfig; -import main.java.com.baeldung.selenium.models.BaeldungAbout; -import main.java.com.baeldung.selenium.pages.BaeldungHomePage; -import main.java.com.baeldung.selenium.pages.StartHerePage; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import static org.hamcrest.MatcherAssert.assertThat; -import static org.hamcrest.Matchers.is; - -public class SeleniumPageObjectTest { - - private SeleniumConfig config; - private BaeldungHomePage homePage; - private BaeldungAbout about; - - @Before - public void setUp() { - config = new SeleniumConfig(); - homePage = new BaeldungHomePage(config); - about = new BaeldungAbout(config); - } - - @After - public void teardown() { - config.close(); - } - - @Test - public void givenHomePage_whenNavigate_thenTitleMatch() { - homePage.navigate(); - assertThat(homePage.getPageTitle(), is("Baeldung")); - } - - @Test - public void givenHomePage_whenNavigate_thenShouldBeInStartHere() { - homePage.navigate(); - StartHerePage startHerePage = homePage.clickOnStartHere(); - assertThat(startHerePage.getPageTitle(), is("Start Here")); - } - - @Test - public void givenAboutPage_whenNavigate_thenTitleMatch() { - about.navigateTo(); - assertThat(about.getPageTitle(), is("About Baeldung")); - } -}