Skip to content

Commit 29f594f

Browse files
committed
WhenAnyUserAtAnyPage(checkStandardStructure): remove empty method.
No functional changes.
1 parent 8c93965 commit 29f594f

10 files changed

+27
-70
lines changed

src/test/java/ru/mystamps/web/tests/cases/WhenAdminAtIndexPage.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,45 +52,40 @@ public void tearDown() {
5252
page.logout();
5353
}
5454

55-
@Test(groups = "std")
56-
public void shouldHaveStandardStructure() {
57-
checkStandardStructure();
58-
}
59-
60-
@Test(groups = "misc", dependsOnGroups = "std")
55+
@Test(groups = "misc")
6156
public void shouldExistsWelcomeText() {
6257
assertThat(page.textPresent(tr("t_you_may"))).isTrue();
6358
}
6459

65-
@Test(groups = "misc", dependsOnGroups = "std")
60+
@Test(groups = "misc")
6661
public void shouldExistsLinkForAddingSeries() {
6762
assertThat(page.linkWithLabelExists(tr("t_add_series")))
6863
.overridingErrorMessage("should exists link to page for adding series of stamps")
6964
.isTrue();
7065
}
7166

72-
@Test(groups = "misc", dependsOnGroups = "std")
67+
@Test(groups = "misc")
7368
public void shouldExistsLinkForAddingCountries() {
7469
assertThat(page.linkWithLabelExists(tr("t_add_country")))
7570
.overridingErrorMessage("should exists link to page for adding countries")
7671
.isTrue();
7772
}
7873

79-
@Test(groups = "misc", dependsOnGroups = "std")
74+
@Test(groups = "misc")
8075
public void shouldExistsLinkForListingCountries() {
8176
assertThat(page.linkWithLabelExists(tr("t_show_countries_list")))
8277
.overridingErrorMessage("should exists link to page for listing countries")
8378
.isTrue();
8479
}
8580

86-
@Test(groups = "misc", dependsOnGroups = "std")
81+
@Test(groups = "misc")
8782
public void shouldExistsLinkForAddingCategories() {
8883
assertThat(page.linkWithLabelExists(tr("t_create_category")))
8984
.overridingErrorMessage("should exists link to page for adding categories")
9085
.isTrue();
9186
}
9287

