<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unit test not loading custom document type in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/unit-test-not-loading-custom-document-type/m-p/328616#M15617</link>
    <description>&lt;P&gt;I have got this error&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt; java.lang.IllegalArgumentException: DR_DRF is not a registered core type&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;My test class is like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@RunWith(FeaturesRunner.class)
@Features({RuntimeFeature.class, PlatformFeature.class, CoreFeature.class})
@RepositoryConfig(init = DefaultRepositoryInit.class, cleanup = Granularity.METHOD)
@Deploy({"com.bigcorp.contractmgt.contract-mgt-project-core", "studio.extensions.workflow-dr-eduardo"})
...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I can see in the logs that it seems the module is not loading properly.&lt;/P&gt;
&lt;P&gt;The document type exists and can be seen at the images attached&lt;/P&gt;
&lt;P&gt;I've also tried with prefix&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;18:34:22,250 ERROR [OSGiRuntimeService] Nuxeo Platform Started
======================================================================
= Component Loading Status: Pending: 1 / Unstarted: 0 / Total: 100
* service:studio.extensions.workflow-dr-eduardo requires [service:org.nuxeo.ecm.directory.sql.storage]

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;After some research I have tried to add &lt;CODE&gt;@Deploy({"org.nuxeo.runtime",&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;And got this error&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;Suppressed: org.osgi.framework.BundleException: Failed to start bundle at: /Users/eduardo/Documents/nuxeo-cap-8.3-tomcat-sdk/nxserver/bundles/nuxeo-runtime-8.3.jar with activator: org.nuxeo.runtime.osgi.OSGiRuntimeActivator&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;What am I missing?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://app.quandora.com/object/4ce9b845-acb9-4878-bce8-df3e094655b3"&gt;Nelson Silva&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Tks
Eduardo&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2016 22:49:13 GMT</pubDate>
    <dc:creator>Eduardo_Rodrigu</dc:creator>
    <dc:date>2016-11-28T22:49:13Z</dc:date>
    <item>
      <title>Unit test not loading custom document type</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/unit-test-not-loading-custom-document-type/m-p/328616#M15617</link>
      <description>&lt;P&gt;I have got this error&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt; java.lang.IllegalArgumentException: DR_DRF is not a registered core type&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;My test class is like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@RunWith(FeaturesRunner.class)
@Features({RuntimeFeature.class, PlatformFeature.class, CoreFeature.class})
@RepositoryConfig(init = DefaultRepositoryInit.class, cleanup = Granularity.METHOD)
@Deploy({"com.bigcorp.contractmgt.contract-mgt-project-core", "studio.extensions.workflow-dr-eduardo"})
...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I can see in the logs that it seems the module is not loading properly.&lt;/P&gt;
&lt;P&gt;The document type exists and can be seen at the images attached&lt;/P&gt;
&lt;P&gt;I've also tried with prefix&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;18:34:22,250 ERROR [OSGiRuntimeService] Nuxeo Platform Started
======================================================================
= Component Loading Status: Pending: 1 / Unstarted: 0 / Total: 100
* service:studio.extensions.workflow-dr-eduardo requires [service:org.nuxeo.ecm.directory.sql.storage]

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;After some research I have tried to add &lt;CODE&gt;@Deploy({"org.nuxeo.runtime",&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;And got this error&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;Suppressed: org.osgi.framework.BundleException: Failed to start bundle at: /Users/eduardo/Documents/nuxeo-cap-8.3-tomcat-sdk/nxserver/bundles/nuxeo-runtime-8.3.jar with activator: org.nuxeo.runtime.osgi.OSGiRuntimeActivator&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;What am I missing?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://app.quandora.com/object/4ce9b845-acb9-4878-bce8-df3e094655b3"&gt;Nelson Silva&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Tks
Eduardo&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 22:49:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/unit-test-not-loading-custom-document-type/m-p/328616#M15617</guid>
      <dc:creator>Eduardo_Rodrigu</dc:creator>
      <dc:date>2016-11-28T22:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unit test not loading custom document type</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/unit-test-not-loading-custom-document-type/m-p/328617#M15618</link>
      <description>&lt;P&gt;With help from Frédéric I managed to address this.&lt;/P&gt;
&lt;P&gt;This link contains the initial setup to test with Documents&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/fvadon/nuxeo-labs-dam-studio-test" target="test_blank"&gt;https://github.com/fvadon/nuxeo-labs-dam-studio-test&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2016 23:35:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/unit-test-not-loading-custom-document-type/m-p/328617#M15618</guid>
      <dc:creator>Eduardo_Rodrigu</dc:creator>
      <dc:date>2016-12-04T23:35:01Z</dc:date>
    </item>
  </channel>
</rss>

