Search in sources :

Example 1 with NavigationGroup

use of io.github.zutherb.appstash.shop.ui.navigation.NavigationGroup in project the-app by devops-dojo.

the class AbstractWicketTest method createNavigationMock.

private Navigation createNavigationMock() {
    Navigation navigation = mock(Navigation.class);
    NavigationGroup mainGroup = mock(NavigationGroup.class);
    when(mainGroup.getNavigationEntries()).thenReturn(Collections.<NavigationEntry>emptyList());
    when(navigation.getMainNavigationGroup()).thenReturn(mainGroup);
    return navigation;
}
Also used : Navigation(io.github.zutherb.appstash.shop.ui.navigation.Navigation) NavigationGroup(io.github.zutherb.appstash.shop.ui.navigation.NavigationGroup)

Aggregations

Navigation (io.github.zutherb.appstash.shop.ui.navigation.Navigation)1 NavigationGroup (io.github.zutherb.appstash.shop.ui.navigation.NavigationGroup)1