Tuesday, February 27th, 2018
A lot of features are already included in the Neo4j graph database system but sometimes we want to extends its capabilities and implement functions and procedures by ourselves that we may reuse.
In the following tutorial I will demonstrate how to implement a procedure for Neo4j, how to write and run tests using JUnit and an embedded graph database and last but not least how to setup Neo4j with Docker and our stored procedure installed in no time.
(more…)
Tags: apoc, cypher, embedded, graph, junit, metrics, neo4j, nosql, procedure, quality, rule, stored, tdd, testing
Posted in Java | No Comments »
Thursday, March 30th, 2017
Drools is a slim Business Rules Management System (BRMS) solution with different integrations and tools available.
In the following short snippet I’d like to demonstrate how to integrate a simple rule engine into an application using this library.
(more…)
Tags: activiti, bpm, brms, drools, guvnor, jboss, redhat, rule, rule-engine
Posted in Java | No Comments »
Tuesday, February 21st, 2012
JUnit Rules are a handy solution if one needs to alter test methods or wants to share common functionality between several test cases. JUnit 4.10 introduced a new class to order several rules according to our needs using a so called rule-chain.
In the following example, we’re going to create a simple custom rule and afterwards bind several instances of it in a specified order to a test method.
(more…)
Tags: Api, classrule, externalresource, junit, rule, rulechain, tdd, testing, testrule
Posted in Java, testing | 7 Comments »