Skip to content

Commit 0efee9e

Browse files
committed
Merge pull request #18285 from adiohana
* gh-18285: Test custom comment prefix with one that does not work by default Closes gh-18285
2 parents a607dde + 51a8c73 commit 0efee9e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/quartz/QuartzDataSourceInitializerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public class QuartzDataSourceInitializerTests {
5050
@Test
5151
public void commentPrefixCanBeCustomized() {
5252
this.contextRunner.withUserConfiguration(TestConfiguration.class).withPropertyValues(
53-
"spring.quartz.jdbc.comment-prefix=##",
54-
"spring.quartz.jdbc.schema=classpath:org/springframework/boot/autoconfigure/quartz/tables_@@platform@@.sql")
53+
"spring.quartz.jdbc.comment-prefix=**",
54+
"spring.quartz.jdbc.schema=classpath:org/springframework/boot/autoconfigure/quartz/tables_**_comments.sql")
5555
.run((context) -> {
5656
JdbcTemplate jdbcTemplate = context.getBean(JdbcTemplate.class);
5757
assertThat(jdbcTemplate.queryForObject("SELECT COUNT(*) FROM QRTZ_TEST_TABLE", Integer.class))
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
## This is a test script to check custom comment prefix is taken into account
1+
** This is a test script to check ** is treated as a comment prefix when prefix is customized
22

33
CREATE TABLE QRTZ_TEST_TABLE (
44
SCHED_NAME VARCHAR(120) NOT NULL,
55
CALENDAR_NAME VARCHAR (200) NOT NULL
66
);
77

8-
## Another comment
8+
** Another comment
99

1010
COMMIT;

0 commit comments

Comments
 (0)