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

info.novatec.testit.livingdoc.annotation.SurplusAnnotation Maven / Gradle / Ivy

package info.novatec.testit.livingdoc.annotation;

import static info.novatec.testit.livingdoc.LivingDoc.$;

import info.novatec.testit.livingdoc.Text;


public class SurplusAnnotation implements Annotation {
    @Override
    public void writeDown(Text text) {
        text.setStyle(Styles.BACKGROUND_COLOR, Colors.RED);
        text.setContent(message() + text.getContent());
    }

    private String message() {
        StringBuilder message = new StringBuilder();
        message.append("").append($("surplus")).append(" ");
        return message.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy