@@ -0,0 +1,209 @@
+import org.junit.rules.ExternalResource;%0A%0Apublic class ClearRule extends ExternalResource %7B%0A%0A  protected void before() %7B%0A   %7D%0A%0A  protected void after() %7B%0A    App.clear();%0A    //any other classes go here%0A  %7D%0A%7D%0A

add ClearRule