Fix bug where paramsAreBad doesn't update string 73/25473/1
authorTemoc Rodriguez <cr056n@att.com>
Mon, 4 Dec 2017 19:39:54 +0000 (11:39 -0800)
committerTemoc Rodriguez <cr056n@att.com>
Mon, 4 Dec 2017 19:43:32 +0000 (11:43 -0800)
commitd0099f039b0dbf8f14ec2d273290a7c8ff58cb1c
tree516b0b00d0656314b795439694b391084c639c3e
parent4cd4924f682afe455db9a6416b7513fb9eafbfe0
Fix bug where paramsAreBad doesn't update string

Replaced the string parameter with a StringBuilder so that the modified
version can be accessed outside the method, since strings are immutable.
Added null check for properties. Removed trim on properties in case the
property is null. Added junit to test that the modified StringBuilder can
be read outside the paramsAreBad method.

Issue-ID: POLICY-492
Change-Id: I0550e9d639cbbcc876e6aafb84f6e9a363b653ff
Signed-off-by: Temoc Rodriguez <cr056n@att.com>
integrity-audit/src/main/java/org/onap/policy/common/ia/DbDAO.java
integrity-audit/src/main/java/org/onap/policy/common/ia/IntegrityAudit.java
integrity-audit/src/test/java/org/onap/policy/common/ia/test/IntegrityAuditTest.java [new file with mode: 0644]