All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.greenpepper.call.AnnotateWrong Maven / Gradle / Ivy

There is a newer version: 4.2.4
Show newest version
package com.greenpepper.call;

import com.greenpepper.Annotatable;
import com.greenpepper.annotation.WrongAnnotation;

/**
 * 

AnnotateWrong class.

* * @author oaouattara * @version $Id: $Id */ public class AnnotateWrong implements Stub { private Annotatable annotatable; private final boolean detailed; /** *

Constructor for AnnotateWrong.

* * @param annotatable a {@link com.greenpepper.Annotatable} object. * @param withDetails a boolean. */ public AnnotateWrong( Annotatable annotatable, boolean withDetails ) { this.annotatable = annotatable; this.detailed = withDetails; } /** {@inheritDoc} */ public void call( Result result ) { WrongAnnotation wrong = new WrongAnnotation(); if (detailed) wrong.giveDetails( result.getExpected(), result.getActual() ); annotatable.annotate( wrong ); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy