AnsweredAssumed Answered

Writing fluent assertions for Alfresco

Question asked by alex.lu1 on Jun 26, 2017

Hello everyone, 

 

In Ixxus, we extended from AssertJ and created a assertion library for developing using Alfresco. It's helped us tremendously in writing easy to read test assertions. Just look at the example below:

 

assertThat(someNodeRef).isType(ContentModel.TYPE_CONTENT).exists().hasAspect(ContentModel.ASPECT_VERSIONABLE);

We decided to make it available to everyone in the community. The project is under Apache 2 license and we would like to welcome everyone to contribute and make the library better. Simply submit a pull request.

 

Alfresco Test Assertions Blog Entry by ixxus

Alfresco Test Assertions GitHub repository

Outcomes