commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1438932 - /commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestConfigurationUtils.java
Date Sat, 26 Jan 2013 18:06:43 GMT
Author: oheger
Date: Sat Jan 26 18:06:42 2013
New Revision: 1438932

URL: http://svn.apache.org/viewvc?rev=1438932&view=rev
Log:
Only use a single mocking framework per test class.

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

Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestConfigurationUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestConfigurationUtils.java?rev=1438932&r1=1438931&r2=1438932&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestConfigurationUtils.java
(original)
+++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestConfigurationUtils.java
Sat Jan 26 18:06:42 2013
@@ -45,8 +45,6 @@ import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
 
-import com.mockobjects.dynamic.Mock;
-
 /**
  * Tests the ConfigurationUtils class
  *
@@ -545,8 +543,9 @@ public class TestConfigurationUtils
     @Test(expected = IllegalArgumentException.class)
     public void testEnableRuntimeExceptionsInvalid()
     {
-        ConfigurationUtils.enableRuntimeExceptions((Configuration) new Mock(
-                Configuration.class).proxy());
+        Configuration c = EasyMock.createMock(Configuration.class);
+        EasyMock.replay(c);
+        ConfigurationUtils.enableRuntimeExceptions(c);
     }
 
     /**



Mime
View raw message