| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -68,7 +68,7 @@ public void roundTrip_full() throws IOException { | |||
| 68 | 68 | public void roundTrip_full_healthcheck() throws IOException { | |
| 69 | 69 | ||
| 70 | 70 | final ObjectMapper mapper = new ObjectMapper(); | |
| 71 | - final JavaType type = mapper.getTypeFactory().uncheckedSimpleType(InspectContainerResponse.class); | ||
| 71 | + final JavaType type = mapper.getTypeFactory().constructType(InspectContainerResponse.class); | ||
| 72 | 72 | ||
| 73 | 73 | final InspectContainerResponse response = testRoundTrip(RemoteApiVersion.VERSION_1_24, | |
| 74 | 74 | "/containers/inspect/1.json", | |
@@ -139,7 +139,7 @@ public void roundTrip_empty() throws IOException { | |||
| 139 | 139 | public void inspect_windows_container() throws IOException { | |
| 140 | 140 | ||
| 141 | 141 | final ObjectMapper mapper = new ObjectMapper(); | |
| 142 | - final JavaType type = mapper.getTypeFactory().uncheckedSimpleType(InspectContainerResponse.class); | ||
| 142 | + final JavaType type = mapper.getTypeFactory().constructType(InspectContainerResponse.class); | ||
| 143 | 143 | ||
| 144 | 144 | final InspectContainerResponse response = testRoundTrip(RemoteApiVersion.VERSION_1_38, | |
| 145 | 145 | "/containers/inspect/lcow.json", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ public class InspectExecResponseTest { | |||
| 21 | 21 | @Test | |
| 22 | 22 | public void test_1_22_SerDer1() throws Exception { | |
| 23 | 23 | final ObjectMapper mapper = new ObjectMapper(); | |
| 24 | - final JavaType type = mapper.getTypeFactory().uncheckedSimpleType(InspectExecResponse.class); | ||
| 24 | + final JavaType type = mapper.getTypeFactory().constructType(InspectExecResponse.class); | ||
| 25 | 25 | ||
| 26 | 26 | final InspectExecResponse execResponse = testRoundTrip(RemoteApiVersion.VERSION_1_22, | |
| 27 | 27 | "/exec/ID/1.json", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -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 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,7 +24,7 @@ public class EventsTest { | |||
| 24 | 24 | @Test | |
| 25 | 25 | public void serderDocs1() throws IOException { | |
| 26 | 26 | final ObjectMapper mapper = new ObjectMapper(); | |
| 27 | - final JavaType type = mapper.getTypeFactory().uncheckedSimpleType(Event.class); | ||
| 27 | + final JavaType type = mapper.getTypeFactory().constructType(Event.class); | ||
| 28 | 28 | ||
| 29 | 29 | final Event event = testRoundTrip(RemoteApiVersion.VERSION_1_24, | |
| 30 | 30 | "/events/docs1.json", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,7 +23,7 @@ public class StatisticsTest { | |||
| 23 | 23 | @Test | |
| 24 | 24 | public void serderJson1() throws IOException { | |
| 25 | 25 | final ObjectMapper mapper = new ObjectMapper(); | |
| 26 | - final JavaType type = mapper.getTypeFactory().uncheckedSimpleType(Statistics.class); | ||
| 26 | + final JavaType type = mapper.getTypeFactory().constructType(Statistics.class); | ||
| 27 | 27 | ||
| 28 | 28 | final Statistics statistics = testRoundTrip(RemoteApiVersion.VERSION_1_27, | |
| 29 | 29 | "containers/container/stats/stats1.json", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -84,7 +84,7 @@ public void updateContainer() throws DockerException, IOException { | |||
| 84 | 84 | @Test | |
| 85 | 85 | public void serDerDocs1() throws IOException { | |
| 86 | 86 | final ObjectMapper mapper = new ObjectMapper(); | |
| 87 | - final JavaType type = mapper.getTypeFactory().uncheckedSimpleType(UpdateContainerCmdImpl.class); | ||
| 87 | + final JavaType type = mapper.getTypeFactory().constructType(UpdateContainerCmdImpl.class); | ||
| 88 | 88 | ||
| 89 | 89 | final UpdateContainerCmdImpl upd = testRoundTrip(VERSION_1_22, | |
| 90 | 90 | "/containers/container/update/docs.json", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments