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

sft.report.decorators.HtmlTable Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright (c) 2013, 2014 Sylvain Lézier.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Sylvain Lézier - initial implementation
 *******************************************************************************/
package sft.report.decorators;

import sft.DefaultConfiguration;
import sft.decorators.Decorator;
import sft.result.FixtureCallResult;

import java.util.List;

public class HtmlTable extends HtmlDecorator {

    public HtmlTable(DefaultConfiguration configuration) {
        super(configuration);
    }

    @Override
    public String applyOnFixtures(List fixtureCallResuts, String... parameters) {
        String result = "";
        final String title = getTitle(parameters);
        if(title != null ){
            result+="";
        }
        result+="";
        result+="";
        for (String paramaterName : fixtureCallResuts.get(0).fixtureCall.fixture.parametersName) {
            result+="";
        }
        result+="";

        result+="";
        result+="";
        for (FixtureCallResult fixtureCallResutfixture : fixtureCallResuts) {
            result+="" ;
            for (String value : fixtureCallResutfixture.fixtureCall.parametersValues) {
                result+="";
            }

            result+="";
        }
        result+="";
        return result+"
"+ title +"
" +paramaterName+"
" +value+"
"; } private String getTitle(String... parameters){ return parameters[0]; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy