diff --git a/gerrit-server/BUCK b/gerrit-server/BUCK index e1cf41b656..3a96c8856a 100644 --- a/gerrit-server/BUCK +++ b/gerrit-server/BUCK @@ -99,10 +99,9 @@ java_library( '//gerrit-extension-api:api', '//gerrit-lucene:lucene', '//gerrit-reviewdb:server', - '//lib:guava', '//lib:gwtorm', '//lib:h2', - '//lib:junit', + '//lib:truth', '//lib/auto:auto-value', '//lib/guice:guice', '//lib/guice:guice-servlet', diff --git a/gerrit-server/src/test/java/com/google/gerrit/testutil/InMemoryDatabase.java b/gerrit-server/src/test/java/com/google/gerrit/testutil/InMemoryDatabase.java index 1f5b6cd8ea..cb65e96f36 100644 --- a/gerrit-server/src/test/java/com/google/gerrit/testutil/InMemoryDatabase.java +++ b/gerrit-server/src/test/java/com/google/gerrit/testutil/InMemoryDatabase.java @@ -14,7 +14,7 @@ package com.google.gerrit.testutil; -import static org.junit.Assert.assertEquals; +import static com.google.common.truth.Truth.assertThat; import com.google.gerrit.lifecycle.LifecycleManager; import com.google.gerrit.reviewdb.client.CurrentSchemaVersion; @@ -160,7 +160,7 @@ public class InMemoryDatabase implements SchemaFactory { } public void assertSchemaVersion() throws OrmException { - final CurrentSchemaVersion act = getSchemaVersion(); - assertEquals(SchemaVersion.getBinaryVersion(), act.versionNbr); + assertThat(getSchemaVersion().versionNbr) + .isEqualTo(SchemaVersion.getBinaryVersion()); } }