TlvAssertionParser { public Tags parse(String base64OfRegResponse) throws IOException { ByteInputStream bytes = new ByteInputStream( Base64.decodeBase64(base64OfRegResponse)); boolean isReg = false; return parse(bytes, isReg); }  Tags parse(String base64OfRegResponse); Tags parse(ByteInputStream bytes, boolean isReg);  }
@Test public void parserForAuthAssertion() throws IOException { String raw = null; Tags list = null; raw = TestAssertions.getExampleAuthAssertions(); list = p.parse(raw); assertNotNull(list); assertTrue(list.getTags().size() > 0); assertTrue(list.getTags().get(TagsEnum.UAF_CMD_STATUS_ERR_UNKNOWN.id) == null); logger.info(list.toString()); }
@Test public void parserForAuthAssertionFromClient() throws IOException { String raw = null; Tags list = null; raw = TestAssertions.getExampleAuthAssertionsFromClient(); list = p.parse(raw); assertNotNull(list); assertTrue(list.getTags().size() > 0); assertTrue(list.getTags().get(TagsEnum.UAF_CMD_STATUS_ERR_UNKNOWN.id) == null); logger.info(list.toString()); }
@Test public void parserForAuthAssertionFromCertTool() throws IOException { String raw = null; Tags list = null; raw = TestAssertions.getExampleAuthAssertionsFromCertTool(); list = p.parse(raw); assertNotNull(list); assertTrue(list.getTags().size() > 0); assertTrue(list.getTags().get(TagsEnum.UAF_CMD_STATUS_ERR_UNKNOWN.id) == null); logger.info(list.toString()); }
@Test public void forGeneratedAssertion() throws Exception { String assertions = authAssertionBuilder.getAssertions(); logger.info(" : Test auth assertion : " + assertions); Tags tags = p.parse(assertions); assertNotNull(tags); logger.info(tags.toString()); }
@Test public void parserForRegAssertion() throws IOException { String raw = null; Tags list = null; raw = TestAssertions.getExampleRegAssertions(); list = p.parse(raw); checkRegTags(list); logger.info(list.toString()); }
@Test public void parserForRegAssertionTest2() throws IOException { String raw = null; Tags list = null; raw = TestAssertions.getSecondExampleRegAssertions(); list = p.parse(raw); checkRegTags(list); logger.info(list.toString()); }
@Test public void parserForRegAssertionRaon() throws IOException { String raw = null; Tags list = null; raw = TestAssertions.regRequestAssertionsFromRaon(); list = p.parse(raw); checkRegTags(list); logger.info(list.toString()); }
@Test public void forGeneratedRegAssertion() throws Exception { String assertions = reqAssertionBuilder.getAssertions(); logger.info(" : Test reg assetion : " + assertions); Tags tags = p.parse(assertions); assertNotNull(tags); checkRegTags(tags); logger.info(tags.toString()); }