Revision d2cd6047
Added by Andreas Kohlbecker over 6 years ago
src/test/java/eu/etaxonomy/cdm/vaadin/presenter/ConceptRelationshipPresenterTest.java | ||
---|---|---|
16 | 16 |
import org.junit.BeforeClass; |
17 | 17 |
import org.junit.Ignore; |
18 | 18 |
import org.junit.Test; |
19 |
import org.springframework.transaction.TransactionStatus; |
|
20 | 19 |
import org.unitils.dbunit.annotation.DataSet; |
21 | 20 |
|
22 | 21 |
import eu.etaxonomy.cdm.api.application.ICdmRepository; |
... | ... | |
35 | 34 |
* @date 9 Apr 2015 |
36 | 35 |
* |
37 | 36 |
*/ |
38 |
@Ignore |
|
39 |
@DataSet |
|
37 |
@DataSet // (loadStrategy=CleanSweepInsertLoadStrategy.class) // user admin id 5000 is missing in this set!!! |
|
40 | 38 |
public class ConceptRelationshipPresenterTest extends CdmVaadinBaseTest { |
41 | 39 |
|
42 | 40 |
private static final Logger logger = Logger.getLogger(ConceptRelationshipPresenterTest.class); |
... | ... | |
76 | 74 |
|
77 | 75 |
@Test |
78 | 76 |
public void testAbbreviatedNameGeneration() { |
79 |
TransactionStatus tx = app.startTransaction(); |
|
77 |
|
|
78 |
// TransactionStatus tx = app.startTransaction(); |
|
80 | 79 |
UUID nameUuid = UUID.fromString("7ebe3f1f-c383-4611-95da-4ee633a12d3a"); |
81 |
TaxonName name = CdmBase.deproxy(nameService.load(nameUuid)); |
|
80 |
TaxonName name = nameService.load(nameUuid); |
|
81 |
name = CdmBase.deproxy(name); |
|
82 | 82 |
|
83 | 83 |
String abbreviatedName = crTree.getAbbreviatedName(name); |
84 | 84 |
Assert.assertEquals("T. × withverylongspecificepithet subsp.", abbreviatedName); |
85 |
app.commitTransaction(tx); |
|
85 |
// app.commitTransaction(tx);
|
|
86 | 86 |
|
87 | 87 |
} |
88 | 88 |
|
Also available in: Unified diff
fixing two more presenter tests: EditConceptRelationshipPresenterTest, NewTaxonBasePresenterTest