Skip to content

Commit

Permalink
issue_847: Figured out why tests were failing. CertificatePageControl…
Browse files Browse the repository at this point in the history
…lerTest 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.
  • Loading branch information
ThatSilentCoder committed Oct 29, 2024
1 parent 299a8f7 commit 18efb25
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ public int compare(final PlatformCredential obj1,
*/
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(",")) {
Expand Down

0 comments on commit 18efb25

Please sign in to comment.