diff --git a/build.gradle b/build.gradle index fbc224a..668784f 100644 --- a/build.gradle +++ b/build.gradle @@ -30,7 +30,7 @@ android { defaultConfig { minSdkVersion 9 targetSdkVersion 22 - versionCode 4 + versionCode 5 versionName project.property ('pom.version') testApplicationId 'com.onehilltech.metadata.test' diff --git a/src/androidTest/java/com/onehilltech/metadata/ManifestTest.java b/src/androidTest/java/com/onehilltech/metadata/ManifestTest.java index 0afc789..9395d67 100644 --- a/src/androidTest/java/com/onehilltech/metadata/ManifestTest.java +++ b/src/androidTest/java/com/onehilltech/metadata/ManifestTest.java @@ -138,4 +138,11 @@ public void testLoadFromManifestWithResourceType () Assert.fail (e.getMessage ()); } } + + @Test(expected=NameNotFoundException.class) + public void testNameNotFoundException () throws Exception + { + ManifestMetadata metadata = ManifestMetadata.get (InstrumentationRegistry.getContext ()); + metadata.getValue ("foo", String.class); + } }