InMemoryDatabase: Convert to use Google Truth

Change-Id: I5a42e9aee64b85cd1f69373592723c970d8f08be
This commit is contained in:
David Pursehouse
2015-06-03 17:31:34 +09:00
parent c3f35e61b8
commit 593532b13e
2 changed files with 4 additions and 5 deletions

View File

@@ -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<ReviewDb> {
}
public void assertSchemaVersion() throws OrmException {
final CurrentSchemaVersion act = getSchemaVersion();
assertEquals(SchemaVersion.getBinaryVersion(), act.versionNbr);
assertThat(getSchemaVersion().versionNbr)
.isEqualTo(SchemaVersion.getBinaryVersion());
}
}