1
0
mirror of https://github.com/google/nomulus synced 2026-01-04 04:04:22 +00:00

Remove MapUserTypeTest from Integration TestSuite (#449)

* Remove MapUserTypeTest from Integration TestSuite
This commit is contained in:
Weimin Yu
2020-01-17 14:14:14 -05:00
committed by GitHub
parent 2009540f8b
commit 3a9e5d398e
2 changed files with 8 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ import static org.junit.Assert.assertThrows;
import com.google.common.collect.ImmutableMap;
import google.registry.model.ImmutableObject;
import google.registry.model.transaction.JpaTestRules;
import google.registry.model.transaction.JpaTestRules.JpaIntegrationTestRule;
import google.registry.model.transaction.JpaTestRules.JpaUnitTestRule;
import java.util.Map;
import javax.persistence.Entity;
import javax.persistence.Id;
@@ -36,11 +36,14 @@ import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class MapUserTypeTest {
// Note that JpaIntegrationTestRule is used here as the hstore extension is installed
// when nomulus.golden.sql is executed as the init script.
// Reusing production script sql/flyway/V14__load_extension_for_hstore.sql, which loads the
// hstore extension but nothing else.
@Rule
public final JpaIntegrationTestRule jpaRule =
new JpaTestRules.Builder().withEntityClass(TestEntity.class).buildIntegrationTestRule();
public final JpaUnitTestRule jpaRule =
new JpaTestRules.Builder()
.withInitScript("sql/flyway/V14__load_extension_for_hstore.sql")
.withEntityClass(TestEntity.class)
.buildUnitTestRule();
@Test
public void roundTripConversion_returnsSameMap() {

View File

@@ -16,7 +16,6 @@ package google.registry.schema.integration;
import google.registry.model.registry.RegistryLockDaoTest;
import google.registry.model.transaction.JpaTestRules.JpaIntegrationTestRule;
import google.registry.persistence.MapUserTypeTest;
import google.registry.schema.cursor.CursorDaoTest;
import google.registry.schema.tld.PremiumListDaoTest;
import google.registry.schema.tld.PremiumListUtilsTest;
@@ -46,7 +45,6 @@ import org.junit.runners.Suite.SuiteClasses;
CreateReservedListCommandTest.class,
CursorDaoTest.class,
CreatePremiumListActionTest.class,
MapUserTypeTest.class,
PremiumListDaoTest.class,
PremiumListUtilsTest.class,
RegistryLockDaoTest.class,