File tree 5 files changed +26
-9
lines changed
test/kotlin/earth/adi/typeid/jackson
5 files changed +26
-9
lines changed Original file line number Diff line number Diff line change 1
1
# typeid-kotlin
2
2
![ Build Status] ( https://github.com/aleris/typeid-kotlin/actions/workflows/build-on-push.yml/badge.svg )
3
- ![ Current Version] ( https://img.shields.io/badge/Version-1.0.0 -blue )
3
+ ![ Current Version] ( https://img.shields.io/badge/Version-1.0.1 -blue )
4
4
5
5
6
6
## A Kotlin implementation of [ TypeID] ( https://github.com/jetpack-io/typeid ) .
@@ -25,14 +25,14 @@ To use with Maven:
25
25
<dependency >
26
26
<groupId >earth.adi</groupId >
27
27
<artifactId >typeid-kotlin</artifactId >
28
- <version >1.0.0 </version >
28
+ <version >1.0.1 </version >
29
29
</dependency >
30
30
```
31
31
32
32
To use via Gradle:
33
33
34
34
``` kotlin
35
- implementation(" earth.adi:typeid-kotlin:1.0.0 " )
35
+ implementation(" earth.adi:typeid-kotlin:1.0.1 " )
36
36
```
37
37
38
38
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ plugins {
15
15
16
16
group = " earth.adi"
17
17
18
- version = " 1.0.0 "
18
+ version = " 1.0.1 "
19
19
20
20
repositories { mavenCentral() }
21
21
Original file line number Diff line number Diff line change 1
1
[versions ]
2
2
kotlin = " 1.9.24"
3
3
spotless = " 6.25.0"
4
- javaUuidGenerator = " 5.0 .0"
5
- jackson = " 2.17.0 "
6
- junit = " 5.10.2 "
7
- assertj = " 3.25 .3"
4
+ javaUuidGenerator = " 5.1 .0"
5
+ jackson = " 2.18.2 "
6
+ junit = " 5.11.3 "
7
+ assertj = " 3.26 .3"
8
8
jmh = " 0.7.2"
9
9
jqwik = " 1.8.4"
10
- jreleaser = " 1.12 .0"
10
+ jreleaser = " 1.15 .0"
11
11
dokka = " 1.9.20"
12
12
kotlinxSerialization = " 1.6.3"
13
13
Original file line number Diff line number Diff line change 6
6
requires com .fasterxml .jackson .databind ;
7
7
requires kotlin .stdlib ;
8
8
requires kotlinx .serialization .core ;
9
+ requires java .compiler ;
9
10
10
11
exports earth .adi .typeid ;
11
12
}
Original file line number Diff line number Diff line change
1
+ package earth.adi.typeid.jackson
2
+
3
+ import org.assertj.core.api.Assertions.assertThatCode
4
+ import org.junit.jupiter.api.Test
5
+
6
+ class IdJsonSerializerTest {
7
+ @Test
8
+ fun `constructor with null does not throw` () {
9
+ assertThatCode { IdJsonSerializer (null ) }.doesNotThrowAnyException()
10
+ }
11
+
12
+ @Test
13
+ fun `constructor with default does not throw` () {
14
+ assertThatCode { IdJsonSerializer () }.doesNotThrowAnyException()
15
+ }
16
+ }
You can’t perform that action at this time.
0 commit comments