Skip to content

Commit

Permalink
move robot to vavi-awt-joystic
Browse files Browse the repository at this point in the history
  • Loading branch information
umjammer committed Mar 26, 2024
1 parent 2910790 commit 10670e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 271 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import com.sun.tools.attach.VirtualMachineDescriptor;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.rococoa.Foundation;
import org.rococoa.ObjCObject;
Expand All @@ -29,13 +28,10 @@
import org.rococoa.cocoa.appkit.NSWorkspace;
import org.rococoa.cocoa.corefoundation.CoreFoundation;
import org.rococoa.cocoa.coreimage.CIImage;
import org.rococoa.cocoa.foundation.NSBundle;
import org.rococoa.cocoa.foundation.NSDictionary;
import org.rococoa.cocoa.foundation.NSNotification;
import org.rococoa.cocoa.foundation.NSNotificationCenter;
import org.rococoa.cocoa.foundation.NSObject;
import org.rococoa.cocoa.foundation.NSString;
import org.rococoa.cocoa.gamecontroller.GCController;
import vavi.util.Debug;

import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down Expand Up @@ -171,8 +167,6 @@ void test62() throws Exception {
if (!a.active()) {
a.activateWithOptions(0);
}
RococaRobot ide = new RococaRobot();
// ide.keyClick(kVK_ANSI_);
} catch (NoSuchElementException e) {
Debug.println(Level.WARNING, "run minecraft before running this test");
}
Expand Down Expand Up @@ -207,7 +201,7 @@ void test8() throws Exception {

CountDownLatch cdl = new CountDownLatch(1);

class MyObserver implements Callback {
static class MyObserver implements Callback {

public void applicationWasActivated(NSNotification notification) {
NSWorkspace workspace = Rococoa.cast(notification.object(), NSWorkspace.class);
Expand All @@ -225,7 +219,7 @@ public void applicationWasDeactivated(NSNotification notification) {
@Test
@EnabledIfSystemProperty(named = "vavi.test", matches = "ide")
void test9() throws Exception {
ObjCObject proxy = Rococoa.proxy(new CoreGraphicsLibraryTest.MyObserver());
ObjCObject proxy = Rococoa.proxy(new MyObserver());
Selector sel1 = Foundation.selector("applicationWasActivated:");
Selector sel2 = Foundation.selector("applicationWasDeactivated:");

Expand Down

0 comments on commit 10670e9

Please sign in to comment.