@Test public void setClassNameSuffixShouldSetText() throws Exception { final JTextComponentFixture fixture = findTextFieldByName("settings.name.class.suffix"); fixture.requireEnabled(); fixture.requireEmpty(); underTest.setClassNameSuffix("Bar"); final String actual = fixture.target().getText(); assertThat(actual) .overridingErrorMessage("Expected suffix to be <%s> but was <%s>", "Foo", actual) .isEqualTo("Bar"); }
public void setClassNameSuffix(@Nonnull String suffix) { classNameSuffixField.setText(suffix); }
SettingsPanel implements Disposable, ActionListener, DocumentListener { public void setClassNameSuffix(@Nonnull String suffix) { classNameSuffixField.setText(suffix); } }
SettingsPanel implements Disposable, ActionListener, DocumentListener { public void setClassNameSuffix(@Nonnull String suffix) { classNameSuffixField.setText(suffix); } SettingsPanel(); }
SettingsPanel implements Disposable, ActionListener, DocumentListener { public void setClassNameSuffix(@Nonnull String suffix) { classNameSuffixField.setText(suffix); } SettingsPanel(); @Override void dispose(); @Override void actionPerformed(@Nonnull ActionEvent event); @Override void insertUpdate(@Nonnull DocumentEvent event); @Override void removeUpdate(@Nonnull DocumentEvent event); @Override void changedUpdate(@Nonnull DocumentEvent event); @Nonnull @CheckReturnValue JComponent getComponent(); @Nonnull @CheckReturnValue Style getStyle(); void setStyle(@Nonnull Style style); @Nonnull @CheckReturnValue String getClassNamePrefix(); void setClassNamePrefix(@Nonnull String prefix); @Nonnull @CheckReturnValue String getClassNameSuffix(); void setClassNameSuffix(@Nonnull String suffix); @CheckReturnValue boolean isGeneratedAnnotationEnabled(); void setGeneratedAnnotationEnabled(boolean enabled); @CheckReturnValue boolean isSuppressWarningsAnnotationEnabled(); void setSuppressWarningsAnnotationEnabled(boolean enabled); void setPreviewText(@Nonnull String text); }
SettingsPanel implements Disposable, ActionListener, DocumentListener { public void setClassNameSuffix(@Nonnull String suffix) { classNameSuffixField.setText(suffix); } SettingsPanel(); @Override void dispose(); @Override void actionPerformed(@Nonnull ActionEvent event); @Override void insertUpdate(@Nonnull DocumentEvent event); @Override void removeUpdate(@Nonnull DocumentEvent event); @Override void changedUpdate(@Nonnull DocumentEvent event); @Nonnull @CheckReturnValue JComponent getComponent(); @Nonnull @CheckReturnValue Style getStyle(); void setStyle(@Nonnull Style style); @Nonnull @CheckReturnValue String getClassNamePrefix(); void setClassNamePrefix(@Nonnull String prefix); @Nonnull @CheckReturnValue String getClassNameSuffix(); void setClassNameSuffix(@Nonnull String suffix); @CheckReturnValue boolean isGeneratedAnnotationEnabled(); void setGeneratedAnnotationEnabled(boolean enabled); @CheckReturnValue boolean isSuppressWarningsAnnotationEnabled(); void setSuppressWarningsAnnotationEnabled(boolean enabled); void setPreviewText(@Nonnull String text);  }