Revision 8d24eb30
Added by Andreas Müller almost 3 years ago
cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/DescriptionServiceImplTest.java | ||
---|---|---|
77 | 77 |
langString.setText("blablubber"); |
78 | 78 |
} |
79 | 79 |
} |
80 |
|
|
81 | 80 |
} |
82 | 81 |
service.saveOrUpdate(descBase); |
83 | 82 |
Pager<DescriptionElementBase> allElements = service.getDescriptionElements(null, null, null, null, null, null); |
... | ... | |
95 | 94 |
} |
96 | 95 |
} |
97 | 96 |
|
98 |
|
|
99 | 97 |
@Test |
100 | 98 |
public void testMoveDescriptionElement(){ |
101 | 99 |
//Create data |
... | ... | |
111 | 109 |
service.saveOrUpdate(desc2); |
112 | 110 |
commitAndStartNewTransaction(null); |
113 | 111 |
|
114 |
|
|
115 | 112 |
DescriptionBase<?> descLoaded1 = service.find(desc1.getUuid()); |
116 | 113 |
DescriptionBase<?> descLoaded2 = service.find(desc2.getUuid()); |
117 | 114 |
|
... | ... | |
125 | 122 |
} catch (Exception e) { |
126 | 123 |
Assert.fail("Moving description element should not throw an exception. Exception is " + e.getMessage()); |
127 | 124 |
} |
128 |
|
|
129 |
|
|
130 | 125 |
} |
131 | 126 |
|
132 | 127 |
@Test |
Also available in: Unified diff
cleanup