From 94b0dddab9f3fd26ce77f09db64598566eb863c3 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 30 Jan 2020 16:12:36 +0000 Subject: [PATCH] Added test for trailing slash on packages --- .../src/test/java/com/scottyab/rootbeer/RootBeerTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rootbeerlib/src/test/java/com/scottyab/rootbeer/RootBeerTest.java b/rootbeerlib/src/test/java/com/scottyab/rootbeer/RootBeerTest.java index ab6efc4..d3f6164 100644 --- a/rootbeerlib/src/test/java/com/scottyab/rootbeer/RootBeerTest.java +++ b/rootbeerlib/src/test/java/com/scottyab/rootbeer/RootBeerTest.java @@ -160,7 +160,13 @@ public void testDetectRootCloakingApps() throws Exception { // Should be true as package detected assertTrue(rootBeer.detectRootCloakingApps()); + } + @Test + public void testAllSuPathsEndWithSlash(){ + for (String path : Const.getPaths()){ + assertTrue(path.endsWith("/")); + } } } \ No newline at end of file