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");
}
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);
}