Remove registrar certificate state dead code

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=130418304
This commit is contained in:
mcilwain 2016-08-16 10:36:31 -07:00 committed by Ben McIlwain
parent 0e794c790a
commit 467286d79e
2 changed files with 0 additions and 30 deletions

View file

@ -30,7 +30,6 @@ import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import google.registry.model.EntityTestCase;
import google.registry.model.common.EntityGroupRoot;
import google.registry.model.registrar.Registrar.CertificateState;
import google.registry.model.registrar.Registrar.State;
import google.registry.model.registrar.Registrar.Type;
import google.registry.testing.ExceptionRule;
@ -217,20 +216,6 @@ public class RegistrarTest extends EntityTestCase {
assertThat(registrar.getFailoverClientCertificateHash()).isNull();
}
@Test
public void testSuccess_certificateStates() throws Exception {
// Initialized registrar should have the full certificate.
assertThat(registrar.getCertificateState()).isEqualTo(CertificateState.CERTIFICATE);
// Setting a null certificate will also reset the hash.
registrar = registrar.asBuilder().setClientCertificate(null, clock.nowUtc()).build();
assertThat(registrar.getCertificateState()).isEqualTo(CertificateState.NONE);
// Set client certificate hash explicitly.
registrar = registrar.asBuilder().setClientCertificateHash(SAMPLE_CERT_HASH).build();
assertThat(registrar.getCertificateState()).isEqualTo(CertificateState.CERTIFICATE_HASH);
}
@Test
public void testSuccess_clearingIanaAndBillingIds() throws Exception {
registrar.asBuilder()