Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Commit 175d8210 authored by Jakob Schöttl's avatar Jakob Schöttl
Browse files

Fix failing tests

parent 43e2ac24
......@@ -19,7 +19,7 @@ public class TestAttributesInitialization {
@Before
public void setUp() {
store = "{speedDistributionMean:0.2}";
store = "{\"speedDistributionMean\":0.2}";
}
/**
......
......@@ -20,10 +20,10 @@ public class TestAttributesODEModel {
*/
@Before
public void setUp() {
store = "{" + "'solverType' : 'CLASSICAL_RK4',"
+ "'toleranceAbsolute' : '" + new Double(1e-5).toString() + "'," + "'toleranceRelative' : '"
+ new Double(1e-5).toString() + "'," + "'stepSizeMin' : '" + new Double(1e-5).toString() + "',"
+ "'stepSizeMax' : '" + new Double(1e-5).toString() + "'" + "}";
store = "{" + "\"solverType\" : \"CLASSICAL_RK4\","
+ "\"toleranceAbsolute\" : " + new Double(1e-5).toString() + "," + "\"toleranceRelative\" : "
+ new Double(1e-5).toString() + "," + "\"stepSizeMin\" : " + new Double(1e-5).toString() + ","
+ "\"stepSizeMax\" : " + new Double(1e-5).toString() + "}";
}
/**
......
......@@ -7,8 +7,6 @@ import org.vadere.state.scenario.Stairs;
import org.vadere.state.scenario.Stairs.Tread;
import org.vadere.state.util.StateJsonConverter;
import org.vadere.util.geometry.GeometryUtils;
import org.vadere.util.io.IOUtils;
import static org.junit.Assert.assertEquals;
public class TestStairs {
......@@ -20,19 +18,18 @@ public class TestStairs {
private AttributesStairs attributes2;
private Stairs stairs2;
/**
* @throws java.lang.Exception
*/
@Before
public void setUp() throws Exception {
attributesStore1 =
"{shape:{x: 2.0, y: 0.0, width: 10.0, height: 5.0, type: RECTANGLE }, id:1,treadCount:5,upwardDirection:{x:1.0,y:0.0}}";
"{\"shape\":{\"x\": 2.0, \"y\": 0.0, \"width\": 10.0, \"height\": 5.0,"
+ "\"type\": \"RECTANGLE\" }, \"id\":1,\"treadCount\":5,\"upwardDirection\":{\"x\":1.0,\"y\":0.0}}";
attributes1 = StateJsonConverter.deserializeObjectFromJson(attributesStore1, AttributesStairs.class);
this.stairs1 = new Stairs(attributes1);
attributesStore2 =
"{shape:{x: 0.0, y: 1.0, width: 10.0, height: 5.0, type: RECTANGLE }, id:1,treadCount:5,upwardDirection:{x:0.0,y:1.0}}";
"{\"shape\":{\"x\": 0.0, \"y\": 1.0, \"width\": 10.0, \"height\": 5.0,"
+ "\"type\": \"RECTANGLE\" }, \"id\":1,\"treadCount\":5,\"upwardDirection\":{\"x\":0.0,\"y\":1.0}}";
attributes2 = StateJsonConverter.deserializeObjectFromJson(attributesStore2, AttributesStairs.class);
this.stairs2 = new Stairs(attributes2);
......
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