93-
@Test(groups = "misc", dependsOnGroups = "std")
88+
@Test(groups = "misc")
9489
public void shouldExistsLinkForListingCategories() {
9590
assertThat(page.linkWithLabelExists(tr("t_show_categories_list")))
9691
.overridingErrorMessage("should exists link to page for listing categories")

src/test/java/ru/mystamps/web/tests/cases/WhenAnonymousUserAtForbiddenPage.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,12 @@ public void setUp() {
4040
page.open(Url.FORBIDDEN_PAGE);
4141
}
4242

43-
@Test(groups = "std")
44-
public void shouldHaveStandardStructure() {
45-
checkStandardStructure();
46-
}
47-
48-
@Test(groups = "misc", dependsOnGroups = "std")
43+
@Test(groups = "misc")
4944
public void shouldExistsErrorMessage() {
5045
assertThat(page.getErrorMessage()).isEqualTo(tr("t_403_description"));
5146
}
5247

53-
@Test(groups = "misc", dependsOnGroups = "std")
48+
@Test(groups = "misc")
5449
public void shouldExistsErrorCode() {
5550
assertThat(page.getErrorCode()).isEqualTo("403");
5651
}

src/test/java/ru/mystamps/web/tests/cases/WhenAnonymousUserAtIndexPage.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,45 +37,40 @@ public void setUp() {
3737
page.open();
3838
}
3939

40-
@Test(groups = "std")
41-
public void shouldHaveStandardStructure() {
42-
checkStandardStructure();
43-
}
44-
45-
@Test(groups = "misc", dependsOnGroups = "std")
40+
@Test(groups = "misc")
4641
public void shouldExistsWelcomeText() {
4742
assertThat(page.textPresent(tr("t_you_may"))).isTrue();
4843
}
4944

50-
@Test(groups = "misc", dependsOnGroups = "std")
45+
@Test(groups = "misc")
5146
public void shouldExistsLinkForListingCategories() {
5247
assertThat(page.linkWithLabelExists(tr("t_show_categories_list")))
5348
.overridingErrorMessage("should exists link to page for listing categories")
5449
.isTrue();
5550
}
5651

57-
@Test(groups = "misc", dependsOnGroups = "std")
52+
@Test(groups = "misc")
5853
public void shouldExistsLinkForListingCountries() {
5954
assertThat(page.linkWithLabelExists(tr("t_show_countries_list")))
6055
.overridingErrorMessage("should exists link to page for listing countries")
6156
.isTrue();
6257
}
6358

64-
@Test(groups = "misc", dependsOnGroups = "std")
59+
@Test(groups = "misc")
6560
public void linkForAddingSeriesShouldBeAbsent() {
6661
assertThat(page.linkWithLabelExists(tr("t_add_series")))
6762
.overridingErrorMessage("should absent link to page for adding series of stamps")
6863
.isFalse();
6964
}
7065

71-
@Test(groups = "misc", dependsOnGroups = "std")
66+
@Test(groups = "misc")
7267
public void linkForAddingCategoriesShouldBeAbsent() {
7368
assertThat(page.linkWithLabelExists(tr("t_create_category")))
7469
.overridingErrorMessage("should absent link to page for adding categories")
7570
.isFalse();
7671
}
7772

78-
@Test(groups = "misc", dependsOnGroups = "std")
73+
@Test(groups = "misc")
7974
public void linkForAddingCountriesShouldBeAbsent() {
8075
assertThat(page.linkWithLabelExists(tr("t_add_country")))
8176
.overridingErrorMessage("should absent link to page for adding countries")

src/test/java/ru/mystamps/web/tests/cases/WhenAnonymousUserOpenNotExistingCollectionPage.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ public void shouldShow404Page() {
3838
String url = Url.INFO_COLLECTION_PAGE.replace("{slug}", "collection-404-error-test");
3939
page.open(url);
4040

41-
checkStandardStructure();
42-
4341
assertThat(page.getErrorMessage()).isEqualTo(tr("t_404_description", "\n"));
4442
assertThat(page.getErrorCode()).isEqualTo("404");
4543
}

src/test/java/ru/mystamps/web/tests/cases/WhenAnonymousUserOpenNotExistingPage.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,17 @@ public void setUp() {
3737
page.open();
3838
}
3939

40-
@Test(groups = "std")
41-
public void shouldHaveStandardStructure() {
42-
checkStandardStructure();
43-
}
44-
45-
@Test(groups = "misc", dependsOnGroups = "std")
40+
@Test(groups = "misc")
4641
public void shouldExistsErrorMessage() {
4742
assertThat(page.getErrorMessage()).isEqualTo(tr("t_404_description", "\n"));
4843
}
4944

50-
@Test(groups = "misc", dependsOnGroups = "std")
45+
@Test(groups = "misc")
5146
public void shouldExistsErrorCode() {
5247
assertThat(page.getErrorCode()).isEqualTo("404");
5348
}
5449

55-
@Test(groups = "logic", dependsOnGroups = "std", enabled = false)
50+
@Test(groups = "logic", enabled = false)
5651
public void incidentShouldBeLoggedToDatabase() {
5752
// TODO: check suspicious_activities table (#99)
5853
}

src/test/java/ru/mystamps/web/tests/cases/WhenAnonymousUserOpenTogglzConsole.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,12 @@ public void setUp() {
3838
page.open(Url.TOGGLZ_CONSOLE_PAGE);
3939
}
4040

41-
@Test(groups = "std")
42-
public void shouldHaveStandardStructure() {
43-
checkStandardStructure();
44-
}
45-
46-
@Test(groups = "misc", dependsOnGroups = "std")
41+
@Test(groups = "misc")
4742
public void shouldExistsErrorMessage() {
4843
assertThat(page.getErrorMessage()).isEqualTo(tr("t_403_description"));
4944
}
5045

51-
@Test(groups = "misc", dependsOnGroups = "std")
46+
@Test(groups = "misc")
5247
public void shouldExistsErrorCode() {
5348
assertThat(page.getErrorCode()).isEqualTo("403");
5449
}

src/test/java/ru/mystamps/web/tests/cases/WhenAnyUserAtAnyPage.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,4 @@ abstract class WhenAnyUserAtAnyPage<T extends AbstractPage>
4444
page = PageFactory.initElements(WebDriverFactory.getDriver(), pageClass);
4545
}
4646

47-
protected void checkStandardStructure() {
48-
}
49-
5047
}

