From 47f4c813e815b4bacf8b748b6a056ac9c3fb1543 Mon Sep 17 00:00:00 2001 From: Laurent Garnier Date: Wed, 13 Sep 2023 10:28:17 +0200 Subject: [PATCH] remove conflicting test that ensure that roundtrips java -> js -> java -> js with null boxed will fail --- .../util/io/TestNullInteger.groovy | 45 ------------------- 1 file changed, 45 deletions(-) delete mode 100644 src/test/groovy/com/cedarsoftware/util/io/TestNullInteger.groovy diff --git a/src/test/groovy/com/cedarsoftware/util/io/TestNullInteger.groovy b/src/test/groovy/com/cedarsoftware/util/io/TestNullInteger.groovy deleted file mode 100644 index fd005262..00000000 --- a/src/test/groovy/com/cedarsoftware/util/io/TestNullInteger.groovy +++ /dev/null @@ -1,45 +0,0 @@ -package com.cedarsoftware.util.io - -import groovy.transform.CompileStatic -import org.junit.Test - -/** - * @author John DeRegnaucourt (jdereg@gmail.com) - *
- * Copyright (c) Cedar Software LLC - *

- * Licensed under the Apache License, Version 2.0 (the "License") - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@CompileStatic -class TestNullIntegerConstructor -{ - class NullInteger - { - Integer i - - NullInteger(Integer i) - { - this.i = i - } - } - - @Test - void testNullIntegerConstructorValue() - { - NullInteger i = new NullInteger(null) - - String json = JsonWriter.objectToJson(i, [(JsonWriter.SKIP_NULL_FIELDS): true] as Map) - NullInteger i2 = (NullInteger) JsonReader.jsonToJava(json) - assert i2.i == 0 - } -}