Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code cleanup; decouple route processing #12

Merged
merged 1 commit into from Apr 13, 2015
Merged

code cleanup; decouple route processing #12

merged 1 commit into from Apr 13, 2015

Conversation

acoburn
Copy link
Contributor

@acoburn acoburn commented Apr 13, 2015

This addresses: https://jira.duraspace.org/browse/FCREPO-1459

In addition, it cleans up the code significantly by adding a dedicated AuditHeader class for headers such as the one for the event.baseUri property, using a more standard Camel format. It also puts the RDF namespaces into a shared location for easier re-use.

The EventRouter class has been pulled apart into two simple routes, and the testing has been bifurcated into tests that verify the Processor class ProcessorTest and tests that check the actual Routes RouteTest. The RouteTests make significant use of the AdviceWith features so that we can bypass the need for an actual JMS broker in the unit tests. Doing so makes the tests run much faster as all the processor tests don't keep trying to connect to a local JMS broker.

awoods pushed a commit that referenced this pull request Apr 13, 2015
code cleanup; decouple route processing
@awoods awoods merged commit a4a345c into fcrepo-exts:master Apr 13, 2015
@acoburn acoburn deleted the fcrepo-1459 branch August 17, 2015 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants