Skip to content

Commit

Permalink
FAB-4454 Increase junit coverage for helper/Utils
Browse files Browse the repository at this point in the history
. 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>
  • Loading branch information
chrism28282828 committed Jun 8, 2017
1 parent 13337b6 commit a405626
Show file tree
Hide file tree
Showing 3 changed files with 397 additions and 74 deletions.
2 changes: 0 additions & 2 deletions src/main/java/org/hyperledger/fabric/sdk/helper/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ public static byte[] generateNonce() {


public static String toHexString(ByteString byteString) {
assert (byteString != null);
if (byteString == null) {
return null;
}
Expand All @@ -379,7 +378,6 @@ public static String toHexString(ByteString byteString) {
}

public static String toHexString(byte[] bytes) {
assert (bytes != null);
if (bytes == null) {
return null;
}
Expand Down
72 changes: 0 additions & 72 deletions src/test/java/org/hyperledger/fabric/sdk/UtilsTest.java

This file was deleted.

Loading

0 comments on commit a405626

Please sign in to comment.