|
19 | 19 |
|
20 | 20 | import java.io.File;
|
21 | 21 | import java.net.URISyntaxException;
|
22 |
| -import java.util.ArrayList; |
23 |
| -import java.util.Calendar; |
24 |
| -import java.util.GregorianCalendar; |
25 |
| -import java.util.List; |
26 | 22 |
|
27 | 23 | import org.springframework.beans.factory.annotation.Value;
|
28 | 24 |
|
|
45 | 41 | */
|
46 | 42 | public class WhenAdminAddSeries extends WhenAnyUserAtAnyPageWithForm<AddSeriesPage> {
|
47 | 43 |
|
48 |
| - private static final int SINCE_YEAR = 1840; |
49 |
| - private static final int CURRENT_YEAR = new GregorianCalendar().get(Calendar.YEAR); |
50 |
| - |
51 |
| - private static final List<String> EXPECTED_YEARS = |
52 |
| - new ArrayList<>(CURRENT_YEAR - SINCE_YEAR + 1); |
53 |
| - |
54 | 44 | private static final String SAMPLE_IMAGE_NAME = "test.png";
|
55 | 45 | private static final String SAMPLE_IMAGE_PATH;
|
56 | 46 |
|
57 | 47 | static {
|
58 |
| - EXPECTED_YEARS.add("Year"); |
59 |
| - // years in reverse order |
60 |
| - for (int i = CURRENT_YEAR; i >= SINCE_YEAR; i--) { |
61 |
| - EXPECTED_YEARS.add(String.valueOf(i)); |
62 |
| - } |
63 |
| - |
64 | 48 | try {
|
65 | 49 | SAMPLE_IMAGE_PATH = new File(
|
66 | 50 | WhenAdminAddSeries.class.getClassLoader().getResource(SAMPLE_IMAGE_NAME).toURI()
|
@@ -116,13 +100,6 @@ public void shouldHaveStandardStructure() {
|
116 | 100 | checkStandardStructure();
|
117 | 101 | }
|
118 | 102 |
|
119 |
| - @Test(groups = "misc", dependsOnGroups = "std") |
120 |
| - public void issueYearFieldShouldHaveOptionsForRangeFrom1840ToCurrentYear() { |
121 |
| - page.showDateOfRelease(); |
122 |
| - |
123 |
| - assertThat(page.getYearFieldValues()).isEqualTo(EXPECTED_YEARS); |
124 |
| - } |
125 |
| - |
126 | 103 | @Test(groups = "misc", dependsOnGroups = "std")
|
127 | 104 | public void catalogNumbersShouldBeStripedFromSpaces() {
|
128 | 105 | page.showCatalogNumbers();
|
|
0 commit comments