mirror of
https://github.com/google/nomulus.git
synced 2025-06-30 08:13:32 +02:00
Daggerize TMCH/signed mark util classes
This allows them to support injectable configuration. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=143709052
This commit is contained in:
parent
534e3ba01c
commit
c05424b947
19 changed files with 242 additions and 165 deletions
|
@ -19,7 +19,6 @@ import static com.google.common.base.Preconditions.checkNotNull;
|
|||
import com.google.common.base.Optional;
|
||||
import google.registry.config.RegistryConfig;
|
||||
import google.registry.config.RegistryEnvironment;
|
||||
import google.registry.config.TestRegistryConfig;
|
||||
import org.junit.rules.ExternalResource;
|
||||
|
||||
/** JUnit Rule for overriding Nomulus configuration values. */
|
||||
|
@ -42,15 +41,6 @@ public final class RegistryConfigRule extends ExternalResource {
|
|||
RegistryEnvironment.overrideConfigurationForTesting(checkNotNull(override));
|
||||
}
|
||||
|
||||
/** Override registry configuration to use TMCH production CA. */
|
||||
public void useTmchProdCert() {
|
||||
override(new TestRegistryConfig() {
|
||||
@Override
|
||||
public boolean getTmchCaTestingMode() {
|
||||
return false;
|
||||
}});
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void before() throws Exception {
|
||||
if (override.isPresent()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue