New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BasicRobot issue in assertj-core-3.8.0 #218

Open
michaellynott opened this Issue Dec 3, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@michaellynott

michaellynott commented Dec 3, 2017

On Windows 10 (v 1703) under Eclipse Oxygen 4.7.1a and Java JRE 1.8_0_151 I ran the following short program, which runs under assert-core-1.7.1 and faults under assert-swing-3.8.0.

package testrobotpkg;
import org.assertj.swing.core.BasicRobot;
import org.assertj.swing.core.Robot;

public class TestRobotClass {

public static void main(String[] args) {
	Robot robot= null;
	System.out.println("Before call to BasicRobot");
	robot = BasicRobot.robotWithNewAwtHierarchy();
	System.out.println("After call to BasicRobot");
	robot = null;
}

}

Output when run with assertj-core-3.8.0 and assertj-swing-1.2.0

Before call to BasicRobot
Exception in thread "main" java.lang.NoSuchMethodError: org.assertj.core.util.Maps.newWeakHashMap()Ljava/util/WeakHashMap;
at org.assertj.swing.edt.GuiActionRunner.rethrowCaughtExceptionIn(GuiActionRunner.java:154)
at org.assertj.swing.edt.GuiActionRunner.resultOf(GuiActionRunner.java:132)
at org.assertj.swing.edt.GuiActionRunner.execute(GuiActionRunner.java:77)
at org.assertj.swing.monitor.WindowMonitor$SingletonLazyLoader.(WindowMonitor.java:150)
at org.assertj.swing.monitor.WindowMonitor.instance(WindowMonitor.java:145)
at org.assertj.swing.core.BasicRobot.(BasicRobot.java:120)
at testrobotpkg.TestRobotClass.main(TestRobotClass.java:13)

Output when run with assertj-core-1.7.1 and assertj-swing-1.2.0
Before call to BasicRobot
After call to BasicRobot

@bigkahuna1uk

This comment has been minimized.

Show comment
Hide comment
@bigkahuna1uk

bigkahuna1uk Mar 20, 2018

Looks like Maps.newWeakHashMap has been removed from assertj 3.8.0+. only hashmap now exists.

bigkahuna1uk commented Mar 20, 2018

Looks like Maps.newWeakHashMap has been removed from assertj 3.8.0+. only hashmap now exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment