Search in sources :

Example 31 with ListView

use of org.jenkinsci.test.acceptance.po.ListView in project acceptance-test-harness by jenkinsci.

the class AbstractAnalysisTest method addListViewColumn.

/**
 * Creates a new view and adds the given column to the view.
 *
 * @param columnClass the type of the column to add
 * @param owner       the owner of this view
 * @param <T>         the concrete type of the ListViewColumn
 * @return the created view
 */
protected <T extends ListViewColumn> ListView addListViewColumn(final Class<T> columnClass, final Container owner) {
    ListView view = createNewViewForAllJobs(ListView.class, owner);
    view.addColumn(columnClass);
    view.save();
    return view;
}
Also used : ListView(org.jenkinsci.test.acceptance.po.ListView)

Aggregations

ListView (org.jenkinsci.test.acceptance.po.ListView)31 Test (org.junit.Test)28 FreeStyleJob (org.jenkinsci.test.acceptance.po.FreeStyleJob)27 AbstractJUnitTest (org.jenkinsci.test.acceptance.junit.AbstractJUnitTest)26 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)20 View (org.jenkinsci.test.acceptance.po.View)20 Job (org.jenkinsci.test.acceptance.po.Job)18 WithPlugins (org.jenkinsci.test.acceptance.junit.WithPlugins)13 Build (org.jenkinsci.test.acceptance.po.Build)4 Pattern (java.util.regex.Pattern)3 SmokeTest (org.jenkinsci.test.acceptance.junit.SmokeTest)3 Category (org.junit.experimental.categories.Category)2 WebElement (org.openqa.selenium.WebElement)2 URL (java.net.URL)1 AnalysisCollectorColumn (org.jenkinsci.test.acceptance.plugins.analysis_collector.AnalysisCollectorColumn)1 JobDslBuildStep (org.jenkinsci.test.acceptance.plugins.job_dsl.JobDslBuildStep)1 BuildWithParameters (org.jenkinsci.test.acceptance.po.BuildWithParameters)1 MatrixProject (org.jenkinsci.test.acceptance.po.MatrixProject)1 StringParameter (org.jenkinsci.test.acceptance.po.StringParameter)1 Issue (org.jvnet.hudson.test.Issue)1