Project

General

Profile

Revision 43df12f2

ID43df12f2286521c2341c4f6e5e55018ead4cb729
Parent bb791004
Child fc64e713

Added by Andreas Müller about 8 years ago

try to fix test failing on midnight

View differences:

cdmlib-model/src/test/java/eu/etaxonomy/cdm/strategy/cache/name/BotanicNameCacheStrategyTest.java
108 108
		citationRef.setVolume("1");
109 109
		citationRef.setEdition("ed. 8");
110 110
		GregorianCalendar testDate = new GregorianCalendar();
111
		testDate.set(1768, 3, 2);
111
		testDate.set(1968, 3, 2);
112 112
		
113 113
		TimePeriod period = TimePeriod.NewInstance(testDate);
114 114
		
......
188 188
	public final void testGetFullTitleCache() {
189 189
		assertNull("Full title cache of null object should return null", strategy.getFullTitleCache(null));
190 190
		//NOTE: Unclear if the date part should contain the full date or only the year. Undefined Behaviour.
191
		assertEquals("Abies alba app phrase, Gard. Dict., ed. 8, 1. 2.4.1768, nom. illeg.", strategy.getFullTitleCache(speciesName));
191
		assertEquals("Abies alba app phrase, Gard. Dict., ed. 8, 1. 2.4.1968, nom. illeg.", strategy.getFullTitleCache(speciesName));
192 192
		
193 193
//		assertNull(subSpeciesNameString, strategy.getFullTitleCache(null));
194 194
//		assertEquals("Abies alba app phrase L. Gard. Dict. ed. 8, 1. 1768, nom. illeg.", strategy.getFullTitleCache(speciesName));

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)