Skip to content

Commit

Permalink
Bump assertj-core from 3.19.0 to 3.20.0 (#75)
Browse files Browse the repository at this point in the history
* Bump assertj-core from 3.19.0 to 3.20.0

Bumps [assertj-core](https://github.com/assertj/assertj-core) from 3.19.0 to 3.20.0.
- [Release notes](https://github.com/assertj/assertj-core/releases)
- [Commits](assertj-core-3.19.0...assertj-core-3.20.0)

---
updated-dependencies:
- dependency-name: org.assertj:assertj-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix expected error messages

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Stefano Cordio <stefano.cordio@gmail.com>
  • Loading branch information
dependabot[bot] and scordio committed Jun 16, 2021
1 parent c2a6b6e commit d884335
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -29,7 +29,7 @@
<properties>
<javadocAdditionalOptions>-html5 --allow-script-in-comments --no-module-directories</javadocAdditionalOptions>
<guava.version>30.1.1-jre</guava.version>
<assertj-core.version>3.19.0</assertj-core.version>
<assertj-core.version>3.20.0</assertj-core.version>
</properties>

<dependencies>
Expand Down
Expand Up @@ -61,6 +61,7 @@ public void should_fail_if_content_of_actual_is_not_equal_to_expected_content()
Throwable throwable = catchThrowable(() -> assertThat(actual).hasSameContentAs(other));
// THEN
assertThat(throwable).hasMessage(format("%nexpected: ByteSource.wrap(01)%n" +
"but was : ByteSource.wrap(00)"));
" but was: ByteSource.wrap(00)"));
}

}
Expand Up @@ -12,9 +12,9 @@
*/
package org.assertj.guava.api;

import static java.lang.String.format;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.catchThrowable;
import static org.assertj.core.error.ShouldBeInstance.shouldBeInstance;
import static org.assertj.core.util.FailureMessages.actualIsNull;
import static org.assertj.guava.api.Assertions.assertThat;

Expand Down Expand Up @@ -62,12 +62,7 @@ public void should_not_pass_when_actual_contains_other_than_charSequence() {
Throwable throwable = catchThrowable(() -> assertThat(actual).extractingCharSequence());
// THEN
assertThat(throwable).isInstanceOf(AssertionError.class)
.hasMessage(format("%n" +
"Expecting:%n" +
" 12L%n" +
"to be an instance of:%n" +
" java.lang.CharSequence%n" +
"but was instance of:%n" +
" java.lang.Long"));
.hasMessage(shouldBeInstance(12L, CharSequence.class).create());
}

}

0 comments on commit d884335

Please sign in to comment.