String assertions require no additional dependency and use simply AssertJ.
import static io.github.goatfryed.assert_baseline.Assertions.assertThatText;
assertThatText(yourString)
.isEqualToBaseline("src/test/resources/specs/my.baseline.txt");
For gradle
implementation("io.github.goatfryed:assert-baseline:1.0.0-alpha1-SNAPSHOT") {}
For maven
<dependencies>
<dependency>
<groupId>io.github.goatfryed</groupId>
<artifactId>assert-baseline</artifactId>
<version>{version}</version>
</dependency>
</dependencies>
usingTextComparator
is simply an alias for usingComparator
of AssertJ on String subjects