-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatic version detection. Log details.
- Loading branch information
1 parent
0c399ec
commit a71d554
Showing
3 changed files
with
58 additions
and
7 deletions.
There are no files selected for viewing
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
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
22 changes: 22 additions & 0 deletions
22
src/test/java/com/mabl/integration/jenkins/MablConstantsTest.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,22 @@ | ||
package com.mabl.integration.jenkins; | ||
|
||
import org.junit.Test; | ||
|
||
import static com.mabl.integration.jenkins.MablStepConstants.PLUGIN_VERSION_UNKNOWN; | ||
import static com.mabl.integration.jenkins.MablStepConstants.getPluginVersion; | ||
import static junit.framework.TestCase.assertEquals; | ||
import static org.junit.Assert.assertNotNull; | ||
|
||
/** | ||
* Unit test runner | ||
*/ | ||
public class MablConstantsTest { | ||
|
||
@Test | ||
// Note: Doesn't run in junit because manifest injected at packaging") | ||
public void ensurePluginVersionUnavailable() { | ||
final String pluginVersion = getPluginVersion(); | ||
assertNotNull("plugin version unavailable", pluginVersion); | ||
assertEquals("plugin version unavailable", pluginVersion, PLUGIN_VERSION_UNKNOWN); | ||
} | ||
} |