use mockJdk18 by default in LightCodeInsightTestCase; remove dependency on swing/net classes in some tests

This commit is contained in:
Alexey Kudravtsev
2016-07-20 15:47:18 +03:00
parent 6b15812a4e
commit db48c64473
68 changed files with 359 additions and 210 deletions
@@ -1,7 +1,4 @@
import javax.swing.*;
import java.awt.event.ActionEvent;
public class ExtractMethods { }
abstract class MyButton
extends JButton
@@ -13,9 +10,15 @@ abstract class MyButton
class Foo {
private JButton createOKButton() {
return new MyButton( "OK" ) {
public void actionPerformed( ActionEvent e ) {
public void actionPerformed( int e ) {
<selection> setVisible( false ); </selection>
}
};
}
}
class JButton {
public JButton(String text) {
}
public void setVisible(boolean b) {}
}