GivenContextMenu extends AbstractColumnMenuPresenter { @PostConstruct @Override public void initMenu() { COLUMNCONTEXTMENU_COLUMN = GIVENCONTEXTMENU_GIVEN; COLUMNCONTEXTMENU_INSERT_COLUMN_LEFT = GIVENCONTEXTMENU_INSERT_COLUMN_LEFT; COLUMNCONTEXTMENU_INSERT_COLUMN_RIGHT = GIVENCONTEXTMENU_INSERT_COLUMN_RIGHT; COLUMNCONTEXTMENU_DELETE_COLUMN = GIVENCONTEXTMENU_DELETE_COLUMN; COLUMNCONTEXTMENU_DELETE_INSTANCE = GIVENCONTEXTMENU_DELETE_INSTANCE; COLUMNCONTEXTMENU_DUPLICATE_INSTANCE = GIVENCONTEXTMENU_DUPLICATE_INSTANCE; COLUMNCONTEXTMENU_LABEL = constants.given().toUpperCase(); COLUMNCONTEXTMENU_I18N = "given"; super.initMenu(); }  @PostConstruct @Override void initMenu();  }
@Test public void initMenu() { assertNull(abstractColumnMenuPresenter.COLUMNCONTEXTMENU_COLUMN); assertNull(abstractColumnMenuPresenter.COLUMNCONTEXTMENU_INSERT_COLUMN_LEFT); assertNull(abstractColumnMenuPresenter.COLUMNCONTEXTMENU_INSERT_COLUMN_RIGHT); assertNull(abstractColumnMenuPresenter.COLUMNCONTEXTMENU_DELETE_COLUMN); assertNull(abstractColumnMenuPresenter.COLUMNCONTEXTMENU_DELETE_INSTANCE); assertNull(abstractColumnMenuPresenter.COLUMNCONTEXTMENU_DUPLICATE_INSTANCE); assertNull(abstractColumnMenuPresenter.COLUMNCONTEXTMENU_LABEL); assertNull(abstractColumnMenuPresenter.COLUMNCONTEXTMENU_I18N); abstractColumnMenuPresenter.initMenu(); assertEquals(GivenContextMenu.GIVENCONTEXTMENU_GIVEN, abstractColumnMenuPresenter.COLUMNCONTEXTMENU_COLUMN); assertEquals(GivenContextMenu.GIVENCONTEXTMENU_INSERT_COLUMN_LEFT, abstractColumnMenuPresenter.COLUMNCONTEXTMENU_INSERT_COLUMN_LEFT); assertEquals(GivenContextMenu.GIVENCONTEXTMENU_INSERT_COLUMN_RIGHT, abstractColumnMenuPresenter.COLUMNCONTEXTMENU_INSERT_COLUMN_RIGHT); assertEquals(GivenContextMenu.GIVENCONTEXTMENU_DELETE_COLUMN, abstractColumnMenuPresenter.COLUMNCONTEXTMENU_DELETE_COLUMN); assertEquals(GivenContextMenu.GIVENCONTEXTMENU_DELETE_INSTANCE, abstractColumnMenuPresenter.COLUMNCONTEXTMENU_DELETE_INSTANCE); assertEquals(GivenContextMenu.GIVENCONTEXTMENU_DUPLICATE_INSTANCE, abstractColumnMenuPresenter.COLUMNCONTEXTMENU_DUPLICATE_INSTANCE); assertEquals(abstractColumnMenuPresenter.constants.given().toUpperCase(), abstractColumnMenuPresenter.COLUMNCONTEXTMENU_LABEL); assertEquals("given", abstractColumnMenuPresenter.COLUMNCONTEXTMENU_I18N); }