script is now added on every page

parent 543b0610
......@@ -153,6 +153,10 @@
<a href="http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22net.sourceforge.teetime%22%20AND%20a%3A%22teetime%22"><img alt="Download TeeTime" src="https://img.shields.io/maven-central/v/net.sourceforge.teetime/teetime.svg?style=flat-square"></a>
]]>
</bottomDescription>
<endContent>
<script src="$resourcePath/js/jquery.cookiesdirective.js"></script>
<script src="$resourcePath/js/teetime.js"></script>
</endContent>
<pages>
<index>
<endContent>
......@@ -162,8 +166,6 @@
<link rel="stylesheet" href="//cdn.jsdelivr.net/alertifyjs/1.6.0/css/themes/bootstrap.min.css"/>
<script src="//cdn.jsdelivr.net/alertifyjs/1.6.0/alertify.min.js"></script>
<script src="$resourcePath/js/twitter_index.js"></script>
<script src="$resourcePath/js/jquery.cookiesdirective.js"></script>
<script src="$resourcePath/js/teetime.js"></script>
</endContent>
<breadcrumbs>false</breadcrumbs>
<sections>
......
......@@ -21,9 +21,6 @@ import static teetime.framework.test.StageTester.test;
import java.util.ArrayList;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import teetime.framework.DivideAndConquerStage;
......@@ -38,7 +35,7 @@ public class DivideAndConquerStageTest {
List<QuicksortSolution> solutions;
List<QuicksortProblem> problems;
@Before
// @Before
public void initialize() {
quicksortStage = new DivideAndConquerStage<QuicksortProblem, QuicksortSolution>();
......@@ -51,8 +48,7 @@ public class DivideAndConquerStageTest {
solutions = new ArrayList<QuicksortSolution>();
}
@Test
@Ignore
// @Test
// FIXME runs infinitely so far
public void quicksortImplementationShouldSortArray() {
test(this.quicksortStage).and()
......@@ -61,7 +57,16 @@ public class DivideAndConquerStageTest {
.start();
}
@After
@Test
public void tester() {
for (int i = 0; i < 10000; i++) {
initialize();
quicksortImplementationShouldSortArray();
evaluate();
}
}
// @After
public void evaluate() {
int[] sortedNumbers = new int[] { 1, 2, 3, 4, 5 };
assertArrayEquals(solutions.get(0).getNumbers(), sortedNumbers);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment