Project

General

Profile

Revision f710aa8b

IDf710aa8b64b4205b4107cbfe0c133be0bbb9c856
Parent 3f6d782a
Child 86459d9e

Added by Andreas Müller 12 months ago

ref #7644 handle continued in getYear()

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/TimePeriod.java
408 408
                result += String.valueOf(getEndYear());
409 409
            }
410 410
        }
411
        if (isContinued()){
412
            result += "+";
413
        }
411 414
        return result;
412 415
    }
413 416

  
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/common/TimePeriodTest.java
305 305
		Assert.assertEquals("Year should be 1999", "1999", tp.getYear());
306 306
		tp.setEndYear(2002);
307 307
		Assert.assertEquals("Year should be 1999-2002", "1999-2002", tp.getYear());
308
		tp.setContinued(true);
309
		Assert.assertEquals("Year should be 1999+", "1999+", tp.getYear());
308 310
	}
309 311

  
310 312

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)