Skip to content

Commit

Permalink
refactor: reorganize test package structure and update imports (#7040)
Browse files Browse the repository at this point in the history
  • Loading branch information
pethers authored Jan 17, 2025
1 parent b07ba6d commit c0ceb9c
Show file tree
Hide file tree
Showing 28 changed files with 100 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.hack23.cia.systemintegrationtest.suites.TestConstants;
import com.hack23.cia.systemintegrationtest.ui.UserPageVisit;
import com.hack23.cia.systemintegrationtest.ui.WebDriverFactory;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.admin;

import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.openqa.selenium.WebElement;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.systemintegrationtest.suites.TestConstants;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.AdminViews;

Expand All @@ -15,7 +17,7 @@
public final class AdminAgentTest extends AbstractUITest {


@Test(timeout = DEFAULT_TIMEOUT, expected = Exception.class)
@Test(timeout = TestConstants.DEFAULT_TIMEOUT, expected = Exception.class)
public void shouldStartImportOperations() throws Exception {
try {
retryOnFailure(() -> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.admin;

import org.junit.Assert;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.systemintegrationtest.suites.TestConstants;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.AdminViews;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.admin;

import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.systemintegrationtest.suites.TestConstants;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.AdminViews;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.admin;

import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.systemintegrationtest.suites.TestConstants;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.AdminViews;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.admin;

import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;

@Category(IntegrationTest.class)
public class AdminMonitoringTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
* $Id$
* $HeadURL$
*/
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.admin;

import static com.hack23.cia.systemintegrationtest.TestConstants.DEFAULT_MAX_RETRIES;
import static com.hack23.cia.systemintegrationtest.suites.TestConstants.DEFAULT_MAX_RETRIES;

import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.openqa.selenium.WebElement;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.systemintegrationtest.suites.TestConstants;

// import com.hack23.cia.systemintegrationtest.TestConstants; // Unused import removed
// import com.hack23.cia.web.impl.ui.application.action.ViewAction; // Unused import removed
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.admin;

import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.openqa.selenium.WebElement;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.systemintegrationtest.suites.TestConstants;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.AdminViews;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.openqa.selenium.WebElement;
import com.hack23.cia.systemintegrationtest.TestConstants;


import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.systemintegrationtest.suites.TestConstants;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.AdminViews;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
import org.junit.runner.RunWith;
import org.junit.runners.Suite;

import com.hack23.cia.systemintegrationtest.AdminAgentTest;
import com.hack23.cia.systemintegrationtest.AdminConfigurationTest;
import com.hack23.cia.systemintegrationtest.AdminDataTest;
import com.hack23.cia.systemintegrationtest.AdminEmailTest;
import com.hack23.cia.systemintegrationtest.AdminUserManagementTest;
import com.hack23.cia.systemintegrationtest.AuthorizationTest;
import com.hack23.cia.systemintegrationtest.BallotViewTest;
import com.hack23.cia.systemintegrationtest.CommitteeViewTest;
import com.hack23.cia.systemintegrationtest.MinistryViewTest;
import com.hack23.cia.systemintegrationtest.PartyViewTest;
import com.hack23.cia.systemintegrationtest.PoliticianViewTest;
import com.hack23.cia.systemintegrationtest.SearchViewTest;
import com.hack23.cia.systemintegrationtest.SessionManagementTest;
import com.hack23.cia.systemintegrationtest.UserAuthenticationTest;
import com.hack23.cia.systemintegrationtest.UserNavigationTest;
import com.hack23.cia.systemintegrationtest.ViewPageTest;
import com.hack23.cia.systemintegrationtest.ViewRankingTest;
import com.hack23.cia.systemintegrationtest.admin.AdminAgentTest;
import com.hack23.cia.systemintegrationtest.admin.AdminConfigurationTest;
import com.hack23.cia.systemintegrationtest.admin.AdminDataTest;
import com.hack23.cia.systemintegrationtest.admin.AdminEmailTest;
import com.hack23.cia.systemintegrationtest.admin.AdminUserManagementTest;
import com.hack23.cia.systemintegrationtest.admin.SessionManagementTest;
import com.hack23.cia.systemintegrationtest.user.AuthorizationTest;
import com.hack23.cia.systemintegrationtest.user.BallotViewTest;
import com.hack23.cia.systemintegrationtest.user.CommitteeViewTest;
import com.hack23.cia.systemintegrationtest.user.MinistryViewTest;
import com.hack23.cia.systemintegrationtest.user.PartyViewTest;
import com.hack23.cia.systemintegrationtest.user.PoliticianViewTest;
import com.hack23.cia.systemintegrationtest.user.SearchViewTest;
import com.hack23.cia.systemintegrationtest.user.UserAuthenticationTest;
import com.hack23.cia.systemintegrationtest.user.UserNavigationTest;
import com.hack23.cia.systemintegrationtest.user.ViewPageTest;
import com.hack23.cia.systemintegrationtest.user.ViewRankingTest;

@RunWith(Suite.class)
@Suite.SuiteClasses({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.suites;

import java.time.Duration;
import java.util.UUID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
import org.slf4j.LoggerFactory;

import com.hack23.cia.systemintegrationtest.CitizenIntelligenceAgencyServer;
import com.hack23.cia.systemintegrationtest.TestConstants;
import com.hack23.cia.systemintegrationtest.suites.TestConstants;
import com.hack23.cia.web.impl.ui.application.action.ViewAction;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.ApplicationPageMode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.user;

import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.systemintegrationtest.suites.TestConstants;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.AdminViews;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.CommonsViews;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.user;

import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* $Id$
* $HeadURL$
*/
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.user;

import java.util.Map;
import java.util.Map.Entry;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.user;

import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.user;

import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package com.hack23.cia.systemintegrationtest.user;

import static com.hack23.cia.systemintegrationtest.TestConstants.DEFAULT_MAX_RETRIES;
import static com.hack23.cia.systemintegrationtest.suites.TestConstants.DEFAULT_MAX_RETRIES;

import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.systemintegrationtest.suites.TestConstants;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PartyPageMode;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.user;

import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package com.hack23.cia.systemintegrationtest.user;

import static com.hack23.cia.systemintegrationtest.suites.TestConstants.DEFAULT_MAX_RETRIES;

import org.junit.Test;
import org.junit.experimental.categories.Category;
import static com.hack23.cia.systemintegrationtest.TestConstants.DEFAULT_MAX_RETRIES;

import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.systemintegrationtest.suites.TestConstants;
import com.hack23.cia.systemintegrationtest.ui.UserPageVisit;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.ApplicationPageMode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.user;

import java.util.List;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.experimental.categories.Category;

import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.systemintegrationtest.suites.TestConstants;
import com.hack23.cia.web.impl.ui.application.action.ViewAction;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
* $Id$
* $HeadURL$
*/
package com.hack23.cia.systemintegrationtest;
package com.hack23.cia.systemintegrationtest.user;

import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.systemintegrationtest.suites.TestConstants;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserHomePageMode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.hack23.cia.systemintegrationtest;

import static com.hack23.cia.systemintegrationtest.TestConstants.DEFAULT_MAX_RETRIES;
package com.hack23.cia.systemintegrationtest.user;

import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

import com.hack23.cia.systemintegrationtest.suites.IntegrationTest;
import com.hack23.cia.systemintegrationtest.AbstractUITest;
import com.hack23.cia.systemintegrationtest.categories.IntegrationTest;
import com.hack23.cia.systemintegrationtest.suites.TestConstants;
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode;
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PoliticianPageMode;
Expand Down
Loading

0 comments on commit c0ceb9c

Please sign in to comment.