mirror of
https://github.com/google/nomulus.git
synced 2025-05-28 09:50:57 +02:00
Deprecate more fields in RegistryConfig
This primarily addresses issues with TMCH testing mode and email sending utils. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=143710550
This commit is contained in:
parent
c05424b947
commit
25a8bbe890
23 changed files with 203 additions and 265 deletions
|
@ -14,8 +14,6 @@
|
|||
|
||||
package google.registry.config;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.JUnit4;
|
||||
|
@ -28,14 +26,4 @@ public class RegistryEnvironmentTest {
|
|||
public void testGet() throws Exception {
|
||||
RegistryEnvironment.get();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testOverride() throws Exception {
|
||||
RegistryEnvironment.overrideConfigurationForTesting(new TestRegistryConfig() {
|
||||
@Override
|
||||
public String getSnapshotsBucket() {
|
||||
return "black velvet";
|
||||
}});
|
||||
assertThat(RegistryEnvironment.get().config().getSnapshotsBucket()).isEqualTo("black velvet");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue