MCPcopy Create free account
hub / github.com/c0ny1/captcha-killer / match

Method match

src/test/java/matcher/impl/XmlMatcherTest.java:12–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10public class XmlMatcherTest {
11
12 @org.junit.Test
13 public void match() {
14 String strXml = "<ResultMessage><success>true</success><code>0</code><message>success</message><data code=\"9e9e\"><result>9e9e</result><id>18f064e2d3f947dc91e94c98c4461217</id></data></ResultMessage>";
15 String keyword = "ResultMessage.data#code";
16 XmlMatcher xmlMatcher = new XmlMatcher();
17 xmlMatcher.searchXml(getRoot(strXml),keyword);
18 //System.out.println(String.format("result: %s start:%d end:%d",matchResult.getResult(),matchResult.getStart(),matchResult.getEnd()));
19 }
20
21 @org.junit.Test
22 public void buildKeyword() {

Callers

nothing calls this directly

Calls 2

searchXmlMethod · 0.95
getRootMethod · 0.95

Tested by

no test coverage detected