Author: ggregory
Date: Wed Nov  2 01:12:48 2011
New Revision: 1196421

URL: http://svn.apache.org/viewvc?rev=1196421&view=rev
Log:
Convert to JUnit 4.

Modified:
    
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/tar/test/LargeTarTestCase.java

Modified: 
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/tar/test/LargeTarTestCase.java
URL: 
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/tar/test/LargeTarTestCase.java?rev=1196421&r1=1196420&r2=1196421&view=diff
==============================================================================
--- 
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/tar/test/LargeTarTestCase.java
 (original)
+++ 
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/tar/test/LargeTarTestCase.java
 Wed Nov  2 01:12:48 2011
@@ -16,6 +16,10 @@
  */
 package org.apache.commons.vfs2.provider.tar.test;
 
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+
 import java.io.File;
 import java.io.FileOutputStream;
 import java.io.OutputStream;
@@ -25,8 +29,6 @@ import java.util.Arrays;
 import java.util.Iterator;
 import java.util.List;
 
-import junit.framework.TestCase;
-
 import org.apache.commons.compress.archivers.ArchiveStreamFactory;
 import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
 import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream;
@@ -39,9 +41,11 @@ import org.apache.commons.vfs2.cache.Sof
 import org.apache.commons.vfs2.impl.DefaultFileSystemManager;
 import org.apache.commons.vfs2.provider.local.DefaultLocalFileProvider;
 import org.apache.commons.vfs2.provider.tar.TarFileProvider;
+import org.junit.Before;
+import org.junit.Test;
 
 //@SuppressWarnings("nls")
-public class LargeTarTestCase extends TestCase {
+public class LargeTarTestCase {
   private final static String baseDir = "target/test-classes/test-data/";
 
   private DefaultFileSystemManager manager;
@@ -49,7 +53,7 @@ public class LargeTarTestCase extends Te
   private final static String largeFileName = "largefile";
 
 
-  @Override
+  @Before
 public void setUp() throws Exception {
     manager = new DefaultFileSystemManager();
 
@@ -64,6 +68,7 @@ public void setUp() throws Exception {
     createLargeFile(largeFilePath, largeFileName);
   }
 
+  @Test
   public void testLargeFile() throws Exception {
     File realFile = new File(largeFilePath + largeFileName + ".tar.gz");
 


Reply via email to