From 79bd0b89f85bdf41f30d30fc9f0e11dcbd313f1f Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 24 Jun 2010 21:42:56 +0400 Subject: [PATCH] fix AsmCodeGeneratorTest in headless environment --- plugins/ui-designer/testData/MethodCallInSuperTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/ui-designer/testData/MethodCallInSuperTest.java b/plugins/ui-designer/testData/MethodCallInSuperTest.java index eaab7412e541..1fc78f1130cd 100644 --- a/plugins/ui-designer/testData/MethodCallInSuperTest.java +++ b/plugins/ui-designer/testData/MethodCallInSuperTest.java @@ -20,7 +20,11 @@ public class MethodCallInSuperTest extends JDialog { private JComponent myRootComponent; public MethodCallInSuperTest() { - super(JOptionPane.getRootFrame(), "", true); + super(getNullFrame(), "", true); getContentPane().add(myRootComponent); } + + private static JFrame getNullFrame() { + return null; + } } \ No newline at end of file