Revision f1a25720
Added by Katja Luther over 6 years ago
- ID f1a25720755daa96e8838a617a660dfced7b9f31
- Parent 23e50194
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/occurrence/SpecimenTest.java | ||
---|---|---|
17 | 17 |
import static org.junit.Assert.assertSame; |
18 | 18 |
import static org.junit.Assert.assertTrue; |
19 | 19 |
|
20 |
import java.time.ZonedDateTime; |
|
20 | 21 |
import java.util.Calendar; |
21 | 22 |
import java.util.UUID; |
22 | 23 |
|
23 | 24 |
import org.apache.log4j.Logger; |
24 |
import org.joda.time.DateTime; |
|
25 | 25 |
import org.junit.Assert; |
26 | 26 |
import org.junit.Before; |
27 | 27 |
import org.junit.Test; |
... | ... | |
221 | 221 |
String catalogNumber = "catNumber"; |
222 | 222 |
Collection collection = Collection.NewInstance(); |
223 | 223 |
collection.setCode("code"); |
224 |
DateTime created = new DateTime();
|
|
224 |
ZonedDateTime created = ZonedDateTime.now();
|
|
225 | 225 |
Person createdBy = Person.NewTitledInstance("creator"); |
226 | 226 |
DerivationEvent derivedFrom = DerivationEvent.NewInstance(null); |
227 | 227 |
int id = 22; |
Also available in: Unified diff
first implementation for change from joda time to java8 time