src/test/java/ru/mystamps/web/tests/cases/WhenAnyUserAtAnyPageWithForm.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ abstract class WhenAnyUserAtAnyPageWithForm<T extends AbstractPageWithForm>
3535
super(pageClass);
3636
}
3737

38-
@Override
3938
protected void checkStandardStructure() {
40-
super.checkStandardStructure();
41-
4239
shouldHaveForm();
4340
shouldHaveFields();
4441
shouldHaveLabels();

src/test/java/ru/mystamps/web/tests/cases/WhenUserAtIndexPage.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,45 +52,40 @@ public void tearDown() {
5252
page.logout();
5353
}
5454

55-
@Test(groups = "std")
56-
public void shouldHaveStandardStructure() {
57-
checkStandardStructure();
58-
}
59-
60-
@Test(groups = "misc", dependsOnGroups = "std")
55+
@Test(groups = "misc")
6156
public void shouldExistsWelcomeText() {
6257
assertThat(page.textPresent(tr("t_you_may"))).isTrue();
6358
}
6459

65-
@Test(groups = "misc", dependsOnGroups = "std")
60+
@Test(groups = "misc")
6661
public void shouldExistsLinkForAddingSeries() {
6762
assertThat(page.linkWithLabelExists(tr("t_add_series")))
6863
.overridingErrorMessage("should exists link to page for adding series of stamps")
6964
.isTrue();
7065
}
7166

72-
@Test(groups = "misc", dependsOnGroups = "std")
67+
@Test(groups = "misc")
7368
public void shouldExistLinkForAddingCategories() {
7469
assertThat(page.linkWithLabelExists(tr("t_create_category")))
7570
.overridingErrorMessage("should exist link to page for adding categories")
7671
.isTrue();
7772
}
7873

79-
@Test(groups = "misc", dependsOnGroups = "std")
74+
@Test(groups = "misc")
8075
public void shouldExistsLinkForListingCategories() {
8176
assertThat(page.linkWithLabelExists(tr("t_show_categories_list")))
8277
.overridingErrorMessage("should exists link to page for listing categories")
8378
.isTrue();
8479
}
8580

86-
@Test(groups = "misc", dependsOnGroups = "std")
81+
@Test(groups = "misc")
8782
public void shouldExistLinkForAddingCountries() {
8883
assertThat(page.linkWithLabelExists(tr("t_add_country")))
8984
.overridingErrorMessage("should exist link to page for adding countries")
9085
.isTrue();
9186
}
9287

93-
@Test(groups = "misc", dependsOnGroups = "std")
88+
@Test(groups = "misc")
9489
public void shouldExistsLinkForListingCountries() {
9590
assertThat(page.linkWithLabelExists(tr("t_show_countries_list")))
9691
.overridingErrorMessage("should exists link to page for listing countries")

src/test/java/ru/mystamps/web/tests/cases/WhenUserOpenTogglzConsole.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,12 @@ public void tearDown() {
5353
page.logout();
5454
}
5555

56-
@Test(groups = "std")
57-
public void shouldHaveStandardStructure() {
58-
checkStandardStructure();
59-
}
60-
61-
@Test(groups = "misc", dependsOnGroups = "std")
56+
@Test(groups = "misc")
6257
public void shouldExistsErrorMessage() {
6358
assertThat(page.getErrorMessage()).isEqualTo(tr("t_403_description"));
6459
}
6560

66-
@Test(groups = "misc", dependsOnGroups = "std")
61+
@Test(groups = "misc")
6762
public void shouldExistsErrorCode() {
6863
assertThat(page.getErrorCode()).isEqualTo("403");
6964
}

0 commit comments

Comments
 (0)