Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Fluent assertions for writing integration (remote unit) tests for Alfresco

License

Notifications You must be signed in to change notification settings

ixxus/alfresco-test-assertions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ixxus

Alfresco Test Assertions

License

Fluent assertions for writing integration (remote unit) tests for Alfresco.

Include in your project

<dependency>
    <groupId>com.ixxus.alfresco</groupId>
    <artifactId>alfresco-test-assertions</artifactId>
    <version>1</version>
</dependency>

Syntax

Using the com.ixxus.alfresco.NodeAssert, assertions on nodes can be written like this:

assertThat(nodeRef).exists().hasAspect(ContentModel.ASPECT_EMAILED).hasPropertyValue(ContentModel.PROP_NAME, "This is a node's name");

For more examples, check out com.ixxus.alfresco.NodeAssertTest.

There's also a custom assertion for testing Alfresco sites. See com.ixxus.alfresco.SiteAssert and how to use it