Skip to content

Commit

Permalink
Adding tests for NullDeployment
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-richardson committed Feb 24, 2016
1 parent dd47fa0 commit 5dbab5e
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.mjrichardson.teamCity.buildTriggers.DeploymentComplete;

import com.mjrichardson.teamCity.buildTriggers.NullOctopusDate;
import org.testng.Assert;
import org.testng.annotations.Test;

@Test
public class NullDeploymentTest {
public void null_release_sets_fields_to_empty() {
Deployment sut = new NullDeployment();
Assert.assertEquals(sut.environmentId, "");
Assert.assertEquals(sut.latestDeployment.getClass(), NullOctopusDate.class);
Assert.assertEquals(sut.latestSuccessfulDeployment.getClass(), NullOctopusDate.class);
}
}

0 comments on commit 5dbab5e

Please sign in to comment.