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