Skip to content

Commit 2f984c5

Browse files
Tests: ignore broken contains_stringObjectMap due to API changes #1099
The native query API for flex map properties has changed and expects integers to no longer be passed as strings.
1 parent 308210d commit 2f984c5

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

tests/objectbox-java-test/src/test/java/io/objectbox/query/FlexQueryTest.java

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,36 @@
1+
/*
2+
* Copyright 2025 ObjectBox Ltd. All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.objectbox.query;
218

3-
import io.objectbox.TestEntity;
4-
import io.objectbox.TestEntity_;
19+
import org.junit.Ignore;
520
import org.junit.Test;
621

7-
import javax.annotation.Nullable;
822
import java.util.ArrayList;
923
import java.util.Arrays;
1024
import java.util.HashMap;
1125
import java.util.List;
1226
import java.util.Map;
1327

28+
import javax.annotation.Nullable;
29+
30+
import io.objectbox.TestEntity;
31+
import io.objectbox.TestEntity_;
32+
33+
1434
import static org.junit.Assert.assertEquals;
1535
import static org.junit.Assert.assertNotNull;
1636
import static org.junit.Assert.assertNull;
@@ -103,6 +123,7 @@ private TestEntity createFlexMapEntity(String s, boolean b, long l, float f, dou
103123
return entity;
104124
}
105125

126+
@Ignore("Broken due to flex map query API changes, see objectbox#1099")
106127
@Test
107128
public void contains_stringObjectMap() {
108129
// Note: map keys and values can not be null, so no need to test. See FlexMapConverterTest.

0 commit comments

Comments
 (0)