Skip to content

Commit

Permalink
assertj update.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimY4 committed Jan 1, 2024
1 parent c67545f commit 9bb27e7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ scala-xml = '2.2.0'
wartremover = '3.1.5'

[libraries]
assertj = 'org.assertj:assertj-core:3.24.2'
assertj = 'org.assertj:assertj-core:3.25.0'
dom4j = 'org.dom4j:dom4j:2.1.4'
errorprone = { module = 'com.google.errorprone:error_prone_core', version.ref = 'errorprone' }
gson = 'com.google.code.gson:gson:2.10.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import java.io.IOException;

import static org.assertj.core.api.Assertions.LIST;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

Expand Down Expand Up @@ -58,7 +59,7 @@ void shouldReturnEmptyListWhenObtainElementsFromEmptyDocument() {

@Test
void shouldReturnSingleRootNodeWhenObtainElements() {
assertThat(node.elements()).asList().containsExactly(new Dom4jElement(root));
assertThat(node.elements()).asInstanceOf(LIST).containsExactly(new Dom4jElement(root));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import java.io.IOException;

import static org.assertj.core.api.Assertions.LIST;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

Expand All @@ -50,7 +51,7 @@ void shouldReturnEmptyListWhenObtainAttributes() {

@Test
void shouldReturnSingleRootNodeWhenObtainElements() {
assertThat(node.elements()).asList().containsExactly(new JDomElement(root));
assertThat(node.elements()).asInstanceOf(LIST).containsExactly(new JDomElement(root));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import javax.xml.namespace.QName;

import static org.assertj.core.api.Assertions.LIST;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

Expand All @@ -47,7 +48,7 @@ void shouldReturnEmptyListWhenObtainAttributes() {

@Test
void shouldReturnSingleRootNodeWhenObtainElements() {
assertThat(node.elements()).asList().containsExactly(new XomElement(root));
assertThat(node.elements()).asInstanceOf(LIST).containsExactly(new XomElement(root));
}

@Test
Expand Down

0 comments on commit 9bb27e7

Please sign in to comment.