Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
added code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
prabushi committed May 26, 2016
1 parent 934759c commit e071b58
Showing 1 changed file with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public class AddCustomThemeToDashboardTest extends DSUIIntegrationTest {
*
* @param userMode user mode
*/
@Factory(dataProvider = "userMode") public AddCustomThemeToDashboardTest(TestUserMode userMode) {
@Factory(dataProvider = "userMode")
public AddCustomThemeToDashboardTest(TestUserMode userMode) {
super(userMode);
}

Expand All @@ -49,7 +50,8 @@ public class AddCustomThemeToDashboardTest extends DSUIIntegrationTest {
*
* @return user modes
*/
@DataProvider(name = "userMode") public static Object[][] userModeProvider() {
@DataProvider(name = "userMode")
public static Object[][] userModeProvider() {
return new Object[][] { { TestUserMode.SUPER_TENANT_ADMIN } };
}

Expand All @@ -60,8 +62,8 @@ public class AddCustomThemeToDashboardTest extends DSUIIntegrationTest {
* @throws XPathExpressionException
* @throws InterruptedException
*/
@BeforeClass(alwaysRun = true) public void setUp()
throws MalformedURLException, XPathExpressionException, InterruptedException {
@BeforeClass(alwaysRun = true)
public void setUp() throws MalformedURLException, XPathExpressionException, InterruptedException {
//log in to admin console
loginToAdminConsole(USER_NAME, PASSWORD);

Expand All @@ -85,8 +87,9 @@ public class AddCustomThemeToDashboardTest extends DSUIIntegrationTest {
* @throws MalformedURLException
* @throws InterruptedException
*/
@Test(groups = "wso2.ds.dashboard", description = "Adding a custom theme when creating a dashboard") public void addCustomThemeToDashboard()
throws XPathExpressionException, MalformedURLException, InterruptedException {
@Test(groups = "wso2.ds.dashboard", description = "Adding a custom theme when creating a dashboard")
public void addCustomThemeToDashboard() throws XPathExpressionException, MalformedURLException,
InterruptedException {
//log in to portal
login(getCurrentUsername(), getCurrentPassword());

Expand Down Expand Up @@ -134,8 +137,8 @@ public class AddCustomThemeToDashboardTest extends DSUIIntegrationTest {
* @throws MalformedURLException
* @throws XPathExpressionException
*/
@AfterClass(alwaysRun = true) public void tearDown()
throws MalformedURLException, XPathExpressionException, InterruptedException {
@AfterClass(alwaysRun = true)
public void tearDown() throws MalformedURLException, XPathExpressionException, InterruptedException {

try {
//log out form the portal
Expand Down

0 comments on commit e071b58

Please sign in to comment.