Search in sources :

Example 1 with ListView

use of hudson.model.ListView in project support-core-plugin by jenkinsci.

the class SensitiveContentFilterTest method anonymizeViews.

@Issue("JENKINS-21670")
@Test
public void anonymizeViews() throws IOException {
    SensitiveContentFilter filter = SensitiveContentFilter.get();
    j.getInstance().addView(new ListView("foobar"));
    filter.reload();
    String foobar = filter.filter("foobar");
    assertThat(foobar).startsWith("view_").doesNotContain("foobar");
}
Also used : ListView(hudson.model.ListView) Issue(org.jvnet.hudson.test.Issue) Test(org.junit.Test)

Example 2 with ListView

use of hudson.model.ListView in project promoted-builds-plugin by jenkinsci.

the class LastBuildPromotionStatusColumnTest method initView.

@Before
public void initView() throws IOException {
    view = new ListView("testView", j.jenkins);
    column = new LastBuildPromotionStatusColumn();
    view.getColumns().add(column);
    j.jenkins.addView(view);
}
Also used : ListView(hudson.model.ListView) Before(org.junit.Before)

Aggregations

ListView (hudson.model.ListView)2 Before (org.junit.Before)1 Test (org.junit.Test)1 Issue (org.jvnet.hudson.test.Issue)1