org.assertj.snapshot.internal.assertions.InternalAssertions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of assertj-snapshot Show documentation
Show all versions of assertj-snapshot Show documentation
Rich and fluent assertions for testing snapshots
The newest version!
package org.assertj.snapshot.internal.assertions;
import org.assertj.core.api.Assertions;
import org.assertj.snapshot.internal.utils.JSONUtils;
class InternalAssertions {
static void assertEqual(final Object actual, final String expected) {
final String normalizedExpected = JSONUtils.prettyPrint(expected);
final String normalizedActual = JSONUtils.prettyPrint(actual);
Assertions.assertThat(normalizedActual).isEqualTo(normalizedExpected);
}
}