Added resource qualifiers test.

This commit is contained in:
Ryszard Wiśniewski 2011-05-03 20:20:11 +02:00
parent 102597ef4c
commit 130856ccb8
2 changed files with 10 additions and 0 deletions

View File

@ -114,6 +114,12 @@ public class BuildAndDecodeTest {
compareXmlFiles("res/xml/references.xml");
}
@Test
public void qualifiersTest() throws BrutException {
compareValuesFiles("values-mcc004-mnc4-en-rUS-xlarge-long-land-desk-" +
"night-xhdpi-finger-keyssoft-12key-navhidden-dpad/strings.xml");
}
private void compareValuesFiles(String path) throws BrutException {
compareXmlFiles("res/" + path,
new ElementNameAndAttributeQualifier("name"));

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="test1" />
</resources>