package com.vaadin.tests.application;
import java.util.Properties;
import com.vaadin.server.VaadinRequest;
import com.vaadin.shared.ui.MarginInfo;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.ui.Label;
public class DeploymentConfiguration extends AbstractReindeerTestUI {
@Override
protected void setup(VaadinRequest request) {
Properties params = getSession().getConfiguration().getInitParameters();
getLayout().setMargin(new MarginInfo(true, false, false, false));
for (Object key : params.keySet()) {
addComponent(
new Label(key + ": " + params.getProperty((String) key)));
}
}
@Override
protected String getTestDescription() {
return "Init parameters:";
}
}