@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()); }