Updated project to use Spring Boot 3.0
Resolves issues: TASK-810 TASK-812 TASK-813
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2021 the original author or authors.
|
||||
* Copyright 2016-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -136,9 +136,9 @@ public class JobExecutionEventTests {
|
||||
assertThat(jobExecutionEvent.getJobParameters().getString("A"))
|
||||
.as("Job Parameter A value was not correct").isEqualTo("FOO");
|
||||
assertThat(jobExecutionEvent.getJobParameters().getLong("B"))
|
||||
.as("Job Parameter B value was not correct").isEqualTo(new Long(1));
|
||||
.as("Job Parameter B value was not correct").isEqualTo(Long.valueOf(1));
|
||||
assertThat(jobExecutionEvent.getJobParameters().getDouble("C"))
|
||||
.as("Job Parameter C value was not correct").isEqualTo(new Double(1));
|
||||
.as("Job Parameter C value was not correct").isEqualTo(Double.valueOf(1));
|
||||
assertThat(jobExecutionEvent.getJobParameters().getDate("D"))
|
||||
.as("Job Parameter D value was not correct").isEqualTo(testDate);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2019 the original author or authors.
|
||||
* Copyright 2016-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -111,12 +111,12 @@ public class JobParametersEventTests {
|
||||
@Test
|
||||
public void testGetterSetterDefaults() {
|
||||
JobParametersEvent jobParametersEvent = getPopulatedParametersEvent();
|
||||
assertThat(jobParametersEvent.getDouble("FOOBAR")).isEqualTo(new Double(0));
|
||||
assertThat(jobParametersEvent.getLong("FOOBAR")).isEqualTo(new Long(0));
|
||||
assertThat(jobParametersEvent.getDouble("FOOBAR", 5)).isEqualTo(new Double(5));
|
||||
assertThat(jobParametersEvent.getDouble("FOOBAR")).isEqualTo(Double.valueOf(0));
|
||||
assertThat(jobParametersEvent.getLong("FOOBAR")).isEqualTo(Long.valueOf(0));
|
||||
assertThat(jobParametersEvent.getDouble("FOOBAR", 5)).isEqualTo(Double.valueOf(5));
|
||||
assertThat(jobParametersEvent.getDouble(DOUBLE_KEY, 0))
|
||||
.isEqualTo(DOUBLE_PARAM.getValue());
|
||||
assertThat(jobParametersEvent.getLong("FOOBAR", 5)).isEqualTo(new Long(5));
|
||||
assertThat(jobParametersEvent.getLong("FOOBAR", 5)).isEqualTo(Long.valueOf(5));
|
||||
assertThat(jobParametersEvent.getLong(LONG_KEY, 5))
|
||||
.isEqualTo(LONG_PARAM.getValue());
|
||||
assertThat(jobParametersEvent.getString("FOOBAR", "TESTVAL"))
|
||||
|
||||
Reference in New Issue
Block a user