Package hudson.tasks

Examples of hudson.tasks.JavadocArchiver


    public void testAllowOverrideValue() {
        assertFalse(property.allowOverrideValue(null, null));
        assertTrue(property.allowOverrideValue(new Object(), null));
        assertTrue(property.allowOverrideValue(null, new Object()));
        //Test properties that don't have correct equals methods
        assertFalse(property.allowOverrideValue(new JavadocArchiver("", false), new JavadocArchiver("", false)));
        assertTrue(property.allowOverrideValue(new JavadocArchiver("", true), new JavadocArchiver("", false)));
        //Object with transient filds should be taken into account
        assertTrue(property.allowOverrideValue(new AxisList(new Axis("DB", "mysql")), new AxisList()));
        assertTrue(property.allowOverrideValue(new AxisList(new Axis("DB", "mysql")),
            new AxisList(new Axis("DB", "mysql", "mssql"))));
        assertTrue(property.allowOverrideValue(new AxisList(new Axis("DB", "mysql")),
View Full Code Here


        JSONObject json = new JSONObject();
        json.put(javadocArchiverKey, archiver);
        Hudson hudson = createMock(Hudson.class);
        Descriptor<Publisher> javadocDescriptor = new JavadocArchiver.DescriptorImpl();
        expect(hudson.getDescriptorOrDie(JavadocArchiver.class)).andReturn(javadocDescriptor);
        JavadocArchiver javadocArchiver = new JavadocArchiver("dir", true);
        expect(req.bindJSON(JavadocArchiver.class, archiver)).andReturn(javadocArchiver).anyTimes();

        List<Descriptor<Publisher>> descriptors = new ArrayList<Descriptor<Publisher>>();
        descriptors.add(javadocDescriptor);
View Full Code Here

TOP

Related Classes of hudson.tasks.JavadocArchiver

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.