Skip to content

Commit

Permalink
PLANNER-409: Test
Browse files Browse the repository at this point in the history
  • Loading branch information
oskopek committed Aug 21, 2015
1 parent e3b4c06 commit 7863b71
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import java.io.File;

import org.junit.Test;
import org.optaplanner.benchmark.api.PlannerBenchmarkFactory;
import org.optaplanner.benchmark.impl.PlannerBenchmarkRunner;
import org.optaplanner.examples.common.app.PlannerBenchmarkTest;

public class NQueensBenchmarkTest extends PlannerBenchmarkTest {
Expand All @@ -37,4 +39,13 @@ public void benchmark64queens() {
runBenchmarkTest(new File("data/nqueens/unsolved/64queens.xml"));
}

@Test
public void benchmarkDirectoryNameDuplication() {
PlannerBenchmarkFactory plannerBenchmarkFactory = buildPlannerBenchmarkFactory(new File("data/nqueens/unsolved/4queens.xml"));
PlannerBenchmarkRunner plannerBenchmarkRunner = (PlannerBenchmarkRunner) plannerBenchmarkFactory.buildPlannerBenchmark();
plannerBenchmarkRunner.benchmarkingStarted();
plannerBenchmarkRunner.getPlannerBenchmarkResult().initBenchmarkReportDirectory(plannerBenchmarkFactory.getPlannerBenchmarkConfig().getBenchmarkDirectory());
plannerBenchmarkRunner.getPlannerBenchmarkResult().initBenchmarkReportDirectory(plannerBenchmarkFactory.getPlannerBenchmarkConfig().getBenchmarkDirectory());
}

}

0 comments on commit 7863b71

Please sign in to comment.