Browse files

fixed bug of KAMI-2 removing the leftover serial files after test

  • Loading branch information...
1 parent 0ef4ddf commit 6718f1c8b90fb9b0c5ebef7969c032f5e10f298f Hao Yan committed Nov 1, 2011
Showing with 17 additions and 0 deletions.
  1. +17 −0 src/test/java/com/kamikaze/test/PForDeltaKamikazeTest.java
View
17 src/test/java/com/kamikaze/test/PForDeltaKamikazeTest.java
@@ -442,6 +442,12 @@ public void testPForDeltaDocSetSerialization() throws Exception{
e.printStackTrace();
fail(e.getMessage());
}
+
+ File in = new File(serial);
+ if(in.exists())
+ {
+ in.delete();
+ }
System.out.println("-----------------completed--------------------------");
}
@@ -611,6 +617,17 @@ public void testPForDeltaDocSetSerializationAndFind() throws Exception{
e.printStackTrace();
fail(e.getMessage());
}
+
+ File in = new File(serial);
+ if(in.exists())
+ {
+ in.delete();
+ }
+ File in2 = new File(serial2);
+ if(in2.exists())
+ {
+ in2.delete();
+ }
System.out.println("-----------------completed--------------------------");
}

0 comments on commit 6718f1c

Please sign in to comment.