Denis Golovin [http://community.jboss.org/people/dgolovin] commented on the 
document

"How to Make Your JUnit Tests Run Faster in Eclipse"

To view all comments on this document, visit: 
http://community.jboss.org/docs/DOC-15108#comment-3085

--------------------------------------------------
JavaModelManager.getIndexManager().disable();
JavaModelManager.getIndexManager().enable();

But be aware that it is not good approach to have indexing disabled TestCase 
with many test* methods in startUp and enabled in tearDown, because those 
methods will be exectuted before and after each test method. This will not 
improve performance because as soon as you enable it, indexing starts and next 
method will wait until it is finished. It make sense to use disable/enable java 
indexing as part of TestSetup wrapper implementation, so it is called once for 
all tests inside suite.

--------------------------------------------------

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to