<?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 Spring Test Dependency in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/spring-test-dependency/m-p/148733#M39298</link>
    <description>&lt;P&gt;Hi guys, I need help adding dependencies into an Alfresco Platform Archetype Project. I need to test a couple of classes but to do that I need to the spring-test dependency, which is not included in the main community version of Alfresco. I would like to add this to the pom.xml file:&lt;/P&gt;&lt;PRE&gt;&amp;lt;dependency&amp;gt;
            &amp;lt;groupId&amp;gt;org.springframework&amp;lt;/groupId&amp;gt;
            &amp;lt;artifactId&amp;gt;spring-test&amp;lt;/artifactId&amp;gt;
            &amp;lt;version&amp;gt;5.3.9&amp;lt;/version&amp;gt;
            &amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/PRE&gt;&lt;P&gt;But if I do so, whenever I make the test run, it gives me this message and the test won't run:&lt;/P&gt;&lt;PRE&gt;java.lang.illegalstateexception: could not load testcontextbootstrapper [null]. specify @bootstrapwith's 'value' attribute or make the default bootstrapper class available.&lt;/PRE&gt;&lt;P&gt;Is there any way to add this dependency without getting the error message? Am I doing something wrong?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2022 07:31:12 GMT</pubDate>
    <dc:creator>fsanna</dc:creator>
    <dc:date>2022-04-26T07:31:12Z</dc:date>
    <item>
      <title>Spring Test Dependency</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/spring-test-dependency/m-p/148733#M39298</link>
      <description>&lt;P&gt;Hi guys, I need help adding dependencies into an Alfresco Platform Archetype Project. I need to test a couple of classes but to do that I need to the spring-test dependency, which is not included in the main community version of Alfresco. I would like to add this to the pom.xml file:&lt;/P&gt;&lt;PRE&gt;&amp;lt;dependency&amp;gt;
            &amp;lt;groupId&amp;gt;org.springframework&amp;lt;/groupId&amp;gt;
            &amp;lt;artifactId&amp;gt;spring-test&amp;lt;/artifactId&amp;gt;
            &amp;lt;version&amp;gt;5.3.9&amp;lt;/version&amp;gt;
            &amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/PRE&gt;&lt;P&gt;But if I do so, whenever I make the test run, it gives me this message and the test won't run:&lt;/P&gt;&lt;PRE&gt;java.lang.illegalstateexception: could not load testcontextbootstrapper [null]. specify @bootstrapwith's 'value' attribute or make the default bootstrapper class available.&lt;/PRE&gt;&lt;P&gt;Is there any way to add this dependency without getting the error message? Am I doing something wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 07:31:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/spring-test-dependency/m-p/148733#M39298</guid>
      <dc:creator>fsanna</dc:creator>
      <dc:date>2022-04-26T07:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Spring Test Dependency</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/spring-test-dependency/m-p/148734#M39299</link>
      <description>&lt;P&gt;What exactly you are trying to test via "spring-test"? What is the use case ? If you can elaborate your requirement, it will be helpful to understand and suggest the possible options.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 17:40:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/spring-test-dependency/m-p/148734#M39299</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2022-04-28T17:40:22Z</dc:date>
    </item>
  </channel>
</rss>

