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

com.aventstack.extentreports.markuputils.MarkupHelper Maven / Gradle / Ivy

package com.aventstack.extentreports.markuputils;

public class MarkupHelper {
    
    private MarkupHelper() { }
    
    public static Markup createLabel(String text, ExtentColor color) {
        Label l = new Label();
        l.setText(text);
        l.setColor(color);        
        return l;
    }
    
    public static Markup createCodeBlock(String code) {
        CodeBlock cb = new CodeBlock();
        cb.setCodeBlock(code);
        return cb;
    }
    
    public static Markup createTable(String[][] data) {
        Table t = new Table();
        t.setData(data);
        return t;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy