In com.nuxeo.brand.management.tests.suggesters.TestSuggesters, unit tests should use the page providers defined in the Studio project.
However the Partial Deploy is failing to deploy those with this adding:
addTargetExtension("org.nuxeo.ecm.platform.query.api.PageProviderService", "providers");
Stack trace:
11:37:10,971 ERROR [ComponentManagerImpl] Failed to load contributions for component service:studio.extensions.nbm-partial
java.lang.NullPointerException
at org.nuxeo.osgi.BundleImpl.loadClass(BundleImpl.java:155)
at org.nuxeo.runtime.osgi.OSGiRuntimeContext.loadClass(OSGiRuntimeContext.java:100)
at org.nuxeo.runtime.model.impl.XMapContext.loadClass(XMapContext.java:47)
Workaround: duplicated Studio's page provider in test resources.
- is related to
-
NXP-24593 Cannot use Notification templates from Studio in a Unit test
- Resolved