Code example for WindowEvent

0
    assertThat(AWTEvents.wasWindowOpened(event)).isTrue();
  } 
 
  @Test
  public void should_return_false_if_Window_not_opened() { 
    AWTEvent event = new WindowEvent(source, WINDOW_CLOSING);
    assertThat(AWTEvents.wasWindowOpened(event)).isFalse();
  } 
}