Package jenkins.plugins.hipchat

Source Code of jenkins.plugins.hipchat.StandardHipChatServiceTest

package jenkins.plugins.hipchat;

import jenkins.plugins.hipchat.StandardHipChatService;
import org.junit.Before;
import org.junit.Test;

public class StandardHipChatServiceTest {

    /**
     * Publish should generally not rethrow exceptions, or it will cause a build job to fail at end.
     */
    @Test
    public void publishWithBadHostShouldNotRethrowExceptions() {
        StandardHipChatService service = new StandardHipChatService("token", "room", "from");
        service.setHost("hostvaluethatwillcausepublishtofail");
        service.publish("message");
    }
}
TOP

Related Classes of jenkins.plugins.hipchat.StandardHipChatServiceTest

TOP
Copyright © 2018 www.massapi.com. 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.