@Test public void testConfigure_NotEmptyFields() { System.out.println("configure"); TestElement c = new CorrectedResultCollector(); SynthesisReportGui instance = new SynthesisReportGui(); c.setProperty(CorrectedResultCollector.START_OFFSET, "180"); c.setProperty(CorrectedResultCollector.END_OFFSET, "360"); instance.configure(c); }
@Override public void configure(TestElement el) { super.configure(el); useGroupName .setSelected(el.getPropertyAsBoolean(USE_GROUP_NAME, false)); saveHeaders.setSelected(el.getPropertyAsBoolean(SAVE_HEADERS, true)); jPanelFilter .setIncludeSampleLabels(el .getPropertyAsString(CorrectedResultCollector.INCLUDE_SAMPLE_LABELS)); jPanelFilter .setExcludeSampleLabels(el .getPropertyAsString(CorrectedResultCollector.EXCLUDE_SAMPLE_LABELS)); if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.START_OFFSET))) { jPanelFilter.setStartOffset((el .getPropertyAsLong(CorrectedResultCollector.START_OFFSET))); } if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.END_OFFSET))) { jPanelFilter.setEndOffset((el .getPropertyAsLong(CorrectedResultCollector.END_OFFSET))); } jPanelFilter .setSelectedRegExpInc(el .getPropertyAsBoolean(CorrectedResultCollector.INCLUDE_REGEX_CHECKBOX_STATE)); jPanelFilter .setSelectedRegExpExc(el .getPropertyAsBoolean(CorrectedResultCollector.EXCLUDE_REGEX_CHECKBOX_STATE)); if (el instanceof CorrectedResultCollector) { setUpFiltering((CorrectedResultCollector) el); } }
SynthesisReportGui extends AbstractGraphPanelVisualizer implements
        Clearable, ActionListener { @Override public void configure(TestElement el) { super.configure(el); useGroupName .setSelected(el.getPropertyAsBoolean(USE_GROUP_NAME, false)); saveHeaders.setSelected(el.getPropertyAsBoolean(SAVE_HEADERS, true)); jPanelFilter .setIncludeSampleLabels(el .getPropertyAsString(CorrectedResultCollector.INCLUDE_SAMPLE_LABELS)); jPanelFilter .setExcludeSampleLabels(el .getPropertyAsString(CorrectedResultCollector.EXCLUDE_SAMPLE_LABELS)); if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.START_OFFSET))) { jPanelFilter.setStartOffset((el .getPropertyAsLong(CorrectedResultCollector.START_OFFSET))); } if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.END_OFFSET))) { jPanelFilter.setEndOffset((el .getPropertyAsLong(CorrectedResultCollector.END_OFFSET))); } jPanelFilter .setSelectedRegExpInc(el .getPropertyAsBoolean(CorrectedResultCollector.INCLUDE_REGEX_CHECKBOX_STATE)); jPanelFilter .setSelectedRegExpExc(el .getPropertyAsBoolean(CorrectedResultCollector.EXCLUDE_REGEX_CHECKBOX_STATE)); if (el instanceof CorrectedResultCollector) { setUpFiltering((CorrectedResultCollector) el); } } }
SynthesisReportGui extends AbstractGraphPanelVisualizer implements
        Clearable, ActionListener { @Override public void configure(TestElement el) { super.configure(el); useGroupName .setSelected(el.getPropertyAsBoolean(USE_GROUP_NAME, false)); saveHeaders.setSelected(el.getPropertyAsBoolean(SAVE_HEADERS, true)); jPanelFilter .setIncludeSampleLabels(el .getPropertyAsString(CorrectedResultCollector.INCLUDE_SAMPLE_LABELS)); jPanelFilter .setExcludeSampleLabels(el .getPropertyAsString(CorrectedResultCollector.EXCLUDE_SAMPLE_LABELS)); if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.START_OFFSET))) { jPanelFilter.setStartOffset((el .getPropertyAsLong(CorrectedResultCollector.START_OFFSET))); } if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.END_OFFSET))) { jPanelFilter.setEndOffset((el .getPropertyAsLong(CorrectedResultCollector.END_OFFSET))); } jPanelFilter .setSelectedRegExpInc(el .getPropertyAsBoolean(CorrectedResultCollector.INCLUDE_REGEX_CHECKBOX_STATE)); jPanelFilter .setSelectedRegExpExc(el .getPropertyAsBoolean(CorrectedResultCollector.EXCLUDE_REGEX_CHECKBOX_STATE)); if (el instanceof CorrectedResultCollector) { setUpFiltering((CorrectedResultCollector) el); } } SynthesisReportGui(); }
