| .. | .. |
|---|
| 61 | 61 | public void validateHW(RequestBean reqBean, String appCode, String customerCode, String packCode) throws SeCurisException { |
|---|
| 62 | 62 | RequestBean currentHW = ReqGenerator.getInstance().createRequest(appCode, customerCode, packCode); |
|---|
| 63 | 63 | if (!currentHW.match(reqBean)) { |
|---|
| 64 | | - throw new SeCurisException("Current System info mismatch the License System info:\n Licensed: " + JsonUtils.toJSON(reqBean, true) |
|---|
| 65 | | - + "\n Expected: " + JsonUtils.toJSON(currentHW, true)); |
|---|
| 64 | + throw new SeCurisException("Current System info mismatch the License System info:\n Licensed: \n" + JsonUtils.toPrettyJSON(reqBean) |
|---|
| 65 | + + "\n Expected: \n" + JsonUtils.toPrettyJSON(currentHW)); |
|---|
| 66 | 66 | } |
|---|
| 67 | 67 | } |
|---|
| 68 | 68 | |
|---|