-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow usage of regular expressions to resolve snapshot dependencies
- Loading branch information
Showing
3 changed files
with
49 additions
and
5 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
26 changes: 26 additions & 0 deletions
26
src/test/java/com/github/danielflower/mavenplugins/release/PomUpdaterTest.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,26 @@ | ||
package com.github.danielflower.mavenplugins.release; | ||
|
||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.assertTrue; | ||
|
||
/* | ||
In fact, this is currently just a test for Java pattern matching ... Hence, you could easily add much more patterns, | ||
but would hardly increase the module quality. In the end the plugin user has to provide the right pattern | ||
configuration. | ||
*/ | ||
public class PomUpdaterTest { | ||
|
||
@Test | ||
public void testGroupIdPrefix () { | ||
assertTrue ("groupIdPrefix", | ||
PomUpdater.snapshotResolves("net.aschemann.test:test-module:1.3-SNAPSHOT", "^net\\.aschemann.*")); | ||
} | ||
|
||
@Test | ||
public void testArtifactIdInfix () { | ||
assertTrue ("artifactIdInfix", | ||
PomUpdater.snapshotResolves("net.aschemann.test:test-module:1.3-SNAPSHOT", "^net\\.aschemann.*:.*st-modu.*:.*")); | ||
} | ||
|
||
} |
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