test_class.file: java_src/src/test/java/com/google/crypto/tink/mac/MacConfigTest.java
test_class.identifier: MacConfigTest
test_case.body: @Test
    public void aaaTestInitialization() throws Exception {
      try {
        Registry.getCatalogue("tinkmac");
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertThat(e.toString()).contains("no catalogue found");
        assertThat(e.toString()).contains("MacConfig.register()");
      }
  
      String typeUrl = "type.googleapis.com/google.crypto.tink.HmacKey";
      try {
        Registry.getKeyManager(typeUrl);
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertThat(e.toString()).contains("No key manager found");
      }
  
      // Initialize the config.
      MacConfig.register();
  
      // After registration the key manager should be present.
      Registry.getKeyManager(typeUrl);
  
      // Running init() manually again should succeed.
      MacConfig.register();
    }
test_case.class_method_signature: MacConfigTest.aaaTestInitialization()
test_case.full_signature: @Test public void aaaTestInitialization()
test_case.identifier: aaaTestInitialization
test_case.invocations: getCatalogue fail contains assertThat toString contains assertThat toString getKeyManager fail contains assertThat toString register getKeyManager register
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void aaaTestInitialization()
focal_class.declarator: HMAC_TYPE_URL = new HmacKeyManager().getKeyType()
focal_class.modifier: public static final
focal_class.original_string: public static final String HMAC_TYPE_URL = new HmacKeyManager().getKeyType();
focal_class.type: String
focal_class.var_name: HMAC_TYPE_URL
focal_class.declarator: TINK_1_0_0 = RegistryConfig.getDefaultInstance()
focal_class.modifier: @Deprecated public static final
focal_class.original_string: @Deprecated public static final RegistryConfig TINK_1_0_0 = RegistryConfig.getDefaultInstance();
focal_class.type: RegistryConfig
focal_class.var_name: TINK_1_0_0
focal_class.declarator: TINK_1_1_0 = TINK_1_0_0
focal_class.modifier: @Deprecated public static final
focal_class.original_string: @Deprecated public static final RegistryConfig TINK_1_1_0 = TINK_1_0_0;
focal_class.type: RegistryConfig
focal_class.var_name: TINK_1_1_0
focal_class.declarator: LATEST = TINK_1_0_0
focal_class.modifier: @Deprecated public static final
focal_class.original_string: @Deprecated public static final RegistryConfig LATEST = TINK_1_0_0;
focal_class.type: RegistryConfig
focal_class.var_name: LATEST
focal_class.file: java_src/src/main/java/com/google/crypto/tink/mac/MacConfig.java
focal_class.identifier: MacConfig
focal_class.class_method_signature: MacConfig.init()
focal_class.full_signature: @Deprecated public static void init()
focal_class.identifier: init
focal_class.modifiers: @Deprecated public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: MacConfig.register()
focal_class.full_signature: public static void register()
focal_class.identifier: register
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void register()
focal_class.class_method_signature: MacConfig.registerStandardKeyTypes()
focal_class.full_signature: @Deprecated public static void registerStandardKeyTypes()
focal_class.identifier: registerStandardKeyTypes
focal_class.modifiers: @Deprecated public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void registerStandardKeyTypes()
focal_class.class_method_signature: MacConfig.MacConfig()
focal_class.full_signature: private  MacConfig()
focal_class.identifier: MacConfig
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  MacConfig()
focal_method.body: public static void register() throws GeneralSecurityException {
      HmacKeyManager.register(true);
      AesCmacKeyManager.register(true);
      MacWrapper.register();
    }
focal_method.class_method_signature: MacConfig.register()
focal_method.full_signature: public static void register()
focal_method.identifier: register
focal_method.invocations: register register register
focal_method.modifiers: public static
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void register()