Skip to content

Commit ac488fc

Browse files
committed
Version 1.0.1
1 parent 3b846b1 commit ac488fc

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>de.scriptsdk</groupId>
77
<artifactId>core</artifactId>
8-
<version>1.0.0</version>
8+
<version>1.0.1</version>
99
<name>core</name>
1010

1111
<properties>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package de.scriptsdk.core.model.mapper;
2+
3+
import org.junit.jupiter.api.Assertions;
4+
import org.junit.jupiter.api.Test;
5+
6+
import java.time.LocalDateTime;
7+
8+
class DelphiDateTimeMapperTest {
9+
@Test
10+
void testConverter() {
11+
12+
LocalDateTime now = LocalDateTime.now();
13+
14+
DelphiDateTimeMapper stamp1 = new DelphiDateTimeMapper(now);
15+
16+
Double value = stamp1.getValue();
17+
18+
DelphiDateTimeMapper stamp2 = new DelphiDateTimeMapper(value);
19+
20+
Assertions.assertEquals(stamp1.getDateTime(), stamp2.getDateTime());
21+
Assertions.assertEquals(stamp1.getValue(), stamp2.getValue());
22+
}
23+
}

0 commit comments

Comments
 (0)