This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch support/nifi-1.x
in repository https://gitbox.apache.org/repos/asf/nifi.git

commit cb76a62a141972aa5fa46fa8bd925a17e12f541a
Author: exceptionfactory <[email protected]>
AuthorDate: Mon Jun 26 11:09:39 2023 -0500

    NIFI-3065 Corrected TestStandardLoggingContext for Java 8
    
    Signed-off-by: David Handermann <[email protected]>
---
 .../java/org/apache/nifi/logging/TestStandardLoggingContext.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/test/java/org/apache/nifi/logging/TestStandardLoggingContext.java
 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/test/java/org/apache/nifi/logging/TestStandardLoggingContext.java
index a6ff4a4dd3..1b8f441154 100644
--- 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/test/java/org/apache/nifi/logging/TestStandardLoggingContext.java
+++ 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/test/java/org/apache/nifi/logging/TestStandardLoggingContext.java
@@ -23,7 +23,7 @@ import org.mockito.Mock;
 import org.mockito.junit.jupiter.MockitoExtension;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.mockito.Mockito.when;
 
 @ExtendWith(MockitoExtension.class)
@@ -40,7 +40,7 @@ class TestStandardLoggingContext {
     void testNullComponent_ShouldReturnOptionalEmpty() {
         LoggingContext context = new StandardLoggingContext(null);
 
-        assertTrue(context.getLogFileSuffix().isEmpty());
+        assertFalse(context.getLogFileSuffix().isPresent());
     }
 
     @Test
@@ -52,7 +52,7 @@ class TestStandardLoggingContext {
         when(processGroup.isRootGroup()).thenReturn(Boolean.FALSE, 
Boolean.TRUE);
         when(processGroup.getParent()).thenReturn(processGroup);
 
-        assertTrue(context.getLogFileSuffix().isEmpty());
+        assertFalse(context.getLogFileSuffix().isPresent());
     }
 
     @Test

Reply via email to