Search in sources :

Example 11 with JPanelFixture

use of org.fest.swing.fixture.JPanelFixture in project aspro by JMMC-OpenDev.

the class AsproNightBoundsTest method shouldChangeDateForDEMO.

/**
 * Test observability plot when updating the observation date
 */
@Test
@GUITest
public void shouldChangeDateForDEMO() {
    initTest();
    final JPanelFixture form = window.panel("observationForm");
    // select DEMO interferometer :
    form.comboBox("jComboBoxInterferometer").selectItem("DEMO");
    // waits for computation to finish :
    AsproTestUtils.checkRunningTasks();
    final JSpinnerFixture dateSpinner = form.spinner("jDateSpinner");
    traverseDays(dateSpinner);
}
Also used : JPanelFixture(org.fest.swing.fixture.JPanelFixture) JSpinnerFixture(org.fest.swing.fixture.JSpinnerFixture) GUITest(org.fest.swing.annotation.GUITest) Test(org.junit.Test) GUITest(org.fest.swing.annotation.GUITest)

Example 12 with JPanelFixture

use of org.fest.swing.fixture.JPanelFixture in project aspro by JMMC-OpenDev.

the class AsproObservabilityTest method shouldChangeDateForVLTI.

/**
 * Test observability plot when updating the observation date
 */
@Test
@GUITest
public void shouldChangeDateForVLTI() {
    initTest();
    final JPanelFixture form = window.panel("observationForm");
    // select VLTI interferometer :
    // form.comboBox("jComboBoxInterferometer").selectItem("VLTI");
    // waits for computation to finish :
    AsproTestUtils.checkRunningTasks();
    final JSpinnerFixture dateSpinner = form.spinner("jDateSpinner");
    traverseDays(dateSpinner);
}
Also used : JPanelFixture(org.fest.swing.fixture.JPanelFixture) JSpinnerFixture(org.fest.swing.fixture.JSpinnerFixture) GUITest(org.fest.swing.annotation.GUITest) Test(org.junit.Test) GUITest(org.fest.swing.annotation.GUITest)

Aggregations

JPanelFixture (org.fest.swing.fixture.JPanelFixture)12 GUITest (org.fest.swing.annotation.GUITest)9 Test (org.junit.Test)9 JSpinnerFixture (org.fest.swing.fixture.JSpinnerFixture)5 GuiTask (org.fest.swing.edt.GuiTask)3 JFormattedTextField (javax.swing.JFormattedTextField)2 JComboBoxFixture (org.fest.swing.fixture.JComboBoxFixture)2 WindWidget (fr.jmmc.aspro.gui.util.WindWidget)1 PreferencesException (fr.jmmc.jmcs.data.preference.PreferencesException)1 Point (java.awt.Point)1 DialogFixture (org.fest.swing.fixture.DialogFixture)1 NotNull (org.jetbrains.annotations.NotNull)1