PatchSetApprovalTest: Extend GerritBaseTests
Remove the setup of KeyUtil which is now done in GerritBaseTests. Change-Id: Ia84c41e3a21d0867e81d951e1b5a619953ead253
This commit is contained in:
@@ -30,6 +30,7 @@ java_test(
|
|||||||
srcs = glob([TESTS + 'client/**/*.java']),
|
srcs = glob([TESTS + 'client/**/*.java']),
|
||||||
deps = [
|
deps = [
|
||||||
':client',
|
':client',
|
||||||
|
'//gerrit-server:testutil',
|
||||||
'//lib:gwtorm',
|
'//lib:gwtorm',
|
||||||
'//lib:truth',
|
'//lib:truth',
|
||||||
],
|
],
|
||||||
|
@@ -37,6 +37,7 @@ junit_tests(
|
|||||||
srcs = glob([TESTS + 'client/**/*.java']),
|
srcs = glob([TESTS + 'client/**/*.java']),
|
||||||
deps = [
|
deps = [
|
||||||
':client',
|
':client',
|
||||||
|
'//gerrit-server:testutil',
|
||||||
'//lib:gwtorm',
|
'//lib:gwtorm',
|
||||||
'//lib:truth',
|
'//lib:truth',
|
||||||
],
|
],
|
||||||
|
@@ -16,19 +16,14 @@ package com.google.gerrit.reviewdb.client;
|
|||||||
|
|
||||||
import static com.google.common.truth.Truth.assertThat;
|
import static com.google.common.truth.Truth.assertThat;
|
||||||
|
|
||||||
import com.google.gwtorm.client.KeyUtil;
|
import com.google.gerrit.testutil.GerritBaseTests;
|
||||||
import com.google.gwtorm.server.StandardKeyEncoder;
|
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class PatchSetApprovalTest {
|
public class PatchSetApprovalTest extends GerritBaseTests {
|
||||||
static {
|
|
||||||
KeyUtil.setEncoderImpl(new StandardKeyEncoder());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void keyEquality() {
|
public void keyEquality() {
|
||||||
PatchSetApproval.Key k1 = new PatchSetApproval.Key(
|
PatchSetApproval.Key k1 = new PatchSetApproval.Key(
|
||||||
|
Reference in New Issue
Block a user