@Test public void filterByNameFragment() throws Exception { showDialog(); JListFixture list = windowFixture.list(); final int FILTER_STRING_LEN = 5; String filterStr = null; while (filterStr == null) { String code = getRandomCode(); String desc = FACTORY.getDescriptionText(JCRSChooser.DEFAULT_AUTHORITY + ":" + code) .toString(); if (desc != null && desc.length() >= FILTER_STRING_LEN) { filterStr = desc.substring(0, FILTER_STRING_LEN).toLowerCase(); } } windowFixture.textBox().enterText(filterStr); windowFixture.robot().waitForIdle(); for (String item : list.contents()) { assertTrue(item.toLowerCase().contains(filterStr)); } }
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; }