From 30240fc45b100fb4788caa8ef751cec3173115ad Mon Sep 17 00:00:00 2001 From: "Nuno M. Santos" Date: Mon, 14 Mar 2022 03:32:11 +0000 Subject: [PATCH] Fix failing test Relates to issue #4734 and pull request #4745 --- .../main/java/org/glassfish/jersey/logging/LoggingFeature.java | 3 +-- .../glassfish/jersey/tests/e2e/common/LoggingFeatureTest.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeature.java b/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeature.java index e6ed421d5f..7ef1068a34 100644 --- a/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeature.java +++ b/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeature.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2021 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -222,7 +222,6 @@ public LoggingFeature(Logger logger, Level level, Verbosity verbosity, Integer m .level(level) .verbosity(verbosity) .maxEntitySize(maxEntitySize) - .separator(DEFAULT_SEPARATOR) ); } diff --git a/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/common/LoggingFeatureTest.java b/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/common/LoggingFeatureTest.java index 4eefcb5c73..8e5feb5713 100644 --- a/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/common/LoggingFeatureTest.java +++ b/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/common/LoggingFeatureTest.java @@ -266,7 +266,7 @@ public void testLoggingFeatureBuilderSeparator() { } - @Test(expected = AssertionError.class) + @Test public void testLoggingFeatureBuilderProperty() { final Response response = target("/text") .register(LoggingFeature.class)