mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
use mockJdk18 by default in LightCodeInsightTestCase; remove dependency on swing/net classes in some tests
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
Reference in New Issue
Block a user