From 5ff1db0999520986b90be718be749808b67d1167 Mon Sep 17 00:00:00 2001 From: Laird Nelson Date: Tue, 11 Apr 2023 11:32:26 -0700 Subject: [PATCH] Reenables JerseyPropertiesTest.java in microprofile/server Signed-off-by: Laird Nelson --- .../microprofile/server/JerseyPropertiesTest.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/microprofile/server/src/test/java/io/helidon/microprofile/server/JerseyPropertiesTest.java b/microprofile/server/src/test/java/io/helidon/microprofile/server/JerseyPropertiesTest.java index 963b49a78d2..cbcca4a1edc 100644 --- a/microprofile/server/src/test/java/io/helidon/microprofile/server/JerseyPropertiesTest.java +++ b/microprofile/server/src/test/java/io/helidon/microprofile/server/JerseyPropertiesTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021, 2022 Oracle and/or its affiliates. + * Copyright (c) 2021, 2023 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ package io.helidon.microprofile.server; import io.helidon.microprofile.config.ConfigCdiExtension; +import io.helidon.microprofile.tests.junit5.AddConfig; import io.helidon.microprofile.tests.junit5.AddExtension; import io.helidon.microprofile.tests.junit5.DisableDiscovery; import io.helidon.microprofile.tests.junit5.HelidonTest; @@ -41,13 +42,11 @@ @AddExtension(JaxRsCdiExtension.class) @AddExtension(CdiComponentProvider.class) @AddExtension(ConfigCdiExtension.class) -@Disabled +@AddConfig(key = IGNORE_EXCEPTION_RESPONSE, value = "false") class JerseyPropertiesTest { @Test void testIgnoreExceptionResponseOverride() { - JaxRsService jerseySupport = JaxRsService.create(new ResourceConfig().property(IGNORE_EXCEPTION_RESPONSE, "false"), - null); - assertNotNull(jerseySupport); + assertNotNull(JaxRsService.create(new ResourceConfig(), null)); assertThat(System.getProperty(IGNORE_EXCEPTION_RESPONSE), is("false")); } }