From 06aa8db942d54f1fc28818038eebeb28768fdf96 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Tue, 12 Jun 2018 08:22:10 -0400 Subject: [PATCH] test: navigation resource test added --- .../test/java/brut/androlib/aapt2/BuildAndDecodeTest.java | 5 +++++ .../resources/aapt2/testapp/res/navigation/nav_graph.xml | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 brut.apktool/apktool-lib/src/test/resources/aapt2/testapp/res/navigation/nav_graph.xml diff --git a/brut.apktool/apktool-lib/src/test/java/brut/androlib/aapt2/BuildAndDecodeTest.java b/brut.apktool/apktool-lib/src/test/java/brut/androlib/aapt2/BuildAndDecodeTest.java index 20c77d355f..6b0b66d8c3 100644 --- a/brut.apktool/apktool-lib/src/test/java/brut/androlib/aapt2/BuildAndDecodeTest.java +++ b/brut.apktool/apktool-lib/src/test/java/brut/androlib/aapt2/BuildAndDecodeTest.java @@ -72,6 +72,11 @@ public void valuesStringsTest() throws BrutException { compareValuesFiles("values/strings.xml"); } + @Test + public void navigationResourceTest() throws BrutException { + compareXmlFiles("res/navigation/nav_graph.xml"); + } + @Test public void confirmManifestStructureTest() throws BrutException { compareXmlFiles("AndroidManifest.xml"); diff --git a/brut.apktool/apktool-lib/src/test/resources/aapt2/testapp/res/navigation/nav_graph.xml b/brut.apktool/apktool-lib/src/test/resources/aapt2/testapp/res/navigation/nav_graph.xml new file mode 100644 index 0000000000..9eebbbc3a2 --- /dev/null +++ b/brut.apktool/apktool-lib/src/test/resources/aapt2/testapp/res/navigation/nav_graph.xml @@ -0,0 +1,3 @@ + + +