<?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 Re: Tests failing on fresh checkout in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/tests-failing-on-fresh-checkout/m-p/161141#M115092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The first test should run OK. What is your dev environment … OS, JVM, IDE ? Are you running from Ant or the IDE ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The second test requires that the javac encoding is set to UTF-8 (see also build.properties).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Feb 2008 13:30:44 GMT</pubDate>
    <dc:creator>janv</dc:creator>
    <dc:date>2008-02-22T13:30:44Z</dc:date>
    <item>
      <title>Tests failing on fresh checkout</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/tests-failing-on-fresh-checkout/m-p/161140#M115091</link>
      <description>We just started on a project where we have decided to use Alfresco as the CMS tool. As we might be making some modifications, and adding some features specific to our requirement, I was trying to do an initial checkout and run all the tests to ensure that we started from a clean base. But we hit a r</description>
      <pubDate>Fri, 22 Feb 2008 10:43:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/tests-failing-on-fresh-checkout/m-p/161140#M115091</guid>
      <dc:creator>ashish</dc:creator>
      <dc:date>2008-02-22T10:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Tests failing on fresh checkout</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/tests-failing-on-fresh-checkout/m-p/161141#M115092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The first test should run OK. What is your dev environment … OS, JVM, IDE ? Are you running from Ant or the IDE ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The second test requires that the javac encoding is set to UTF-8 (see also build.properties).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 13:30:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/tests-failing-on-fresh-checkout/m-p/161141#M115092</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2008-02-22T13:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Tests failing on fresh checkout</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/tests-failing-on-fresh-checkout/m-p/161142#M115093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I notice that the first test was not re-runnable (due to testCopy) hence would only succeed once after a fresh install/bootstrap. I have now fixed the test by changing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;assertNull("Missing key should return null value", registryService.getProperty(KEY_X_Y_Z_0));&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;assertNull("Missing key should return null value", registryService.getProperty(KEY_DOES_NOT_EXIST));&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 16:05:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/tests-failing-on-fresh-checkout/m-p/161142#M115093</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2008-02-22T16:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Tests failing on fresh checkout</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/tests-failing-on-fresh-checkout/m-p/161143#M115094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply, and the fix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our dev environment is Win XP, JDK 1.6.0_04 and Eclipse. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We are trying to run the tests from Ant. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Running tests from IDE fails even more miserably with issues with the classpath, but could be due to the fact that I have always used IntelliJ, and Eclipse seems a bit unfamiliar to me. But I was just trying to follow the setup directions given on the wiki.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The same RegistryServiceImplTest failed with "java.io.FileNotFoundException: class path resource [alfresco/application-context.xml] cannot be opened because it does not exist". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the second test, if it requires javac encoding to be set to UTF-8, then thats already the case in build.properties, as you pointed out. Any reason why it should still fail?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ashish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 05:20:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/tests-failing-on-fresh-checkout/m-p/161143#M115094</guid>
      <dc:creator>ashish</dc:creator>
      <dc:date>2008-02-25T05:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Tests failing on fresh checkout</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/tests-failing-on-fresh-checkout/m-p/161144#M115095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you have downloaded and setup your env as per &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Alfresco_SVN_Development_Environment" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Alfresco_SVN_Development_Environment&lt;/A&gt;&lt;SPAN&gt; and cleaned and re-built everything using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;cd &amp;lt;dev-head&amp;gt;/code/root&lt;BR /&gt;ant build-tomcat&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;then you can try running individual test classes, eg:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ant run-test -Dtestcase=org.alfresco.repo.admin.registry.RegistryServiceImplTest -Dprojectdir=./projects/repository&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;In the first test, please check that 'application-context.xml' still exists in '&amp;lt;dev-head&amp;gt;/code/root/projects/repository/config/alfresco' (as referenced by 'classpath.unit.test' in 'build.xml') and that the basedir has not been overridden, eg.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ant dump-env-properties&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;In the second test, you will also need to pre-configure your DB character set to be UTF8 by default. For example, if you're using MySQL on Windows then you can use MySQL Administrator -&amp;gt; Startup Variables -&amp;gt; Advanced panel to set the Default Character Set to 'utf8'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 17:14:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/tests-failing-on-fresh-checkout/m-p/161144#M115095</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2008-02-25T17:14:42Z</dc:date>
    </item>
  </channel>
</rss>

