diff --git a/pom.xml b/pom.xml index 8f353cc805..667b992278 100644 --- a/pom.xml +++ b/pom.xml @@ -154,7 +154,7 @@ 3.1.4 3.7.1 3.4.2 - 0.0.39 + 0.0.47 2.38.0 diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/amqp/builder/AmqpItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/amqp/builder/AmqpItemReaderBuilderTests.java index bba60288b7..347661b7d3 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/amqp/builder/AmqpItemReaderBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/amqp/builder/AmqpItemReaderBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2022 the original author or authors. + * Copyright 2017-2025 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. @@ -43,7 +43,8 @@ void testNoItemType() { when(this.amqpTemplate.receiveAndConvert()).thenReturn("foo"); final AmqpItemReader amqpItemReader = new AmqpItemReaderBuilder() - .amqpTemplate(this.amqpTemplate).build(); + .amqpTemplate(this.amqpTemplate) + .build(); assertEquals("foo", amqpItemReader.read()); } @@ -52,7 +53,9 @@ void testNonMessageItemType() { when(this.amqpTemplate.receiveAndConvert()).thenReturn("foo"); final AmqpItemReader amqpItemReader = new AmqpItemReaderBuilder() - .amqpTemplate(this.amqpTemplate).itemType(String.class).build(); + .amqpTemplate(this.amqpTemplate) + .itemType(String.class) + .build(); assertEquals("foo", amqpItemReader.read()); } diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JdbcBatchItemWriterNamedParameterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JdbcBatchItemWriterNamedParameterTests.java index 5cf270059c..b44ae947ae 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JdbcBatchItemWriterNamedParameterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JdbcBatchItemWriterNamedParameterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2025 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. @@ -119,7 +119,7 @@ void testWriteAndFlush() throws Exception { when(namedParameterJdbcOperations.batchUpdate(eq(sql), eqSqlParameterSourceArray( new SqlParameterSource[] { new BeanPropertySqlParameterSource(new Foo("bar")) }))) - .thenReturn(new int[] { 1 }); + .thenReturn(new int[] { 1 }); writer.write(Chunk.of(new Foo("bar"))); } @@ -166,7 +166,7 @@ void testWriteAndFlushWithEmptyUpdate() { when(namedParameterJdbcOperations.batchUpdate(eq(sql), eqSqlParameterSourceArray( new SqlParameterSource[] { new BeanPropertySqlParameterSource(new Foo("bar")) }))) - .thenReturn(new int[] { 0 }); + .thenReturn(new int[] { 0 }); Exception exception = assertThrows(EmptyResultDataAccessException.class, () -> writer.write(Chunk.of(new Foo("bar")))); String message = exception.getMessage();