SynthesisReportGui extends AbstractGraphPanelVisualizer implements
        Clearable, ActionListener { @Override public void configure(TestElement el) { super.configure(el); useGroupName .setSelected(el.getPropertyAsBoolean(USE_GROUP_NAME, false)); saveHeaders.setSelected(el.getPropertyAsBoolean(SAVE_HEADERS, true)); jPanelFilter .setIncludeSampleLabels(el .getPropertyAsString(CorrectedResultCollector.INCLUDE_SAMPLE_LABELS)); jPanelFilter .setExcludeSampleLabels(el .getPropertyAsString(CorrectedResultCollector.EXCLUDE_SAMPLE_LABELS)); if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.START_OFFSET))) { jPanelFilter.setStartOffset((el .getPropertyAsLong(CorrectedResultCollector.START_OFFSET))); } if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.END_OFFSET))) { jPanelFilter.setEndOffset((el .getPropertyAsLong(CorrectedResultCollector.END_OFFSET))); } jPanelFilter .setSelectedRegExpInc(el .getPropertyAsBoolean(CorrectedResultCollector.INCLUDE_REGEX_CHECKBOX_STATE)); jPanelFilter .setSelectedRegExpExc(el .getPropertyAsBoolean(CorrectedResultCollector.EXCLUDE_REGEX_CHECKBOX_STATE)); if (el instanceof CorrectedResultCollector) { setUpFiltering((CorrectedResultCollector) el); } } SynthesisReportGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override void add(final SampleResult res); @Override void clearData(); @Override void stateChanged(ChangeEvent e); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override void clearGui(); static List<List<Object>> getAllTableData(ObjectTableModel model, Format[] formats); @Override void actionPerformed(ActionEvent ev); static DefaultTableModel getAllDataAsTable(ObjectTableModel model, Format[] formats, String[] columns); @Override String getWikiPage(); @Override GraphPanelChart getGraphPanelChart(); }
SynthesisReportGui extends AbstractGraphPanelVisualizer implements
        Clearable, ActionListener { @Override public void configure(TestElement el) { super.configure(el); useGroupName .setSelected(el.getPropertyAsBoolean(USE_GROUP_NAME, false)); saveHeaders.setSelected(el.getPropertyAsBoolean(SAVE_HEADERS, true)); jPanelFilter .setIncludeSampleLabels(el .getPropertyAsString(CorrectedResultCollector.INCLUDE_SAMPLE_LABELS)); jPanelFilter .setExcludeSampleLabels(el .getPropertyAsString(CorrectedResultCollector.EXCLUDE_SAMPLE_LABELS)); if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.START_OFFSET))) { jPanelFilter.setStartOffset((el .getPropertyAsLong(CorrectedResultCollector.START_OFFSET))); } if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.END_OFFSET))) { jPanelFilter.setEndOffset((el .getPropertyAsLong(CorrectedResultCollector.END_OFFSET))); } jPanelFilter .setSelectedRegExpInc(el .getPropertyAsBoolean(CorrectedResultCollector.INCLUDE_REGEX_CHECKBOX_STATE)); jPanelFilter .setSelectedRegExpExc(el .getPropertyAsBoolean(CorrectedResultCollector.EXCLUDE_REGEX_CHECKBOX_STATE)); if (el instanceof CorrectedResultCollector) { setUpFiltering((CorrectedResultCollector) el); } } SynthesisReportGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override void add(final SampleResult res); @Override void clearData(); @Override void stateChanged(ChangeEvent e); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override void clearGui(); static List<List<Object>> getAllTableData(ObjectTableModel model, Format[] formats); @Override void actionPerformed(ActionEvent ev); static DefaultTableModel getAllDataAsTable(ObjectTableModel model, Format[] formats, String[] columns); @Override String getWikiPage(); @Override GraphPanelChart getGraphPanelChart(); static final String WIKIPAGE; }