Pergunta

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...

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top