Author: ggregory
Date: Wed Nov 2 00:59:54 2011
New Revision: 1196417
URL: http://svn.apache.org/viewvc?rev=1196417&view=rev
Log:
Convert to JUnit 4.
Modified:
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/FileSystemExceptionTest.java
Modified:
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/FileSystemExceptionTest.java
URL:
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/FileSystemExceptionTest.java?rev=1196417&r1=1196416&r2=1196417&view=diff
==============================================================================
---
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/FileSystemExceptionTest.java
(original)
+++
commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/FileSystemExceptionTest.java
Wed Nov 2 00:59:54 2011
@@ -16,7 +16,9 @@
*/
package org.apache.commons.vfs2;
-import junit.framework.TestCase;
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Test;
/**
@@ -24,11 +26,12 @@ import junit.framework.TestCase;
*
* @author Jörg Schaible
*/
-public class FileSystemExceptionTest extends TestCase {
+public class FileSystemExceptionTest {
/**
* Tests a {@link FileSystemException} containing info with a URL
containing a complete
* basic authentication.
*/
+ @Test
public void testMasksPasswordOfUrlsWithBasicAuthentication() {
final FileSystemException fse = new FileSystemException(
"vfs.provider/rename.error", new String[]{
@@ -42,6 +45,7 @@ public class FileSystemExceptionTest ext
* Tests a {@link FileSystemException} containing info with a URL
containing only the user
* information.
*/
+ @Test
public void testDoesNotModifyUrlsWithoutPassword() {
final FileSystemException fse = new FileSystemException(
"vfs.provider/delete.error", new
String[]{"http://[email protected]/test.bin"});
@@ -52,6 +56,7 @@ public class FileSystemExceptionTest ext
* Tests a {@link FileSystemException} containing info with a nested URL
containing a
* complete basic authentication.
*/
+ @Test
public void testProperDetectionOfUrl() {
final FileSystemException fse = new FileSystemException(
"vfs.provider/delete.error", new
String[]{"zip:http://foo:[email protected]/test.bin"});