use of io.github.zutherb.appstash.shop.service.cart.api.Cart in project the-app by devops-dojo.
the class NavigationProviderImplTest method testRealNavigation.
@Test
public void testRealNavigation() {
ApplicationContextMock applicationContext = new ApplicationContextMock();
applicationContext.putBean("cart", mock(Cart.class));
applicationContext.putBean("authenticationService", mock(AuthenticationService.class));
NavigationProvider navigationProvider = new NavigationProviderImpl(applicationContext, authenticationService);
Navigation realNavigation = navigationProvider.getNavigation();
assertNotNull(realNavigation);
assertTrue("Main Navigation must not empty", !realNavigation.getMainNavigationGroup().getNavigationEntries().isEmpty());
}
Aggregations