mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-18 20:47:58 +00:00
issue_847: Figured out why tests were failing. CertificatePageControllerTest was trying to find the index of a curly brace inside the TPMSpecifications string but becauses lombok uses parens instead of curly braces for their toStrings, two tests kept failing.
This commit is contained in:
parent
299a8f729a
commit
18efb25d41
@ -466,8 +466,8 @@ public final class CertificateStringMapBuilder {
|
||||
*/
|
||||
private static HashMap<String, String> convertStringToHash(final String str) {
|
||||
HashMap<String, String> map = new HashMap<>();
|
||||
String name = str.substring(0, str.indexOf('{')).trim();
|
||||
String data = str.trim().substring(str.trim().indexOf('{') + 1,
|
||||
String name = str.substring(0, str.indexOf('(')).trim();
|
||||
String data = str.trim().substring(str.trim().indexOf('(') + 1,
|
||||
str.trim().length() - 1);
|
||||
// Separate key and value and parse the key
|
||||
for (String pair : data.split(",")) {
|
||||
|
Loading…
Reference in New Issue
Block a user