Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] Disabling validation in JUnit tests

Yes, there is new API to do this.

Please see: org.eclipse.wst.validation.ValidationFramework

         * Suspends, or undoes the suspension of, validation on all projects in the workbench. If
         * "suspend" is true then validation is suspended and if it's "false" then validation is not suspended.
         * The value of this variable is not persisted.
         * <p>
         * Be VERY CAREFUL when you use this method! Turn validation back on in a finally block because
         * if the code which suspended validation crashes, the user has no way to reset the suspension.
         * The user will have to shut down and restart the workbench to get validation to work again.
        public void suspendAllValidation(boolean suspend) {
                _suspendAllValidation = suspend;

Gary Karasiuk, RAD Performance Analyst
TL-969-3985, external: (905)-413-3985

"Cameron Bateman" <cameron.bateman@xxxxxxxxxx>
Sent by: wtp-dev-bounces@xxxxxxxxxxx

02/13/2008 01:30 PM

Please respond to
"cameron.bateman@xxxxxxxxxx" <cameron.bateman@xxxxxxxxxx>; Please respond to
"General discussion of project-wide or architectural issues."        <wtp-dev@xxxxxxxxxxx>

"wtp-dev@xxxxxxxxxxx" <wtp-dev@xxxxxxxxxxx>
[wtp-dev] Disabling validation in JUnit tests

We have for some time using the code below under the belief that it would disable build validation, however stack traces I'm seeing in our JUnit output lead me to believe that validation is running.  Are there other things that need to be done to disable validation in builds?

final GlobalConfiguration config = new GlobalConfiguration(ConfigurationManager.getManager().getGlobalConfiguration());




wtp-dev mailing list

Back to the top