From a3700ccaf58fa3c35da10844d541e439e6aa596c Mon Sep 17 00:00:00 2001 From: Alban Diquet Date: Sat, 8 Jun 2019 15:58:21 -0700 Subject: [PATCH] Remove legacy test --- .../android/trustkit/TrustKitTest.java | 15 --------------- trustkit/src/androidTest/res/xml/bad_config.xml | 3 --- 2 files changed, 18 deletions(-) delete mode 100644 trustkit/src/androidTest/res/xml/bad_config.xml diff --git a/trustkit/src/androidTest/java/com/datatheorem/android/trustkit/TrustKitTest.java b/trustkit/src/androidTest/java/com/datatheorem/android/trustkit/TrustKitTest.java index 4b06655..5fcb4c6 100644 --- a/trustkit/src/androidTest/java/com/datatheorem/android/trustkit/TrustKitTest.java +++ b/trustkit/src/androidTest/java/com/datatheorem/android/trustkit/TrustKitTest.java @@ -51,21 +51,6 @@ public void testInitializeWithValidXmlFile() { assertNotNull(trustkit); } - @Test - public void testInitializeWithBadXmlFile() { - Context context = InstrumentationRegistry.getContext(); - int pemFileId = context.getResources().getIdentifier("bad_config", "xml", - context.getPackageName()); - - boolean didInitFail = false; - try { - TrustKit.initializeWithNetworkSecurityConfiguration(context, pemFileId); - } catch (ConfigurationException e) { - didInitFail = true; - } - assertTrue(didInitFail); - } - @Test public void testInitializeWithBadResourceId() { Context context = InstrumentationRegistry.getContext(); diff --git a/trustkit/src/androidTest/res/xml/bad_config.xml b/trustkit/src/androidTest/res/xml/bad_config.xml deleted file mode 100644 index d0e2562..0000000 --- a/trustkit/src/androidTest/res/xml/bad_config.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file