diff options
Diffstat (limited to 'java_src/src/test/java/com/google/crypto/tink/internal/KeyTemplateProtoConverterTest.java')
-rw-r--r-- | java_src/src/test/java/com/google/crypto/tink/internal/KeyTemplateProtoConverterTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java_src/src/test/java/com/google/crypto/tink/internal/KeyTemplateProtoConverterTest.java b/java_src/src/test/java/com/google/crypto/tink/internal/KeyTemplateProtoConverterTest.java index ffdd2e680..1c2d5f196 100644 --- a/java_src/src/test/java/com/google/crypto/tink/internal/KeyTemplateProtoConverterTest.java +++ b/java_src/src/test/java/com/google/crypto/tink/internal/KeyTemplateProtoConverterTest.java @@ -21,10 +21,12 @@ import static java.nio.charset.StandardCharsets.UTF_8; import static org.junit.Assert.assertThrows; import com.google.crypto.tink.KeyTemplate; +import com.google.crypto.tink.aead.AeadConfig; import com.google.crypto.tink.aead.AesGcmKeyManager; import com.google.crypto.tink.proto.OutputPrefixType; import com.google.protobuf.ExtensionRegistryLite; import java.security.GeneralSecurityException; +import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -32,6 +34,10 @@ import org.junit.runners.JUnit4; /** Tests KeyTemplateProtoConverter. */ @RunWith(JUnit4.class) public final class KeyTemplateProtoConverterTest { + @BeforeClass + public static void register() throws Exception { + AeadConfig.register(); + } @Test public void toByteArrayFromByteArray_sameValues() throws Exception { |