Delete temporary test folders on test exit.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=138860196
This commit is contained in:
eguven 2016-10-08 03:06:24 +01:00 committed by Oliver Woodman
parent 92a98d1ce2
commit ff1a008817

View File

@ -40,6 +40,11 @@ public class CachedContentIndexTest extends InstrumentationTestCase {
index = new CachedContentIndex(cacheDir); index = new CachedContentIndex(cacheDir);
} }
@Override
protected void tearDown() throws Exception {
TestUtil.recursiveDelete(cacheDir);
}
public void testAddGetRemove() throws Exception { public void testAddGetRemove() throws Exception {
final String key1 = "key1"; final String key1 = "key1";
final String key2 = "key2"; final String key2 = "key2";