File tree Expand file tree Collapse file tree
policies/model/src/test/java/org/eclipse/ditto/policies/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515import static org .assertj .core .api .Assertions .assertThat ;
1616import static org .assertj .core .api .Assertions .assertThatExceptionOfType ;
1717
18- import java .util .List ;
18+ import java .util .Collections ;
1919
2020import org .eclipse .ditto .json .JsonFactory ;
2121import org .eclipse .ditto .json .JsonObject ;
@@ -119,7 +119,7 @@ public void fromJsonWithEmptyTargetsArraySucceeds() {
119119 @ Test
120120 public void roundTripJsonSerialization () {
121121 final ImportsAlias original = ImmutableImportsAlias .of (LABEL ,
122- List . of (ImmutableImportsAliasTarget .of (IMPORTED_POLICY_ID , ENTRY_LABEL )));
122+ Collections . singletonList (ImmutableImportsAliasTarget .of (IMPORTED_POLICY_ID , ENTRY_LABEL )));
123123
124124 final JsonObject json = original .toJson ();
125125 final ImportsAlias deserialized = ImmutableImportsAlias .fromJson (LABEL , json );
You can’t perform that action at this time.
0 commit comments