@Test
public void checkDefaultFrameComponentsAreDisplayed() throws Exception {
showWithStaticMethod(mapContent);
// map pane displayed
JPanelFixture mapPane = windowFixture.panel(new GenericTypeMatcher<JPanel>(JPanel.class) {
@Override
protected boolean isMatching(JPanel component) {
return component instanceof JMapPane;
}
});
mapPane.requireVisible();
// tool bar displayed and enabled
windowFixture.toolBar().requireEnabled().requireVisible();
// status bar displayed
JPanelFixture statusBar = windowFixture.panel(new GenericTypeMatcher<JPanel>(JPanel.class) {
@Override
protected boolean isMatching(JPanel component) {
return component instanceof JMapStatusBar;
}
});
statusBar.requireVisible();
}