![JAR search and dependency download from the Maven repository](/logo.png)
sft.report.decorators.HtmlTable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SimpleFunctionalTest Show documentation
Show all versions of SimpleFunctionalTest Show documentation
A JUnit extension to easily adopt functional testing and acceptance testing
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+=""+ title +" ";
}
result+="";
result+="";
for (String paramaterName : fixtureCallResuts.get(0).fixtureCall.fixture.parametersName) {
result+="" +paramaterName+" ";
}
result+=" ";
result+="";
result+="";
for (FixtureCallResult fixtureCallResutfixture : fixtureCallResuts) {
result+="" ;
for (String value : fixtureCallResutfixture.fixtureCall.parametersValues) {
result+="" +value+" ";
}
result+=" ";
}
result+="";
return result+"
";
}
private String getTitle(String... parameters){
return parameters[0];
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy