-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Right--the tests out of the box use configuration properties like 
"portal.dataSource.url=jdbc:h2:mem:portal;DB_CLOSE_DELAY=-1" and are not 
coupled to the persistent DB.  

For making extensions, local changes, etc (the second question), it may be 
worth following the "extensions" guidelines at 
http://incubator.apache.org/rave/documentation/rave-extensions.html. You create 
a skeleton project that has just your changes.


Marlon


On 1/26/12 10:12 AM, Jasha Joachimsthal wrote:
> Are you running the unit tests against a MySQL db as well? That may cause
> issues because we expect an in-memory database which is cleared after each
> run. If you use a persistent database for unit tests, it may already been
> "polluted".
> The MySQL db should only be needed to run Rave, not to test it.
> 
> Jasha Joachimsthal
> 
> Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 4466
> US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll free)
> 
> www.onehippo.com
> 
> 
> On 26 January 2012 14:50, Anne-Hélène Turpin
> <[email protected]>wrote:
> 
>>  Hi rave developers,
>>
>> First of all, congratulations for your work. Rave is a promising project
>> but I have some questions.
>>
>> I'm chekout the latest sources of Rave from your subversion repository.
>> I'm using MySQL database. When I build the project, I've got a failure on
>> the test :
>> *"Failed tests:
>> save_duplicateText_exception(org.apache.rave.portal.repository.impl.JpaCategoryRepositoryTest):
>> Expected to get a PersistenceException due to Unique Constraint Violation"
>> *
>>
>> I have to modify the JpaCategoryRepositoryTest class so that build
>> succeed. Here are the corrections I made :
>> *//catch (PersistenceException e) {
>>  catch (Exception e) {
>>             //assertThat(e.getCause().toString().contains("Unique"),
>> is(true));
>>             assertThat(e.getCause().getMessage().contains("Duplicate"),
>> is(true));
>>             /* Fin modif AHT */
>>             gotExpectedException = true;
>>
>> *Am I* *the only one to encounter this problem ?*
>>
>> *I have a second question. I try to custom the Rave portal with a
>> personal CSS. I follow the instruction of the documentation web page but I
>> don't find where I can change the default settings in the portal
>> preferences page of the administrator. I just can modify the number of
>> element per page or the page title. May I have to develop this ? Or may I
>> replace the custom css of rave vanilla extension ?
>>
>> Thanks for your help.
>> Anne-Hélène
>>
>> --
>> Anne-Hélène TURPIN
>> Renater
>> Service Applicatif aux Utilisateurs
>> Tel : +33 2 23 23 71 42
>>
>>
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPIXSOAAoJEEfVXEODPFIDpUEIAKZMbFbJAELwnNFd8Obx+g+2
4kBM4DfVekKkF6TeybcrOmS42e24ee4tHqhw/2o8pb4a3gQZ3d6VMUJosXCNPw9Q
0Q0g/5iSPR3yjIgVBeMtAeSCInQ+REILFD1QBCkuLuGynO5y8orCzk0H5UxH525b
y5B+OM2006SKrkCpdVWEVhOSml5qSZyN6lgx/VZPoA5eQt2IbQx09S2+6uXbEhK/
gF0a0BAd7GcrWt5y7otn51SfRI6VJUtionVyz1tHMePRd8l239NRV+b8k3iIR+be
aJEDYK4JqLOyN4IrQUFgTCmJh3Rvzw6RF83XlfkF24z/Bcg2EK6RDeyIYcxDllM=
=5iji
-----END PGP SIGNATURE-----

Reply via email to