1 package org
.argeo
.slc
.jemmytest
;
3 import org
.argeo
.slc
.autoui
.AutoUiActivator
;
4 import org
.argeo
.slc
.autoui
.AutoUiApplication
;
5 import org
.netbeans
.jemmy
.ClassReference
;
6 import org
.netbeans
.jemmy
.operators
.JButtonOperator
;
7 import org
.netbeans
.jemmy
.operators
.JFrameOperator
;
8 import org
.netbeans
.jemmy
.operators
.JLabelOperator
;
10 public class AutoUiApplicationJemmy
implements AutoUiApplication
{
13 execute(new Object());
14 } catch (Exception e
) {
16 throw new RuntimeException("Could not execute as Runnable"
21 public Object
execute(Object object
) throws Exception
{
24 JFrameOperator jFrameOperator
= new JFrameOperator("HelloWorldSwing");
25 JButtonOperator jButtonOperator
= new JButtonOperator(jFrameOperator
,
27 JLabelOperator jLabelOperator
= new JLabelOperator(jFrameOperator
,
31 jButtonOperator
.push();
34 String textAfterPush
= jLabelOperator
.getText();
35 AutoUiActivator
.stdOut("textAfterPush=" + textAfterPush
);