RFR: CODETOOLS-7902793: Fix IllegalMonitorStateException in JInternalFrameOperatorCloseTest
    Alexandre Iline 
    shurailine at openjdk.java.net
       
    Mon Dec  7 15:43:23 UTC 2020
    
    
  
On Mon, 7 Dec 2020 14:04:06 GMT, Abdul Kolarkunnu <akolarkunnu at openjdk.org> wrote:
>> What worked was to override setClosed(boolean) in JInternalFrame to not close the frame.
>> 
>> Also while inspecting the stack trace, I have discovered that the description is not passed down from JInternalFrameOperator.waitClosed()
>
> test/org/netbeans/jemmy/operators/JInternalFrameOperatorCloseTest.java line 60:
> 
>> 58:         JemmyProperties.setCurrentDispatchingModel(
>> 59:                 JemmyProperties.getCurrentDispatchingModel());
>> 60:         internalFrame = new UncloseableInternalFrame("JInternalFrameOperatorTest", true, true, true, true);
> 
> Is it possible to make use of internalFrame.setClosable(false) API instead of overriding and having  a new class UncloseableInternalFrame.
setClosable(boolean) only removes the close button on the window header. It does not stop window to be closed when done through the API. So, no.
-------------
PR: https://git.openjdk.java.net/jemmy-v2/pull/4
    
    
More information about the jemmy-dev
mailing list