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:
TheSilentCoder 2024-10-29 13:49:40 -04:00
parent 299a8f729a
commit 18efb25d41

View File

@ -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(",")) {