@Test public void init() { // given prepAttach(); // when ui.init(request); // then verify(session).setConverterFactory(converterFactory); InOrder inOrder = inOrder(currentLocale, navigator, translator, navigator); // inOrder.verify(currentLocale) // .setLocale(Locale.FRANCE, false); inOrder.verify(navigator).init(); inOrder.verify(translator).translate(ui); inOrder.verify(navigator).navigateTo("home"); }
@Test(expected = ConfigurationException.class) public void init_with_viewDisplayPanel_parent_null() { // given ui = new DuffUI( navigator, errorHandler, converterFactory, broadcaster, pushMessageRouter, applicationTitle, translate, currentLocale, translator); prepAttach(); // when ui.init(request); // then }