Project

General

Profile

Revision 525e9751

ID525e9751bb8bd89e699a638550f5b9976fa52674
Parent 1da03adc
Child 2eb8c59a

Added by Andreas Müller 5 months ago

fix TimePeriodParserTest for UTF-8

View differences:

cdmlib-model/src/test/java/eu/etaxonomy/cdm/strategy/parser/TimePeriodParserTest.java
333 333
        Assert.assertEquals(Integer.valueOf(10), tp.getEndMonth());
334 334
        Assert.assertEquals(Integer.valueOf(14), tp.getEndDay());
335 335

  
336
        strDate = "24 Aug 19571988";
336
        strDate = "24 Aug 1957"+SEP+"1988";
337 337
        tp = TimePeriodParser.parseString(strDate);
338 338
        assertNotNull(tp);
339 339
        Assert.assertEquals(strDate, tp.toString());
......
345 345
        Assert.assertNull(tp.getEndMonth());
346 346
        Assert.assertNull(tp.getEndDay());
347 347

  
348
        strDate = "195714 Oct 1988";
348
        strDate = "1957"+SEP+"14 Oct 1988";
349 349
        tp = TimePeriodParser.parseString(strDate);
350 350
        assertNotNull(tp);
351 351
        Assert.assertEquals("1957"+SEP+"14 Oct 1988", tp.toString());

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)