test_class.declarator: ASSET_PATH = "defaultPath"
test_class.modifier: private static final
test_class.original_string: private static final String ASSET_PATH = "defaultPath";
test_class.type: String
test_class.var_name: ASSET_PATH
test_class.declarator: mMockContext
test_class.modifier: @Mock
test_class.original_string: @Mock
      Context mMockContext;
test_class.type: Context
test_class.var_name: mMockContext
test_class.declarator: mMockedResources
test_class.modifier: @Mock
test_class.original_string: @Mock
      Resources mMockedResources;
test_class.type: Resources
test_class.var_name: mMockedResources
test_class.declarator: mMockedTypeFace
test_class.modifier: @Mock
test_class.original_string: @Mock
      Typeface mMockedTypeFace;
test_class.type: Typeface
test_class.var_name: mMockedTypeFace
test_class.declarator: mMockedAssetManager
test_class.modifier: @Mock
test_class.original_string: @Mock
      AssetManager mMockedAssetManager;
test_class.type: AssetManager
test_class.var_name: mMockedAssetManager
test_class.declarator: mTypeFaceProvider
test_class.original_string: ITypeFaceProvider mTypeFaceProvider;
test_class.type: ITypeFaceProvider
test_class.var_name: mTypeFaceProvider
test_class.file: coachmarks/src/test/java/com/myntra/coachmarks/providers/DefaultTypeFaceProviderTest.java
test_class.identifier: DefaultTypeFaceProviderTest
test_case.body: @Test
      public void getTypeFaceFromAssetsFailTest() throws Exception {
          PowerMockito.mockStatic(Typeface.class);
          PowerMockito.mockStatic(Log.class);
          when(mMockContext.getAssets()).thenReturn(mMockedAssetManager);
          when(Typeface.createFromAsset(mMockedAssetManager, ASSET_PATH)).thenThrow(new RuntimeException());
          when(Log.e(anyString(), anyString())).thenReturn(1);
  
          Typeface typeface = mTypeFaceProvider.getTypeFaceFromAssets(ASSET_PATH);
          PowerMockito.verifyStatic(times(2));
          assert (typeface == null);
          PowerMockito.verifyNoMoreInteractions();
      }
test_case.class_method_signature: DefaultTypeFaceProviderTest.getTypeFaceFromAssetsFailTest()
test_case.full_signature: @Test public void getTypeFaceFromAssetsFailTest()
test_case.identifier: getTypeFaceFromAssetsFailTest
test_case.invocations: mockStatic mockStatic thenReturn when getAssets thenThrow when createFromAsset thenReturn when e anyString anyString getTypeFaceFromAssets verifyStatic times verifyNoMoreInteractions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getTypeFaceFromAssetsFailTest()
focal_class.declarator: mContext
focal_class.modifier: private final
focal_class.original_string: private final Context mContext;
focal_class.type: Context
focal_class.var_name: mContext
focal_class.file: coachmarks/src/main/java/com/myntra/coachmarks/providers/DefaultTypeFaceProvider.java
focal_class.identifier: DefaultTypeFaceProvider
focal_class.interfaces: implements ITypeFaceProvider
focal_class.class_method_signature: DefaultTypeFaceProvider.DefaultTypeFaceProvider(final Context context)
focal_class.full_signature: public  DefaultTypeFaceProvider(final Context context)
focal_class.identifier: DefaultTypeFaceProvider
focal_class.modifiers: public
focal_class.parameters: (final Context context)
focal_class.signature:  DefaultTypeFaceProvider(final Context context)
focal_class.class_method_signature: DefaultTypeFaceProvider.getTypeFaceFromAssets(final String fontFilePath)
focal_class.full_signature: @Override @Nullable public Typeface getTypeFaceFromAssets(final String fontFilePath)
focal_class.identifier: getTypeFaceFromAssets
focal_class.modifiers: @Override @Nullable public
focal_class.parameters: (final String fontFilePath)
focal_class.return: Typeface
focal_class.signature: Typeface getTypeFaceFromAssets(final String fontFilePath)
focal_method.body: @Override
      @Nullable
      public Typeface getTypeFaceFromAssets(final String fontFilePath) {
          try {
              return Typeface.createFromAsset(mContext.getAssets(), fontFilePath);
          } catch (RuntimeException e) {
              Log.e(DefaultTypeFaceProvider.class.getName(), e.getMessage());
          }
          return null;
      }
focal_method.class_method_signature: DefaultTypeFaceProvider.getTypeFaceFromAssets(final String fontFilePath)
focal_method.full_signature: @Override @Nullable public Typeface getTypeFaceFromAssets(final String fontFilePath)
focal_method.identifier: getTypeFaceFromAssets
focal_method.invocations: createFromAsset getAssets e getName getMessage
focal_method.modifiers: @Override @Nullable public
focal_method.parameters: (final String fontFilePath)
focal_method.return: Typeface
focal_method.signature: Typeface getTypeFaceFromAssets(final String fontFilePath)