@Test public void testThatInstallSucceedsForNativeModule() throws IOException { Mockito.when(mModulePathsNo1Mock.containsNativeLib()).thenReturn(true); Mockito.when(mModulePathsNo1Mock.getNativeLibsDirectory()).thenReturn(mNativeLibsDirectoryMock); mObjectUnderTest.installModule(MODULE_NAME_NO1); Mockito.verify(mLazyLoadListenerMock) .moduleLazilyInstalled(Mockito.eq(MODULE_NAME_NO1), Mockito.anyLong()); Mockito.verify(mNativeModuleLoaderMock).load(Mockito.eq(mModulePathsNo1Mock)); Mockito.verifyZeroInteractions(mCustomClassLoaderMock); }
public synchronized void installModule(String moduleName) throws IOException { mLoaderAlgorithm.installModule(moduleName); }
LazyModuleLoader { public synchronized void installModule(String moduleName) throws IOException { mLoaderAlgorithm.installModule(moduleName); } }
LazyModuleLoader { public synchronized void installModule(String moduleName) throws IOException { mLoaderAlgorithm.installModule(moduleName); } LazyModuleLoader(Context context, LoaderAlgorithm loaderAlgorithm); }
LazyModuleLoader { public synchronized void installModule(String moduleName) throws IOException { mLoaderAlgorithm.installModule(moduleName); } LazyModuleLoader(Context context, LoaderAlgorithm loaderAlgorithm); synchronized ServiceLike loadServiceModule(String moduleName, String className); synchronized SupportFragmentLike loadSupportFragmentModule(
      Fragment hostingFragment, String moduleName, String className); synchronized FragmentLike loadFragmentModule(
      android.app.Fragment hostingFragment, String moduleName, String className); synchronized ActivityLike loadActivityModule(
      Activity activity, String moduleName, String className); synchronized Class loadModule(String moduleName, String className); synchronized void installModule(String moduleName); }
LazyModuleLoader { public synchronized void installModule(String moduleName) throws IOException { mLoaderAlgorithm.installModule(moduleName); } LazyModuleLoader(Context context, LoaderAlgorithm loaderAlgorithm); synchronized ServiceLike loadServiceModule(String moduleName, String className); synchronized SupportFragmentLike loadSupportFragmentModule(
      Fragment hostingFragment, String moduleName, String className); synchronized FragmentLike loadFragmentModule(
      android.app.Fragment hostingFragment, String moduleName, String className); synchronized ActivityLike loadActivityModule(
      Activity activity, String moduleName, String className); synchronized Class loadModule(String moduleName, String className); synchronized void installModule(String moduleName);  }