Fixed object database cleanup in test case

This commit is contained in:
Obique PSWG
2016-01-17 12:47:52 -06:00
parent ec21fc35ea
commit 0b438bfce5
@@ -29,6 +29,7 @@ package resources.server_info;
import java.io.File;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -41,10 +42,7 @@ public class TestObjectDatabase {
private static final File file = new File("test_odb.db");
static {
file.deleteOnExit();
}
@AfterClass
private void cleanup() {
if (!file.delete())
System.err.println("Failed to delete file: " + file);