public void testTrivialRecorder() throws Exception {
FreeStyleProject project = createFreeStyleProject("trivialtest");
TrivialTestResultRecorder recorder = new TrivialTestResultRecorder();
project.getPublishersList().add(recorder);
project.getBuildersList().add(new TouchBuilder());
FreeStyleBuild build = project.scheduleBuild2(0).get(5, TimeUnit.MINUTES); /* leave room for debugging*/
assertBuildStatus(Result.SUCCESS, build);
TrivialTestResultAction action = build.getAction(TrivialTestResultAction.class);
assertNotNull("we should have an action", action);