@Test public void changeFontSize() { Component component = new JLabel(); Font expected = Resources.createFrom( component.getFont(), INCREMENT ); Resources.changeFontSize( component, INCREMENT ); assertThat( component.getFont() ).isEqualTo( expected ); }
public static void changeFontSize( Component component, int increment ) { Font baseFont = component.getFont(); Font font = createFrom( baseFont, increment ); component.setFont( font ); }
Resources { public static void changeFontSize( Component component, int increment ) { Font baseFont = component.getFont(); Font font = createFrom( baseFont, increment ); component.setFont( font ); } }
Resources { public static void changeFontSize( Component component, int increment ) { Font baseFont = component.getFont(); Font font = createFrom( baseFont, increment ); component.setFont( font ); }  }
Resources { public static void changeFontSize( Component component, int increment ) { Font baseFont = component.getFont(); Font font = createFrom( baseFont, increment ); component.setFont( font ); }  static void changeFontSize( Component component, int increment ); }
Resources { public static void changeFontSize( Component component, int increment ) { Font baseFont = component.getFont(); Font font = createFrom( baseFont, increment ); component.setFont( font ); }  static void changeFontSize( Component component, int increment ); static final Color WHITE; }