Skip to content

Commit

Permalink
Fix merge conflict from rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0ffrey committed Oct 23, 2018
1 parent a14bc74 commit 585a749
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Expand Up @@ -20,12 +20,9 @@
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.mockito.AdditionalAnswers;
import org.optaplanner.core.api.score.buildin.simple.SimpleScore;
import org.optaplanner.core.config.score.trend.InitializingScoreTrendLevel;
import org.optaplanner.core.impl.domain.solution.descriptor.SolutionDescriptor;
import org.optaplanner.core.impl.score.director.InnerScoreDirector;
import org.optaplanner.core.impl.score.director.drools.DroolsScoreDirector;
import org.optaplanner.core.impl.score.trend.InitializingScoreTrend;
import org.optaplanner.core.impl.testdata.domain.TestdataValue;
import org.optaplanner.core.impl.testdata.domain.shadow.corrupted.TestdataCorruptedShadowedEntity;
Expand Down Expand Up @@ -59,8 +56,8 @@ private EasyScoreDirectorFactory<Object> mockEasyScoreDirectorFactory() {
@Test
public void shadowVariableCorruption() {
EasyScoreDirectorFactory<TestdataCorruptedShadowedSolution> scoreDirectorFactory =
new EasyScoreDirectorFactory<>((EasyScoreCalculator<TestdataCorruptedShadowedSolution>) (solution_) -> SimpleScore.valueOf(0));
scoreDirectorFactory.setSolutionDescriptor(TestdataCorruptedShadowedSolution.buildSolutionDescriptor());
new EasyScoreDirectorFactory<>(TestdataCorruptedShadowedSolution.buildSolutionDescriptor(),
(EasyScoreCalculator<TestdataCorruptedShadowedSolution>) (solution_) -> SimpleScore.valueOf(0));
scoreDirectorFactory.setInitializingScoreTrend(
InitializingScoreTrend.buildUniformTrend(InitializingScoreTrendLevel.ONLY_DOWN, 1));
EasyScoreDirector<TestdataCorruptedShadowedSolution> scoreDirector = scoreDirectorFactory.buildScoreDirector(false, false);
Expand Down
Expand Up @@ -31,7 +31,7 @@
@PlanningSolution
public class TestdataCorruptedShadowedSolution extends TestdataObject {

public static SolutionDescriptor buildSolutionDescriptor() {
public static SolutionDescriptor<TestdataCorruptedShadowedSolution> buildSolutionDescriptor() {
return SolutionDescriptor.buildSolutionDescriptor(TestdataCorruptedShadowedSolution.class,
TestdataCorruptedShadowedEntity.class);
}
Expand Down

0 comments on commit 585a749

Please sign in to comment.