Revision 379eb203
Added by Andreas Müller over 3 years ago
cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/excel/taxa/NormalExplicitImportTest.java | ||
---|---|---|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.cdm.io.excel.taxa; |
11 | 10 |
|
12 | 11 |
import static org.junit.Assert.assertEquals; |
... | ... | |
62 | 61 |
* @since 26.08.2009 |
63 | 62 |
*/ |
64 | 63 |
public class NormalExplicitImportTest extends CdmTransactionalIntegrationTest{ |
65 |
@SuppressWarnings("unused") |
|
64 |
|
|
65 |
@SuppressWarnings("unused") |
|
66 | 66 |
private static final Logger logger = Logger.getLogger(NormalExplicitImportTest.class); |
67 | 67 |
|
68 | 68 |
@SpringBeanByName |
... | ... | |
172 | 172 |
} |
173 | 173 |
} |
174 | 174 |
Assert.assertEquals("Number of common names should be 2", 2, commonNames.size()); |
175 |
Set<String> commonNameStrings = new HashSet<String>();
|
|
175 |
Set<String> commonNameStrings = new HashSet<>(); |
|
176 | 176 |
commonNameStrings.add(commonNames.get(0).getName()); |
177 | 177 |
commonNameStrings.add(commonNames.get(1).getName()); |
178 | 178 |
Assert.assertTrue("Common names must include Yellow Underwing", commonNameStrings.contains("Large Sunshine Underwing")); |
... | ... | |
233 | 233 |
} |
234 | 234 |
} |
235 | 235 |
Assert.assertEquals("Number of common names should be 2", 2, commonNames.size()); |
236 |
Set<String> commonNameStrings = new HashSet<String>();
|
|
236 |
Set<String> commonNameStrings = new HashSet<>(); |
|
237 | 237 |
commonNameStrings.add(commonNames.get(0).getName()); |
238 | 238 |
commonNameStrings.add(commonNames.get(1).getName()); |
239 | 239 |
Assert.assertTrue("Common names must include Yellow Underwing", commonNameStrings.contains("Large Sunshine Underwing")); |
Also available in: Unified diff
cleanup