Search in sources :

Example 1 with BinaryXMLParser

use of jadx.core.xmlgen.BinaryXMLParser in project jadx by skylot.

the class JadxDecompilerTestUtils method getMockDecompiler.

public static JadxDecompiler getMockDecompiler() {
    JadxDecompiler decompiler = mock(JadxDecompiler.class);
    RootNode rootNode = new RootNode(new JadxArgs());
    when(decompiler.getRoot()).thenReturn(rootNode);
    when(decompiler.getBinaryXmlParser()).thenReturn(new BinaryXMLParser(rootNode));
    return decompiler;
}
Also used : RootNode(jadx.core.dex.nodes.RootNode) BinaryXMLParser(jadx.core.xmlgen.BinaryXMLParser)

Aggregations

RootNode (jadx.core.dex.nodes.RootNode)1 BinaryXMLParser (jadx.core.xmlgen.BinaryXMLParser)1