Author: erans
Date: Sat Jun 25 09:11:28 2011
New Revision: 1139509
URL: http://svn.apache.org/viewvc?rev=1139509&view=rev
Log:
MATH-599
Attempt to work around the build failure.
Modified:
commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/solvers/BaseSecantSolverTest.java
Modified:
commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/solvers/BaseSecantSolverTest.java
URL:
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/solvers/BaseSecantSolverTest.java?rev=1139509&r1=1139508&r2=1139509&view=diff
==============================================================================
---
commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/solvers/BaseSecantSolverTest.java
(original)
+++
commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/solvers/BaseSecantSolverTest.java
Sat Jun 25 09:11:28 2011
@@ -46,6 +46,11 @@ public abstract class BaseSecantSolverTe
*/
protected abstract int[] getQuinticEvalCounts();
+ /**
+ * Tests can be run only from subclasses.
+ */
+ protected BaseSecantSolverTest() {}
+
@Test
public void testSinZero() {
// The sinus function is behaved well around the root at pi. The second
@@ -163,8 +168,7 @@ public abstract class BaseSecantSolverTe
UnivariateRealFunction f = new SinFunction();
UnivariateRealSolver solver = getSolver();
if (!(solver instanceof BracketedSolution)) return;
- ((BracketedSolution)solver).setAllowedSolutions(
- AllowedSolutions.LEFT_SIDE);
+
((BracketedSolution)solver).setAllowedSolutions(AllowedSolutions.LEFT_SIDE);
double left = -1.5;
double right = 0.05;
for(int i = 0; i < 10; i++) {
@@ -183,8 +187,7 @@ public abstract class BaseSecantSolverTe
UnivariateRealFunction f = new SinFunction();
UnivariateRealSolver solver = getSolver();
if (!(solver instanceof BracketedSolution)) return;
- ((BracketedSolution)solver).setAllowedSolutions(
- AllowedSolutions.RIGHT_SIDE);
+
((BracketedSolution)solver).setAllowedSolutions(AllowedSolutions.RIGHT_SIDE);
double left = -1.5;
double right = 0.05;
for(int i = 0; i < 10; i++) {