Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit a405626

Browse files
FAB-4454 Increase junit coverage for helper/Utils
. Added units tests to cover all methods . Moved UtilsTest into the helper dir where it belongs . Removed some assert statements in Utils.java Change-Id: Ieab4ccd725534e64ee789c69a8ebc38b30cb3d84 Signed-off-by: Chris Murphy <chrism@fast.au.fujitsu.com>
1 parent 13337b6 commit a405626

File tree

3 files changed

+397
-74
lines changed

3 files changed

+397
-74
lines changed

src/main/java/org/hyperledger/fabric/sdk/helper/Utils.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ public static byte[] generateNonce() {
369369

370370

371371
public static String toHexString(ByteString byteString) {
372-
assert (byteString != null);
373372
if (byteString == null) {
374373
return null;
375374
}
@@ -379,7 +378,6 @@ public static String toHexString(ByteString byteString) {
379378
}
380379

381380
public static String toHexString(byte[] bytes) {
382-
assert (bytes != null);
383381
if (bytes == null) {
384382
return null;
385383
}

src/test/java/org/hyperledger/fabric/sdk/UtilsTest.java

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)