-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): fix upgrade to jackson 2.18.2
- Loading branch information
1 parent
3361f43
commit fa4d646
Showing
32 changed files
with
187 additions
and
450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
core/src/test/java/io/streamthoughts/jikkou/core/models/generics/GenericResourceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* Copyright (c) The original authors | ||
* | ||
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
package io.streamthoughts.jikkou.core.models.generics; | ||
|
||
import com.fasterxml.jackson.core.JsonProcessingException; | ||
import io.streamthoughts.jikkou.core.io.Jackson; | ||
import io.streamthoughts.jikkou.core.models.ObjectMeta; | ||
import java.util.Map; | ||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
|
||
class GenericResourceTest { | ||
|
||
@Test | ||
void shouldDeserializeAnyValue() throws JsonProcessingException { | ||
// Given | ||
String yaml = """ | ||
apiVersion: io.jikkou/v1 | ||
kind: Test | ||
metadata: | ||
name: "test" | ||
spec: | ||
field1: value1 | ||
field2: value2 | ||
"""; | ||
|
||
// When | ||
GenericResource deserialized = Jackson.YAML_OBJECT_MAPPER.readValue(yaml, GenericResource.class); | ||
|
||
// Then | ||
GenericResource expected = new GenericResource( | ||
"io.jikkou/v1", | ||
"Test", | ||
ObjectMeta | ||
.builder() | ||
.withName("test") | ||
.build(), | ||
null, | ||
Map.of("spec", Map.of("field1", "value1", "field2", "value2")) | ||
); | ||
|
||
Assertions.assertEquals(expected, deserialized); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
core/src/test/java/io/streamthoughts/jikkou/core/reconciler/DefaultChangeResultTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.