@@ -25,7 +25,7 @@ public void defaultServerAddress() throws Exception {
25
25
@ Test
26
26
public void serderDocs1 () throws IOException {
27
27
final ObjectMapper mapper = new ObjectMapper ();
28
- final JavaType type = mapper .getTypeFactory ().uncheckedSimpleType (AuthConfig .class );
28
+ final JavaType type = mapper .getTypeFactory ().constructType (AuthConfig .class );
29
29
30
30
final AuthConfig authConfig = testRoundTrip (RemoteApiVersion .VERSION_1_22 ,
31
31
"/other/AuthConfig/docs1.json" ,
@@ -47,7 +47,7 @@ public void serderDocs1() throws IOException {
47
47
@ Test
48
48
public void serderDocs2 () throws IOException {
49
49
final ObjectMapper mapper = new ObjectMapper ();
50
- final JavaType type = mapper .getTypeFactory ().uncheckedSimpleType (AuthConfig .class );
50
+ final JavaType type = mapper .getTypeFactory ().constructType (AuthConfig .class );
51
51
52
52
final AuthConfig authConfig = testRoundTrip (RemoteApiVersion .VERSION_1_22 ,
53
53
"/other/AuthConfig/docs2.json" ,
@@ -66,7 +66,7 @@ public void serderDocs2() throws IOException {
66
66
@ Test
67
67
public void compatibleWithIdentitytoken () throws IOException {
68
68
final ObjectMapper mapper = new ObjectMapper ();
69
- final JavaType type = mapper .getTypeFactory ().uncheckedSimpleType (AuthConfig .class );
69
+ final JavaType type = mapper .getTypeFactory ().constructType (AuthConfig .class );
70
70
final AuthConfig authConfig = testRoundTrip (RemoteApiVersion .VERSION_1_23 ,
71
71
"/other/AuthConfig/docs1.json" ,
72
72
type
@@ -83,7 +83,7 @@ public void compatibleWithIdentitytoken() throws IOException {
83
83
@ Test
84
84
public void shouldNotFailWithStackOrchestratorInConfig () throws IOException {
85
85
final ObjectMapper mapper = new ObjectMapper ();
86
- final JavaType type = mapper .getTypeFactory ().uncheckedSimpleType (AuthConfig .class );
86
+ final JavaType type = mapper .getTypeFactory ().constructType (AuthConfig .class );
87
87
final AuthConfig authConfig = testRoundTrip (RemoteApiVersion .VERSION_1_25 ,
88
88
"/other/AuthConfig/orchestrators.json" ,
89
89
type
0 commit comments