Package hudson.model

Examples of hudson.model.ListView


/**
* @author Kohsuke Kawaguchi
*/
public class ListViewColumnTest extends HudsonTestCase {
    public void testCreateView() throws Exception {
        hudson.addView(new ListView("test"));
        submit(createWebClient().goTo("view/test/configure").getFormByName("viewConfig"));
    }
View Full Code Here


        // since we didn't create a view, if we go back, we should see the warning again
        p = new WebClient().goTo("manage");
        assertNotNull(p.getFormByName(mon.id));

        // once we create a view, the message should disappear
        hudson.addView(new ListView("test"));

        verifyNoForm();
    }
View Full Code Here

        MetadataJobProperty property2 = project2.getProperty(MetadataJobProperty.class);
        property2.addChildren(list);

        MetadataViewJobFilter filter = new MetadataViewJobFilter("name=value");

        ListView view = new ListView("Test", hudson);
        view.getJobFilters().add(filter);
        hudson.addView(view);

        WebClient web = createWebClient();
        Page page = web.goTo("/view/Test/api/json", "application/json");
        JSONObject json = (JSONObject)JSONSerializer.toJSON(page.getWebResponse().getContentAsString());
View Full Code Here

TOP

Related Classes of hudson.model.ListView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.