Annotations

To allow you to include Concordion specifications in the build before they have been fully implemented, you can annotate a fixture class with one of the following annotations in org.concordion.api:

  SUCCESS is only reported if...
@ExpectedToPass The specification contains zero or more successes, no failures, and no exceptions.
@ExpectedToFail The specification contains one or more failures or exceptions.

Note: When you use the @ExpectedToFail annotation, the specification must contain failures or exceptions. The final result will be reported as a FAILURE if the specification only has successes. This means you can't forget to change the annotation to @ExpectedToPass when the test begins to pass for the first time, and prevents you unwittingly introducing regression bugs.

@Unimplemented The specification contains no successes, no failures, and no exceptions.

Also note:

Example Usage

import org.concordion.api.ExpectedToFail;
import org.concordion.integration.junit3.ConcordionTestCase;

@ExpectedToFail
public class GreetingTest extends ConcordionTestCase {

   public String greetingFor(String firstName) {
        ...
   }