Project

General

Profile

« Previous | Next » 

Revision 19617222

Added by Andreas Müller almost 3 years ago

ref #9638 remove trailing dots from ref caches (cont.)

View differences:

cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/ReferenceServiceImplTest.java
70 70

  
71 71
        service.updateCaches();
72 72

  
73
        assertEquals("Expecting titleCache to be updated", "Species plantarum.", titleCacheField.get(ref1));
73
        assertEquals("Expecting titleCache to be updated", "Species plantarum", titleCacheField.get(ref1));
74 74
        assertEquals("Expecting nameCache to be updated", "Sp. Pl.", abbrevCacheField.get(ref1));
75 75

  
76 76
        assertEquals("Expecting titleCache to be updated", "Reference2", titleCacheField.get(ref2));
77
        assertEquals("Expecting nameCache to not be updated", "ref. 2.", abbrevCacheField.get(ref2));
77
        assertEquals("Expecting nameCache to not be updated", "ref. 2", abbrevCacheField.get(ref2));
78 78

  
79
        assertEquals("Expecting titleCache to be updated", "Reference three.", titleCacheField.get(ref3));
79
        assertEquals("Expecting titleCache to be updated", "Reference three", titleCacheField.get(ref3));
80 80
        assertEquals("Expecting nameCache to be updated", "Protec. ref.", abbrevCacheField.get(ref3));
81 81

  
82 82
        assertEquals("Expecting error message for self-referencing in-refererence", "-- invalid inreference (self-referencing) --", titleCacheField.get(ref4));

Also available in: Unified diff