Skip to content

Commit

Permalink
fixed generic problem test
Browse files Browse the repository at this point in the history
  • Loading branch information
hdbeukel committed Jul 3, 2015
1 parent 04c207d commit 8b915c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public void testValidate2() {
Constraint<IntegerSolution, Object> c = (s, data) -> new SimpleValidation(s.getI() > 0);

// create problem stub with solution type IntegerSolution and fixed evaluation of 0.0
GenericProblem<IntegerSolution, Object> intprob = new GenericProblem<>(new FixedEvaluationObjectiveStub(0.0), null, (r,d) -> null);
GenericProblem<IntegerSolution, Object> intprob = new GenericProblem<>(null, new FixedEvaluationObjectiveStub(0.0), (r,d) -> null);
// add constraint to problem
intprob.addMandatoryConstraint(c);

Expand Down

0 comments on commit 8b915c5

Please sign in to comment.