[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    svn commit: r780511 -
From:       luc () apache ! org
Date:       2009-05-31 21:59:03
Message-ID: 20090531215903.DC23023888BD () eris ! apache ! org
[Download RAW message or body]

Author: luc
Date: Sun May 31 21:59:03 2009
New Revision: 780511

URL: http://svn.apache.org/viewvc?rev=780511&view=rev
Log:
added a general test utility for checking derivatives consistency across all step \
interpolators

Added:
    commons/proper/math/trunk/src/test/org/apache/commons/math/ode/sampling/StepInterpolatorTestUtils.java
                
      - copied, changed from r778183, \
commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/StepInterpolatorAbstractTest.java


Copied: commons/proper/math/trunk/src/test/org/apache/commons/math/ode/sampling/StepInterpolatorTestUtils.java \
(from r778183, commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/StepInterpolatorAbstractTest.java)
                
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/common \
s/math/ode/sampling/StepInterpolatorTestUtils.java?p2=commons/proper/math/trunk/src/te \
st/org/apache/commons/math/ode/sampling/StepInterpolatorTestUtils.java&p1=commons/prop \
er/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/StepInterpolatorAbstractTest.java&r1=778183&r2=780511&rev=780511&view=diff
 ==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/StepInterpolatorAbstractTest.java \
                (original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/ode/sampling/StepInterpolatorTestUtils.java \
Sun May 31 21:59:03 2009 @@ -14,25 +14,20 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.commons.math.ode.nonstiff;
+package org.apache.commons.math.ode.sampling;
+
+import static org.junit.Assert.assertEquals;
 
 import org.apache.commons.math.ode.DerivativeException;
 import org.apache.commons.math.ode.FirstOrderIntegrator;
 import org.apache.commons.math.ode.IntegratorException;
-import org.apache.commons.math.ode.sampling.StepHandler;
-import org.apache.commons.math.ode.sampling.StepInterpolator;
-
-import junit.framework.TestCase;
+import org.apache.commons.math.ode.nonstiff.TestProblemAbstract;
 
-public class StepInterpolatorAbstractTest extends TestCase {
-
-    protected StepInterpolatorAbstractTest(String name) {
-        super(name);
-    }
+public class StepInterpolatorTestUtils {
 
-    protected void checkDerivativesConsistency(final FirstOrderIntegrator \
                integrator,
-                                               final TestProblemAbstract problem,
-                                               final double threshold)
+    public static void checkDerivativesConsistency(final FirstOrderIntegrator \
integrator, +                                                   final \
TestProblemAbstract problem, +                                                   \
final double threshold)  throws DerivativeException, IntegratorException {
         integrator.addStepHandler(new StepHandler() {
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic