diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-core-lib/openecomp-utilities-lib/src/test/java/org/openecomp/core/utilities/file')
-rw-r--r-- | openecomp-be/lib/openecomp-core-lib/openecomp-utilities-lib/src/test/java/org/openecomp/core/utilities/file/FileContentHandlerTest.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/openecomp-be/lib/openecomp-core-lib/openecomp-utilities-lib/src/test/java/org/openecomp/core/utilities/file/FileContentHandlerTest.java b/openecomp-be/lib/openecomp-core-lib/openecomp-utilities-lib/src/test/java/org/openecomp/core/utilities/file/FileContentHandlerTest.java index be0686ef5a..2210932669 100644 --- a/openecomp-be/lib/openecomp-core-lib/openecomp-utilities-lib/src/test/java/org/openecomp/core/utilities/file/FileContentHandlerTest.java +++ b/openecomp-be/lib/openecomp-core-lib/openecomp-utilities-lib/src/test/java/org/openecomp/core/utilities/file/FileContentHandlerTest.java @@ -1,5 +1,6 @@ package org.openecomp.core.utilities.file; +import org.testng.Assert; import org.testng.annotations.Test; import java.io.IOException; @@ -26,7 +27,8 @@ public class FileContentHandlerTest { final byte[] content = new byte[size]; Arrays.fill(content, (byte) 44); contentHandler.addFile(FILE_NAME, content); - assertEquals(contentHandler.processFileContent(FILE_NAME, optional -> { + + byte[] actualContent = contentHandler.processFileContent(FILE_NAME, optional -> { try { byte[] buffer = new byte[size]; @@ -37,7 +39,8 @@ public class FileContentHandlerTest { throw new RuntimeException("Unexpected error", e); } - }), content); + }); + Assert.assertTrue(Arrays.equals(actualContent, content)); } @Test |