rsanchez
2015-08-10 29d222da06d3ec281b605ce1d7fccf558d29110b
src/main/java/net/curisit/securis/LicenseManager.java
....@@ -221,12 +221,16 @@
221221 }
222222
223223 public static void main(String[] args) throws SeCurisException {
224
- String filename = "/Users/rob/.doxr/config_server.lic";
224
+ String filename = "/Users/rob/.doxr/doxr.lic";
225225
226226 if (filename == null)
227227 filename = "./license.req";
228228 File file = new File(filename);
229229 LicenseManager.getInstance().validateLicense(file);
230
+ LOG.info("Validation Ok");
231
+ String r = "{\"licenseTypeCode\":\"DX01\",\"packCode\":\"DEVDX01\",\"arch\":\"x86_64\",\"osName\":\"darwin\",\"customerCode\":\"CIT\",\"macAddresses\":[\"60:c5:47:03:cf:c8\",\"b2:00:12:b6:88:e0\"]}";
232
+ RequestBean rb = JsonUtils.json2object(r, RequestBean.class);
233
+ System.out.println(rb);
230234 LOG.info("Request file {} generated OK", file.getAbsolutePath());
231235
232236 }