Migrate to JUnit5

This commit is contained in:
Artur Mogozov
2017-12-31 16:29:48 +09:00
parent a20e54d0a7
commit 6694d742a3
408 changed files with 2656 additions and 2165 deletions

View File

@ -22,14 +22,13 @@
*/
package com.iluwatar.pageobject;
import static org.junit.Assert.assertTrue;
import com.gargoylesoftware.htmlunit.WebClient;
import com.iluwatar.pageobject.pages.AlbumListPage;
import com.iluwatar.pageobject.pages.AlbumPage;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test Album Selection and Album Listing
@ -38,7 +37,7 @@ public class AlbumListPageTest {
private AlbumListPage albumListPage = new AlbumListPage(new WebClient());
@Before
@BeforeEach
public void setUp() {
albumListPage.navigateToPage();
}

View File

@ -22,13 +22,13 @@
*/
package com.iluwatar.pageobject;
import static org.junit.Assert.assertTrue;
import com.gargoylesoftware.htmlunit.WebClient;
import com.iluwatar.pageobject.pages.AlbumListPage;
import com.iluwatar.pageobject.pages.AlbumPage;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test Album Page Operations
@ -37,7 +37,7 @@ public class AlbumPageTest {
private AlbumPage albumPage = new AlbumPage(new WebClient());
@Before
@BeforeEach
public void setUp() {
albumPage.navigateToPage();
}

View File

@ -22,13 +22,13 @@
*/
package com.iluwatar.pageobject;
import static org.junit.Assert.assertTrue;
import com.gargoylesoftware.htmlunit.WebClient;
import com.iluwatar.pageobject.pages.AlbumListPage;
import com.iluwatar.pageobject.pages.LoginPage;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test Login Page Object
@ -37,7 +37,7 @@ public class LoginPageTest {
private LoginPage loginPage = new LoginPage(new WebClient());
@Before
@BeforeEach
public void setUp() {
loginPage.navigateToPage();
}