commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1523792 - /commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileHandlerReloadingDetector.java
Date Mon, 16 Sep 2013 20:22:17 GMT
Author: oheger
Date: Mon Sep 16 20:22:17 2013
New Revision: 1523792

URL: http://svn.apache.org/r1523792
Log:
Added a missing @Rule annotation.

It is a bit strange that this test succeeded in the past. With jUnit 4.11 an
exception is thrown.

Modified:
    commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileHandlerReloadingDetector.java

Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileHandlerReloadingDetector.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileHandlerReloadingDetector.java?rev=1523792&r1=1523791&r2=1523792&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileHandlerReloadingDetector.java
(original)
+++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/reloading/TestVFSFileHandlerReloadingDetector.java
Mon Sep 16 20:22:17 2013
@@ -35,6 +35,7 @@ import org.apache.commons.vfs2.FileSyste
 import org.easymock.EasyMock;
 import org.junit.After;
 import org.junit.Before;
+import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.TemporaryFolder;
 
@@ -54,6 +55,7 @@ public class TestVFSFileHandlerReloading
             + ">%s</" + PROPERTY + "></configuration>";
 
     /** A helper object for creating temporary files. */
+    @Rule
     public TemporaryFolder folder = new TemporaryFolder();
 
     @Before



Mime
View raw message