@Test public void selectInListAndClickOKButton() throws Exception { Future<CoordinateReferenceSystem> future = showDialog(); final int index = rand.nextInt(CODES.size()); windowFixture.list().clickItem(index); windowFixture.robot().waitForIdle(); getButton("OK").click(); windowFixture.robot().waitForIdle(); CoordinateReferenceSystem crs = retrieveCRS(future); assertNotNull(crs); CoordinateReferenceSystem expected = FACTORY.createCoordinateReferenceSystem( JCRSChooser.DEFAULT_AUTHORITY + ":" + CODES.get(index)); assertTrue(CRS.equalsIgnoreMetadata(expected, crs)); }
public static CoordinateReferenceSystem showDialog() { return showDialog(null); }
JCRSChooser { public static CoordinateReferenceSystem showDialog() { return showDialog(null); } }
JCRSChooser { public static CoordinateReferenceSystem showDialog() { return showDialog(null); } private  JCRSChooser(); }
JCRSChooser { public static CoordinateReferenceSystem showDialog() { return showDialog(null); } private  JCRSChooser(); static CoordinateReferenceSystem showDialog(); static CoordinateReferenceSystem showDialog(final String title); static CoordinateReferenceSystem showDialog(
            final String title, final String initialCode); static CoordinateReferenceSystem showDialog(
            final String title, final String initialCode, final String authority); }
JCRSChooser { public static CoordinateReferenceSystem showDialog() { return showDialog(null); } private  JCRSChooser(); static CoordinateReferenceSystem showDialog(); static CoordinateReferenceSystem showDialog(final String title); static CoordinateReferenceSystem showDialog(
            final String title, final String initialCode); static CoordinateReferenceSystem showDialog(
            final String title, final String initialCode, final String authority); static final String DEFAULT_AUTHORITY; static final String DEFAULT_TITLE; }