@Before public void setup() { appConfigServiceCallerMock = new CallerMock<>(appConfigService); showcaseEntryPoint = spy(new ShowcaseEntryPoint(appConfigServiceCallerMock, activityBeansCache, iocManager, identity, adminPageHelper, menusHelper, menuBar, defaultWorkbenchErrorCallback)); mockMenuHelper(); mockConstants(); IocTestingUtils.mockIocManager(iocManager); }
@Test public void mockIocManagerTest() { iocManager = mock(SyncBeanManager.class); IocTestingUtils.mockIocManager(iocManager); assertNotNull(iocManager.lookupBean(Object.class).getInstance()); assertNotNull(iocManager.lookupBean(Object.class).newInstance()); } }