/jgitflow-maven-plugin/src/it/projects/feature-finish-added-files-no-origin/postbuild.groovy
Groovy | 24 lines | 19 code | 5 blank | 0 comment | 0 complexity | 4d8644c854897df5bde2f2db8d48ea10 MD5 | raw file
Possible License(s): Apache-2.0
- import com.atlassian.jgitflow.core.JGitFlow
- import com.atlassian.maven.plugins.jgitflow.it.FinishScriptHelper
- import static org.junit.Assert.assertTrue
- try
- {
- helper = new FinishScriptHelper(basedir, localRepositoryPath, context)
- flow = JGitFlow.getOrInit(basedir)
- flow.git().checkout().setName("master").call()
- helper.comparePomFiles("expected-master-pom.xml", "pom.xml")
- flow.git().checkout().setName("develop").call()
- File junkFile = new File(basedir,"junk.txt")
- assertTrue(junkFile.exists())
-
- helper.comparePomFiles("expected-develop-pom.xml", "pom.xml")
- }
- catch (Exception e)
- {
- System.err.println(e.getMessage())
- return false;
- }