From 5c5d34c913a2d8451061b44a8ee2fec19354316c Mon Sep 17 00:00:00 2001 From: ayalaben Date: Wed, 3 Jan 2018 08:38:27 +0200 Subject: Unit Tests Change-Id: I39ee00e80475aa93b0f99a350b56754c31c6e9b6 Issue-ID: SDC-860 Signed-off-by: ayalaben --- .../org/openecomp/core/utilities/file/FileContentHandlerTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'openecomp-be/lib/openecomp-core-lib') 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 -- cgit 1.2.3-korg