@Test(expected = AbortionException.class)
    @Ignore
    public void testInterrupt() {
        Assume.assumeTrue(this.subject instanceof AWTEventProvider);
        final AWTEventProvider eventProvider = (AWTEventProvider) this.subject;
        if (!eventProvider.isInvokeNow()) {
            System.out.println("Skipping test for AWTEventProvider because its not set to 'invokeNow'");
        }

        final Thread mainThread = Thread.currentThread();
        final StringListener listener = se -> mainThread.interrupt();
        this.store.add(StringListener.class, listener);
        final StringEvent event = new StringEvent(this.subject, "");
        this.subject.dispatch(event, StringListener::onStringEvent);
    }
@ Test ( expected = AbortionException . class ) @ Ignore public void testInterrupt ( ) { Assume . assumeTrue ( this . subject instanceof AWTEventProvider ) ; final AWTEventProvider eventProvider = ( AWTEventProvider ) this . subject ; if ( ! eventProvider . isInvokeNow ( ) ) { System . out . println ( "Skipping test for AWTEventProvider because its not set to 'invokeNow'" ) ; } final Thread mainThread = Thread . currentThread ( ) ; final StringListener listener = se -> mainThread . interrupt ( ) ; this . store . add ( StringListener . class , listener ) ; final StringEvent event = new StringEvent ( this . subject , "" ) ; this . subject . dispatch ( event , StringListener :: onStringEvent ) ; }
Tests whether interrupting an 'invokeNow' leads to an abortion exception