public class MainClassAdapter extends Object implements UISpecAdapter
Adapter that intercepts the window displayed by the main() of a given class.
This adapter keeps the reference of the intercepted window, so that main() is not called on subsequent calls. If you need to run main() again, you can either callreset()
or create a new
adapter.Constructor and Description |
---|
MainClassAdapter(Class mainClass,
String... args) |
public Window getMainWindow()
getMainWindow
in interface UISpecAdapter
public void reset()
Copyright © 2004–2016. All rights reserved.