Project

General

Profile

« Previous | Next » 

Revision 79ec3c00

Added by Cherian Mathew about 7 years ago

Fix test by catching expected exception

View differences:

eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/service/ProgressMonitorServiceTest.java
86 86
        expectedMonitor.setResult(ise);
87 87
        expectedMonitor.setIsFailed(true);
88 88
        expectedMonitor.done();
89
        CdmStore.getProgressMonitorClientManager().pollMonitor("Testing Progress Monitor",
90
                uuid,
91
                pollInterval,
92
                new MockPostMoniteredOperationEnabled(expectedMonitor, uuid),
93
                (IFeedbackGenerator)null,
94
                new NullProgressMonitor());
89
        try {
90
            CdmStore.getProgressMonitorClientManager().pollMonitor("Testing Progress Monitor",
91
                    uuid,
92
                    pollInterval,
93
                    new MockPostMoniteredOperationEnabled(expectedMonitor, uuid),
94
                    (IFeedbackGenerator)null,
95
                    new NullProgressMonitor());
96
            Assert.fail("Exception due to inconsistent number of feedback generators not thrown");
97
        } catch(IllegalStateException e) {
98

  
99
        }
95 100
    }
96 101

  
97 102
    @Test

Also available in: Unified diff