File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
main/java/com/baeldung/gson/entities
test/java/com/baeldung/gson Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 13
13
14
14
<properties >
15
15
<gson-version >2.12.1</gson-version >
16
+ <junit-version >4.13.1</junit-version >
16
17
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
17
18
</properties >
18
19
<dependencies >
19
20
<dependency >
20
21
<groupId >junit</groupId >
21
22
<artifactId >junit</artifactId >
22
- <version >4.13.1 </version >
23
+ <version >${junit-version} </version >
23
24
<scope >test</scope >
24
25
</dependency >
25
26
<dependency >
Original file line number Diff line number Diff line change
1
+ package com .baeldung .gson .entities ;
2
+
1
3
import com .google .gson .annotations .Expose ;
2
4
import com .google .gson .annotations .SerializedName ;
3
5
Original file line number Diff line number Diff line change
1
+ package com .baeldung .gson ;
2
+
1
3
import static org .junit .jupiter .api .Assertions .assertEquals ;
2
4
import static org .junit .jupiter .api .Assertions .assertNull ;
3
5
4
6
import org .junit .jupiter .api .Test ;
5
7
8
+ import com .baeldung .gson .entities .User ;
6
9
import com .google .gson .Gson ;
7
10
import com .google .gson .GsonBuilder ;
8
11
You can’t perform that action at this time.
0 commit comments