Clone
Thomas Delhoménie <tdelhomenie@exoplatform.com>
committed
on 24 Oct 18
JCR-2461 : make sure JCR namespaces used in tests exist
Some methods of the test class org.exoplatform.services.jcr.api.namespaces.TestNames… Show more
JCR-2461 : make sure JCR namespaces used in tests exist

Some methods of the test class org.exoplatform.services.jcr.api.namespaces.TestNamespaceRegistry use namespaces created in the method org.exoplatform.services.jcr.api.namespaces.TestNamespaceRegistry#testQueryNsPropName.

If this method is executed after the others methods, the namespaces do not exist and the tests fail.

This fix registers at the beginning of each test method the namespaces used in the method to make sure they exist (if the namespace already exists, it is registered again).

Show less