Skip to content

Commit

Permalink
build(deps): Bump spring-javaformat.version from 0.0.39 to 0.0.40 (#81)
Browse files Browse the repository at this point in the history
* build(deps): Bump spring-javaformat.version from 0.0.39 to 0.0.40

Bumps `spring-javaformat.version` from 0.0.39 to 0.0.40.

Updates `io.spring.javaformat:spring-javaformat-checkstyle` from 0.0.39 to 0.0.40
- [Release notes](https://github.com/spring-io/spring-javaformat/releases)
- [Commits](spring-io/spring-javaformat@v0.0.39...v0.0.40)

Updates `io.spring.javaformat:spring-javaformat-maven-plugin` from 0.0.39 to 0.0.40
- [Release notes](https://github.com/spring-io/spring-javaformat/releases)
- [Commits](spring-io/spring-javaformat@v0.0.39...v0.0.40)

---
updated-dependencies:
- dependency-name: io.spring.javaformat:spring-javaformat-checkstyle
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: io.spring.javaformat:spring-javaformat-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Polish.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael J. Simons <[email protected]>
  • Loading branch information
dependabot[bot] and michael-simons authored Nov 20, 2023
1 parent 2ef166b commit e0f9411
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import java.util.Map;
import java.util.stream.Stream;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
Expand All @@ -39,6 +38,8 @@
import org.neo4j.driver.jdbc.values.Value;
import org.neo4j.driver.jdbc.values.Values;

import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

class BeginMessageEncoderTests {

private final BeginMessageEncoder encoder = new BeginMessageEncoder();
Expand Down Expand Up @@ -73,8 +74,7 @@ private static Stream<Arguments> arguments() {

@Test
void shouldFailToEncodeWrongMessage() {
Assertions.assertThrows(IllegalArgumentException.class,
() -> this.encoder.encode(ResetMessage.RESET, this.packer));
assertThatIllegalArgumentException().isThrownBy(() -> this.encoder.encode(ResetMessage.RESET, this.packer));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
*/
package org.neo4j.driver.jdbc.internal.bolt.internal.messaging.encode;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.ValuePacker;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.request.CommitMessage;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.request.ResetMessage;

import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

class CommitMessageEncoderTests {

private final CommitMessageEncoder encoder = new CommitMessageEncoder();
Expand All @@ -40,8 +41,7 @@ void shouldEncodeCommitMessage() throws Exception {

@Test
void shouldFailToEncodeWrongMessage() {
Assertions.assertThrows(IllegalArgumentException.class,
() -> this.encoder.encode(ResetMessage.RESET, this.packer));
assertThatIllegalArgumentException().isThrownBy(() -> this.encoder.encode(ResetMessage.RESET, this.packer));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
*/
package org.neo4j.driver.jdbc.internal.bolt.internal.messaging.encode;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.ValuePacker;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.request.GoodbyeMessage;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.request.ResetMessage;

import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

class GoodbyeMessageEncoderTests {

private final GoodbyeMessageEncoder encoder = new GoodbyeMessageEncoder();
Expand All @@ -40,8 +41,7 @@ void shouldEncodeGoodbyeMessage() throws Exception {

@Test
void shouldFailToEncodeWrongMessage() {
Assertions.assertThrows(IllegalArgumentException.class,
() -> this.encoder.encode(ResetMessage.RESET, this.packer));
assertThatIllegalArgumentException().isThrownBy(() -> this.encoder.encode(ResetMessage.RESET, this.packer));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.util.HashMap;
import java.util.Map;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.neo4j.driver.jdbc.internal.bolt.BoltAgent;
Expand All @@ -31,6 +30,8 @@
import org.neo4j.driver.jdbc.values.Value;
import org.neo4j.driver.jdbc.values.Values;

import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

class HelloMessageEncoderTests {

private static final BoltAgent VALUE = new BoltAgent("agent", null, null, null);
Expand Down Expand Up @@ -58,8 +59,7 @@ void shouldEncodeHelloMessage() throws Exception {

@Test
void shouldFailToEncodeWrongMessage() {
Assertions.assertThrows(IllegalArgumentException.class,
() -> this.encoder.encode(ResetMessage.RESET, this.packer));
assertThatIllegalArgumentException().isThrownBy(() -> this.encoder.encode(ResetMessage.RESET, this.packer));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@

import java.util.Map;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.ValuePacker;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.request.LogonMessage;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.request.ResetMessage;
import org.neo4j.driver.jdbc.values.Values;

import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

class LogonMessageEncoderTests {

private final LogonMessageEncoder encoder = new LogonMessageEncoder();
Expand All @@ -48,8 +49,7 @@ void shouldEncodeBeginMessage() throws Exception {

@Test
void shouldFailToEncodeWrongMessage() {
Assertions.assertThrows(IllegalArgumentException.class,
() -> this.encoder.encode(ResetMessage.RESET, this.packer));
assertThatIllegalArgumentException().isThrownBy(() -> this.encoder.encode(ResetMessage.RESET, this.packer));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.util.HashMap;
import java.util.Map;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.ValuePacker;
Expand All @@ -30,6 +29,8 @@
import org.neo4j.driver.jdbc.values.Value;
import org.neo4j.driver.jdbc.values.Values;

import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

class PullMessageEncoderTests {

private final PullMessageEncoder encoder = new PullMessageEncoder();
Expand Down Expand Up @@ -63,8 +64,7 @@ void shouldAvoidQueryId() throws Exception {

@Test
void shouldFailToEncodeWrongMessage() {
Assertions.assertThrows(IllegalArgumentException.class,
() -> this.encoder.encode(ResetMessage.RESET, this.packer));
assertThatIllegalArgumentException().isThrownBy(() -> this.encoder.encode(ResetMessage.RESET, this.packer));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@

import java.util.Collections;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.ValuePacker;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.request.LogonMessage;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.request.ResetMessage;

import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

class ResetMessageEncoderTests {

private final ResetMessageEncoder encoder = new ResetMessageEncoder();
Expand All @@ -42,8 +43,8 @@ void shouldEncodeResetMessage() throws Exception {

@Test
void shouldFailToEncodeWrongMessage() {
Assertions.assertThrows(IllegalArgumentException.class,
() -> this.encoder.encode(new LogonMessage(Collections.emptyMap()), this.packer));
assertThatIllegalArgumentException()
.isThrownBy(() -> this.encoder.encode(new LogonMessage(Collections.emptyMap()), this.packer));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
*/
package org.neo4j.driver.jdbc.internal.bolt.internal.messaging.encode;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.ValuePacker;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.request.ResetMessage;
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.request.RollbackMessage;

import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

class RollbackMessageEncoderTests {

private final RollbackMessageEncoder encoder = new RollbackMessageEncoder();
Expand All @@ -40,8 +41,7 @@ void shouldEncodeRollbackMessage() throws Exception {

@Test
void shouldFailToEncodeWrongMessage() {
Assertions.assertThrows(IllegalArgumentException.class,
() -> this.encoder.encode(ResetMessage.RESET, this.packer));
assertThatIllegalArgumentException().isThrownBy(() -> this.encoder.encode(ResetMessage.RESET, this.packer));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import java.util.Collections;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.EnumSource;
Expand All @@ -31,6 +30,8 @@
import org.neo4j.driver.jdbc.internal.bolt.internal.messaging.request.RunWithMetadataMessage;
import org.neo4j.driver.jdbc.values.Values;

import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

class RunWithMetadataMessageEncoderTests {

private final RunWithMetadataMessageEncoder encoder = new RunWithMetadataMessageEncoder();
Expand All @@ -54,8 +55,7 @@ void shouldEncodeRunWithMetadataMessage(AccessMode mode) throws Exception {

@Test
void shouldFailToEncodeWrongMessage() {
Assertions.assertThrows(IllegalArgumentException.class,
() -> this.encoder.encode(ResetMessage.RESET, this.packer));
assertThatIllegalArgumentException().isThrownBy(() -> this.encoder.encode(ResetMessage.RESET, this.packer));
}

}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
<slf4j.version>2.0.9</slf4j.version>
<sonar-maven-plugin.version>3.10.0.2594</sonar-maven-plugin.version>
<sortpom-maven-plugin.version>3.3.0</sortpom-maven-plugin.version>
<spring-javaformat.version>0.0.39</spring-javaformat.version>
<spring-javaformat.version>0.0.40</spring-javaformat.version>
<testcontainers.version>1.19.2</testcontainers.version>
</properties>

Expand Down

0 comments on commit e0f9411

Please sign in to comment.