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 > >
