diff --git a/core/test-extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBeanTest.java b/core/test-extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBeanTest.java index dedb18a71cc75e..ddb88de43866aa 100644 --- a/core/test-extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBeanTest.java +++ b/core/test-extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBeanTest.java @@ -274,7 +274,7 @@ public void testConversionUsingConvertWith() { Assertions.assertFalse(configuredBean.getRunTimeConfig().objectBoolean); Assertions.assertEquals(2, configuredBean.getRunTimeConfig().primitiveInteger); Assertions.assertEquals(9, configuredBean.getRunTimeConfig().objectInteger); - List oneToNine = IntStream.range(1, 10).mapToObj(Integer::new).collect(Collectors.toList()); + List oneToNine = IntStream.range(1, 10).mapToObj(Integer::valueOf).collect(Collectors.toList()); Assertions.assertEquals(oneToNine, configuredBean.getRunTimeConfig().oneToNine); List mapValues = new ArrayList<>(Arrays.asList(1, 2)); List actualMapValues = new ArrayList<>(configuredBean.getRunTimeConfig().mapOfNumbers.values());