-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd47fa0
commit 5dbab5e
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
...t/java/com/mjrichardson/teamCity/buildTriggers/DeploymentComplete/NullDeploymentTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |