/**
* testCompareTo
*/
public void testCompareTo() {
ParameterMapping clone = null;
double coefficients[] = {
this.correlation.getCoefficient(),
1.0d,
0.0d,
};
int expected_results[] = { 0, 1, -1 };
for (int i = 0; i < coefficients.length; i++) {
clone = new ParameterMapping(
this.correlation.getStatement(),
this.correlation.getStatementIndex(),
this.correlation.getStmtParameter(),
this.correlation.getProcParameter(),
this.correlation.getProcParameterIndex(),
coefficients[i]);
assertEquals("i=" + i, expected_results[i], this.correlation.compareTo(clone));
} // FOR
clone = new ParameterMapping(
catalog_other_stmt,
0,
catalog_other_stmt.getParameters().get(0),
catalog_other_proc.getParameters().get(0),
0,