Revision 7d08e9ac
Added by Andreas Müller over 2 years ago
cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/facade/DerivedUnitFacadeCacheStrategyInjectionTest.java | ||
---|---|---|
184 | 184 |
|
185 | 185 |
@Test |
186 | 186 |
public void testGetSpecimenTitleCache() { |
187 |
// String correctCache = "Germany, Berlin-Dahlem, E side of Englerallee, alt. 40 m, 10\u00B034'1.2\"N, 12\u00B018'E (WGS84), sand dunes, 3.5.2005, Kilian 5678, A. Muller & Kohlbecker; Greuter, Pl. Dahlem. 456 (B 8909756); flowers blue.";
|
|
188 |
String correctCache = "Germany, Berlin-Dahlem, E side of Englerallee, alt. 40 m, 10\u00B034'1.2\"N, 12\u00B018'E (WGS84), 3 May 2005, Kilian 5678, A. Muller & Kohlbecker; Greuter, Pl. Dahlem. 456 (B: 8909756).";
|
|
187 |
// String correctCache = "Germany, Berlin-Dahlem, E side of Englerallee, alt. 40 m, 10\u00B034'1.2\"N, 12\u00B018'E (WGS84), sand dunes, 3.5.2005, Kilian 5678, A. Muller & Kohlbecker; Greuter, Pl. Dahlem. 456 (B: 8909756); flowers blue";
|
|
188 |
String correctCache = "Germany, Berlin-Dahlem, E side of Englerallee, alt. 40 m, 10\u00B034'1.2\"N, 12\u00B018'E (WGS84), 3 May 2005, Kilian 5678, A. Muller & Kohlbecker; Greuter, Pl. Dahlem. 456 (B: 8909756)"; |
|
189 | 189 |
|
190 | 190 |
// DescriptionElementBase ecologyItem = TextData.NewInstance(Feature.ECOLOGY(), ecology, Language.DEFAULT(), null); |
191 | 191 |
// SpecimenDescription fieldUnitDescription = SpecimenDescription.NewInstance(fieldUnit); |
... | ... | |
225 | 225 |
Assert.assertTrue("Specimen should be proxy otherwise the test does not test what it should", specimen instanceof HibernateProxy); |
226 | 226 |
DerivedUnit myUnit = CdmBase.deproxy(specimen, DerivedUnit.class); |
227 | 227 |
myUnit.setTitleCache(null, false); |
228 |
String expectedDerivedUnitCache = "Berlin-Dahlem, E side of Englerallee, alt. 40 m, 10°34'1.2\"N, 12°18'E, 3 May 2005, Kilian 5678, A. Muller & Kohlbecker; Greuter, Pl. Dahlem. 456 (8909756).";
|
|
228 |
String expectedDerivedUnitCache = "Berlin-Dahlem, E side of Englerallee, alt. 40 m, 10\u00B034'1.2\"N, 12\u00B018'E, 3 May 2005, Kilian 5678, A. Muller & Kohlbecker; Greuter, Pl. Dahlem. 456 (8909756)";
|
|
229 | 229 |
Assert.assertEquals(expectedDerivedUnitCache, myUnit.getTitleCache()); |
230 | 230 |
} |
231 | 231 |
|
Also available in: Unified diff
ref #9849 remove trailing dot from DerivedUnitDefaultCacheStrategy