@Test public void defaultSeparatorNotNullAndHorizontal() { assertNotNull(separatorMenuItem.getContent()); assertTrue(separatorMenuItem.getContent() instanceof Separator); assertSame( ((Separator) (separatorMenuItem.getContent())).getOrientation(), Orientation.HORIZONTAL); }
@Test public void defaultConstructorCanChangeSeparatorOrientation() { Separator sep = (Separator) (smi.getContent()); sep.setOrientation(Orientation.VERTICAL); assertEquals(Orientation.VERTICAL, sep.getOrientation()); }
@Test public void defaultConstructorShouldBeHorizontalSeparator() { Separator sep = (Separator) (smi.getContent()); assertEquals(Orientation.HORIZONTAL, sep.getOrientation()); }
@Test public void defaultConstructorShouldBeSeparator() { assertTrue(smi.getContent() instanceof Separator); }
@Test public void defaultConstructorShouldHaveNotNullContent() { assertNotNull(smi.getContent()); }
@Test public void defaultHideOnClickFalse() { assertFalse(separatorMenuItem.isHideOnClick()); }
@Test public void defaultConstructorShouldHaveNullText() { assertNull(smi.getText()); }
@Test public void defaultConstructorShouldHaveNullGraphic() { assertNull(smi.getGraphic()); }
@Test public void defaultConstructorShouldHaveFalseHideClick() { assertFalse(smi.isHideOnClick()); }