From 67dc13d83604d2ad28faca975fd8cdb87602c542 Mon Sep 17 00:00:00 2001 From: oblonski Date: Fri, 24 Apr 2015 20:06:49 +0200 Subject: [PATCH] add new and unique random instance to ensure reproducibility of several run within the same jvm --- .../test/java/jsprit/core/algorithm/box/JspritTest.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/jsprit-core/src/test/java/jsprit/core/algorithm/box/JspritTest.java b/jsprit-core/src/test/java/jsprit/core/algorithm/box/JspritTest.java index b979034e..198ac009 100644 --- a/jsprit-core/src/test/java/jsprit/core/algorithm/box/JspritTest.java +++ b/jsprit-core/src/test/java/jsprit/core/algorithm/box/JspritTest.java @@ -19,7 +19,6 @@ import jsprit.core.problem.vehicle.VehicleImpl; import jsprit.core.util.RandomNumberGeneration; import jsprit.core.util.Solutions; import junit.framework.Assert; -import org.junit.Before; import org.junit.Test; import java.util.*; @@ -29,11 +28,7 @@ import java.util.*; */ public class JspritTest { - @Before - public void doBefore(){ -// RandomNumberGeneration.reset(); - } @Test @@ -547,7 +542,7 @@ public class JspritTest { } } Assert.assertTrue(true); - Assert.assertEquals(Solutions.bestOf(firstSolutions).getCost(),Solutions.bestOf(secondSolutions).getCost()); + Assert.assertEquals(Solutions.bestOf(firstSolutions).getCost(), Solutions.bestOf(secondSolutions).getCost()); } @Test