[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-1734) The JBIDE1479Test test doesn't test jira 1479.

Max Andersen (JIRA) jira-events at lists.jboss.org
Wed Apr 9 06:05:00 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBIDE-1734?page=all ]

Max Andersen updated JBIDE-1734:
--------------------------------

    Fix Version/s: 2.1.0.beta1
                       (was: 2.1)

batch update of issues with 2.1 fix instead of the correct 2.1.b1

> The JBIDE1479Test test doesn't test jira 1479.
> ----------------------------------------------
>
>                 Key: JBIDE-1734
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1734
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: QA
>    Affects Versions: 2.0.0.GA
>            Reporter: Snjezana Peco
>         Assigned To: Maxim Areshkau
>            Priority: Critical
>             Fix For: 2.1.0.beta1
>
>
> The problem in jira 1479 happens because VpeController.notifyChanged is called in non-UI thread. The test calls this method in the UI thread.
> The correct test would be as follows:
> ...
> assertNotNull("Editor input is null", input);
>        
>         TestUtil.waitForJobs();
>         JSPMultiPageEditor part = openEditor(input);
>         TestUtil.waitForJobs();
>         assertNotNull(part);
>         Job job = new WorkspaceJob("Test"){
>             public IStatus runInWorkspace(IProgressMonitor monitor) {
>                 try {
>                     new FormatProcessorXML().formatFile(file);
>                 } catch (Exception e) {
>                     e.printStackTrace();
>                 }
>                 finished = true;
>                 return Status.OK_STATUS;
>             }
>         };
>         job.setPriority(Job.SHORT);
>         job.schedule(0L);
>         TestUtil.waitForJobs();
>         while (!finished) {
>             TestUtil.delay(1000L);
>         }
>         TestUtil.delay(15000L);
>         PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
>                                 .closeAllEditors(false);
> ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list