mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-19 21:17:59 +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) {
|
private static HashMap<String, String> convertStringToHash(final String str) {
|
||||||
HashMap<String, String> map = new HashMap<>();
|
HashMap<String, String> map = new HashMap<>();
|
||||||
String name = str.substring(0, str.indexOf('{')).trim();
|
String name = str.substring(0, str.indexOf('(')).trim();
|
||||||
String data = str.trim().substring(str.trim().indexOf('{') + 1,
|
String data = str.trim().substring(str.trim().indexOf('(') + 1,
|
||||||
str.trim().length() - 1);
|
str.trim().length() - 1);
|
||||||
// Separate key and value and parse the key
|
// Separate key and value and parse the key
|
||||||
for (String pair : data.split(",")) {
|
for (String pair : data.split(",")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user