Remove GerritBaseTests

All functionality has been removed from this class.

Change-Id: I16e7bb8eccba0280e4bd638e4dd61bb8677f7cbf
This commit is contained in:
Dave Borowitz
2019-05-02 09:14:47 -07:00
parent 0700c0e1f8
commit a36b35809f
151 changed files with 150 additions and 318 deletions

View File

@@ -17,10 +17,9 @@ package com.google.gerrit.common;
import static com.google.common.truth.Truth.assertThat;
import com.google.auto.value.AutoValue;
import com.google.gerrit.testing.GerritBaseTests;
import org.junit.Test;
public class AutoValueTest extends GerritBaseTests {
public class AutoValueTest {
@AutoValue
abstract static class Auto {
static Auto create(String val) {

View File

@@ -18,14 +18,13 @@ import static com.google.common.truth.Truth.assertThat;
import static com.google.gerrit.testing.GerritJUnit.assertThrows;
import com.google.common.collect.ImmutableList;
import com.google.gerrit.testing.GerritBaseTests;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import org.junit.Before;
import org.junit.Test;
public class AccessSectionTest extends GerritBaseTests {
public class AccessSectionTest {
private static final String REF_PATTERN = "refs/heads/master";
private AccessSection accessSection;

View File

@@ -16,10 +16,9 @@ package com.google.gerrit.common.data;
import static com.google.common.truth.Truth.assertThat;
import com.google.gerrit.testing.GerritBaseTests;
import org.junit.Test;
public class EncodePathSeparatorTest extends GerritBaseTests {
public class EncodePathSeparatorTest {
@Test
public void defaultBehaviour() {
assertThat(new GitwebType().replacePathSeparator("a/b")).isEqualTo("a/b");

View File

@@ -16,10 +16,9 @@ package com.google.gerrit.common.data;
import static com.google.common.truth.Truth.assertThat;
import com.google.gerrit.testing.GerritBaseTests;
import org.junit.Test;
public class FilenameComparatorTest extends GerritBaseTests {
public class FilenameComparatorTest {
private FilenameComparator comparator = FilenameComparator.INSTANCE;
@Test

View File

@@ -19,10 +19,9 @@ import static com.google.gerrit.testing.GerritJUnit.assertThrows;
import com.google.gerrit.reviewdb.client.AccountGroup;
import com.google.gerrit.reviewdb.client.AccountGroup.UUID;
import com.google.gerrit.testing.GerritBaseTests;
import org.junit.Test;
public class GroupReferenceTest extends GerritBaseTests {
public class GroupReferenceTest {
@Test
public void forGroupDescription() {
String name = "foo";

View File

@@ -22,14 +22,13 @@ import com.google.gerrit.reviewdb.client.Change;
import com.google.gerrit.reviewdb.client.LabelId;
import com.google.gerrit.reviewdb.client.PatchSet;
import com.google.gerrit.reviewdb.client.PatchSetApproval;
import com.google.gerrit.testing.GerritBaseTests;
import java.sql.Date;
import java.time.Instant;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
public class LabelFunctionTest extends GerritBaseTests {
public class LabelFunctionTest {
private static final String LABEL_NAME = "Verified";
private static final LabelId LABEL_ID = LabelId.create(LABEL_NAME);
private static final Change.Id CHANGE_ID = Change.id(100);

View File

@@ -17,10 +17,9 @@ package com.google.gerrit.common.data;
import static com.google.common.truth.Truth.assertThat;
import com.google.common.collect.ImmutableList;
import com.google.gerrit.testing.GerritBaseTests;
import org.junit.Test;
public class LabelTypeTest extends GerritBaseTests {
public class LabelTypeTest {
@Test
public void sortLabelValues() {
LabelValue v0 = new LabelValue((short) 0, "Zero");

View File

@@ -17,12 +17,11 @@ package com.google.gerrit.common.data;
import static com.google.common.truth.Truth.assertThat;
import com.google.common.collect.ImmutableMap;
import com.google.gerrit.testing.GerritBaseTests;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
public class ParameterizedStringTest extends GerritBaseTests {
public class ParameterizedStringTest {
@Test
public void emptyString() {
ParameterizedString p = new ParameterizedString("");

View File

@@ -19,11 +19,10 @@ import static com.google.gerrit.testing.GerritJUnit.assertThrows;
import com.google.gerrit.common.data.PermissionRule.Action;
import com.google.gerrit.reviewdb.client.AccountGroup;
import com.google.gerrit.testing.GerritBaseTests;
import org.junit.Before;
import org.junit.Test;
public class PermissionRuleTest extends GerritBaseTests {
public class PermissionRuleTest {
private GroupReference groupReference;
private PermissionRule permissionRule;

View File

@@ -18,13 +18,12 @@ import static com.google.common.truth.Truth.assertThat;
import com.google.common.collect.ImmutableList;
import com.google.gerrit.reviewdb.client.AccountGroup;
import com.google.gerrit.testing.GerritBaseTests;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
public class PermissionTest extends GerritBaseTests {
public class PermissionTest {
private static final String PERMISSION_NAME = "foo";
private Permission permission;

View File

@@ -16,12 +16,11 @@ package com.google.gerrit.common.data;
import static com.google.common.truth.Truth.assertThat;
import com.google.gerrit.testing.GerritBaseTests;
import java.util.ArrayList;
import java.util.Collection;
import org.junit.Test;
public class SubmitRecordTest extends GerritBaseTests {
public class SubmitRecordTest {
private static final SubmitRecord OK_RECORD;
private static final SubmitRecord FORCED_RECORD;
private static final SubmitRecord NOT_READY_RECORD;