Skip to content
Browse files

Test for JENKINS-28983

  • Loading branch information
MadsNielsen committed Aug 27, 2015
1 parent f3fcb30 commit ef86ba75004b6f5c4c78ab59559b91bbc59bc08d
@@ -0,0 +1,37 @@
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
package net.praqma.jenkins.configrotator.unit.scm.clearcase;

import hudson.model.TaskListener;
import net.praqma.jenkins.configrotator.AbstractConfiguration;
import net.praqma.jenkins.configrotator.ConfigurationRotatorBuildAction;
import net.praqma.jenkins.configrotator.scm.clearcaseucm.ClearCaseUCMConfiguration;
import net.praqma.jenkins.configrotator.scm.clearcaseucm.ClearCaseUCMPostBuild;
import static;
import static org.junit.Assert.assertThat;
import org.junit.Test;
import org.mockito.Mockito;

* @author Mads
public class ClearCaseUCMPostBuildTest {

public void testBasicPerform() {
TaskListener listener = Mockito.mock(TaskListener.class);

ConfigurationRotatorBuildAction ac = Mockito.mock(ConfigurationRotatorBuildAction.class);
AbstractConfiguration a = new ClearCaseUCMConfiguration();

ClearCaseUCMPostBuild postbuilder = new ClearCaseUCMPostBuild();
boolean res = postbuilder.perform(null, listener, ac);
assertThat(res, is(true));

0 comments on commit ef86ba7

Please sign in to comment.
You can’t perform that action at this time.