Sample: JUnit test

This sample shows an example of a JUnit test client that uses the TestDriver API to create events, entities, and concepts.

Time required

10 minutes

Prerequisites

You must have Decision Server Insights installed to use this sample.

You must be able to start the sample server.

Description

A test driver helps you test and debug your solutions, manage entities, determine the system and solution status, and create and submit events to Insight Server.

In this sample, the test client, JUnitClient, simulates the creation of a customer account and some purchase events. An agent, JUnitRuleAgent, processes the events by using rules that update the customer status depending on the amount or the frequency of the customer's purchases.