[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1733) Problem with wtp validators when testing

Denis Golovin (JIRA) jira-events at lists.jboss.org
Mon Feb 25 16:13:59 EST 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-1733?page=comments#action_12400531 ] 
            
Denis Golovin commented on JBIDE-1733:
--------------------------------------

That's right. 
But I would do it right in .project by removing org.eclipse.wst.validation.validationbuilder  builder from all tests that not related to validation.

> Problem with wtp validators when testing
> ----------------------------------------
>
>                 Key: JBIDE-1733
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1733
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: QA
>    Affects Versions: 2.0.0.GA
>            Reporter: Snjezana Peco
>         Assigned To: Denis Golovin
>            Priority: Minor
>             Fix For: 2.1
>
>
> I'm not sure if this is a bug in the wtp validators or some validator is implemented incorrectly.
> The result is throwing the following exception :
> java.lang.NullPointerException
>     at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.endProcessing(ValidatorStrategy.java:140)
>     at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.endProcessing(DocumentRegionProcessor.java:71)
>     at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor.run(DirtyRegionProcessor.java:647)
>     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> or NPE in the DirtyRegionProcessor.computePartitioning(int drOffset, int drLength) method.
> I propose suspending all validators unless if the validators are tested.
> This can be achieved by the following code (VpeTest.java) :
> protected void performTestForVpeComponent(IFile componentPage)
>             throws PartInitException, Throwable {
>         performTestForVpeComponent(componentPage, true);
>     }
>    
>     protected void performTestForVpeComponent(IFile componentPage, boolean disableValidation)
>             throws PartInitException, Throwable {
>         TestUtil.waitForJobs();
>         if (disableValidation) {
>             IProject project = componentPage.getProject();
>             if (project != null) {
>                 ProjectConfiguration projectConfiguration = ConfigurationManager
>                         .getManager().getProjectConfiguration(project);
>                 projectConfiguration.setDoesProjectOverride(true);
>                 projectConfiguration.setDisableAllValidation(true);
>             }
>         }
> It is necessary to add org.eclipse.wst.validation to the required plugins of the org.jboss.tools.jsf.vpe.ui.test plugin. 

-- 
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