moving tests

This commit is contained in:
Dmitry Jemerov
2009-09-10 19:49:38 +04:00
parent e389680982
commit b43c03ca2f
305 changed files with 32 additions and 4 deletions
@@ -0,0 +1,40 @@
public class IDEA17606 {
public void foo() {
final Preferences preferences = Preferences.getInstance();
// try to inline 'preferences'
final Bar bar = new Bar(<caret>preferences.getComponent());
bar.toString();
ThreadUtils.run(new Runnable() {
public void run() {
final Foo foo = new Foo();
foo.setSize(preferences.getDimension().getSize());
}
});
}
class Preferences {
public static Preferences getInstance() {
return new Preferences();
}
public JComponent getComponent() {
return null;
}
public Dimension getDimension() {
return null;
}
}
class Bar {
public Bar(JComponent component) {
}
}
class ThreadUtils {
public static void run(Runnable runnable) {
}
}
}