Instantiating a new instance of the RobotFixture to pass into a constructor

StackOverflow https://stackoverflow.com/questions/23275152

  •  09-07-2023
  •  | 
  •  

سؤال

I'm trying to create a new JPopupMenuFixture by passing a JPopupMenu (testJPopupMenu) to it as below: JPopupMenuFixture jpopupMenuFixture = new JPopupMenuFixture(new RobotFixture, testJPopupMenu);

though i'm unsure how to instantiate a new instance of the RobotFixture to pass into the constructor...

هل كانت مفيدة؟

المحلول

how to instantiate a new instance of the RobotFixture to pass into the constructor?

RobotFixture.robotWithCurrentAwtHierarchy()

or

RobotFixture.robotWithNewAwtHierarchy()

For more info have a look at source code of RobotFixture

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top