Switch from `assertEquals` to Google's Truth
Upstream uses Google's Truth, we also use it in newer tests, so we
should also do so in older tests.
Change-Id: Ic5fb9afe3b833d742fd0e6a63eba59e622fcb76c
diff --git a/src/test/java/com/googlesource/gerrit/plugins/its/phabricator/PhabricatorItsFacadeTest.java b/src/test/java/com/googlesource/gerrit/plugins/its/phabricator/PhabricatorItsFacadeTest.java
index 2e55e82..c1d16f5 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/its/phabricator/PhabricatorItsFacadeTest.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/its/phabricator/PhabricatorItsFacadeTest.java
@@ -13,6 +13,7 @@
// limitations under the License.
package com.googlesource.gerrit.plugins.its.phabricator;
+import static com.google.common.truth.Truth.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@@ -38,7 +39,7 @@
PhabricatorItsFacade itsFacade = createPhabricatorItsFacade();
String actual = itsFacade.createLinkForWebui("Test-Url", "Test-Text");
- assertEquals("[[Test-Url|Test-Text]]", actual);
+ assertThat(actual).isEqualTo("[[Test-Url|Test-Text]]");
}
@Test
@@ -48,7 +49,7 @@
PhabricatorItsFacade itsFacade = createPhabricatorItsFacade();
String actual = itsFacade.createLinkForWebui("Test-Url", "Test-Url");
- assertEquals("[[Test-Url]]", actual);
+ assertThat(actual).isEqualTo("[[Test-Url]]");
}
@Test
@@ -58,7 +59,7 @@
PhabricatorItsFacade itsFacade = createPhabricatorItsFacade();
String actual = itsFacade.createLinkForWebui("Test-Url", null);
- assertEquals("[[Test-Url]]", actual);
+ assertThat(actual).isEqualTo("[[Test-Url]]");
}
@Test
@@ -68,7 +69,7 @@
PhabricatorItsFacade itsFacade = createPhabricatorItsFacade();
String actual = itsFacade.createLinkForWebui("Test-Url", "");
- assertEquals("[[Test-Url]]", actual);
+ assertThat(actual).isEqualTo("[[Test-Url]]");
}
private PhabricatorItsFacade createPhabricatorItsFacade() {