Skip to content

Commit

Permalink
align test method name
Browse files Browse the repository at this point in the history
  • Loading branch information
kwin committed Jan 2, 2022
1 parent 03b9776 commit f8825d6
Showing 1 changed file with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,27 @@ public void testRewriteBasicPomWithGitFromTag()
assertTrue( comparePomFiles( reactorProjects ) );
}

// MRELEASE-1072
@Test
public void testRewriteBasicPomWithSvnFromTag()
throws Exception
{
List<MavenProject> reactorProjects = createReactorProjects( "basic-pom-with-svn-from-tag" );
ReleaseDescriptorBuilder builder = createDescriptorFromProjects( reactorProjects, "basic-pom-with-svn-from-tag" );
mapNextVersion( builder, "groupId:artifactId" );

Scm scm = new Scm();
scm.setConnection( "scm:svn:file://localhost/svnroot/trunk/" );
scm.setDeveloperConnection( "scm:svn:file://localhost/svnroot/trunk/" );
scm.setUrl( "http://localhost/svn" );
scm.setTag( "trunk" );
builder.addOriginalScmInfo( "groupId:artifactId", scm );

phase.execute( ReleaseUtils.buildReleaseDescriptor( builder ), new DefaultReleaseEnvironment(), reactorProjects );

assertTrue( comparePomFiles( reactorProjects ) );
}

@Test
public void testRewriteBasicPomWithInheritedScm()
throws Exception
Expand Down Expand Up @@ -427,25 +448,4 @@ public void testRewritePomDependenciesWithoutDependenciesVersionUpdate()

assertTrue( comparePomFiles( reactorProjects ) );
}

// MRELEASE-1072
@Test
public void testKeepScmTagWithUnsupportedTagsInScmTranslator()
throws Exception
{
List<MavenProject> reactorProjects = createReactorProjects( "basic-pom-with-svn-from-tag" );
ReleaseDescriptorBuilder builder = createDescriptorFromProjects( reactorProjects, "basic-pom-with-svn-from-tag" );
mapNextVersion( builder, "groupId:artifactId" );

Scm scm = new Scm();
scm.setConnection( "scm:svn:file://localhost/svnroot/trunk/" );
scm.setDeveloperConnection( "scm:svn:file://localhost/svnroot/trunk/" );
scm.setUrl( "http://localhost/svn" );
scm.setTag( "trunk" );
builder.addOriginalScmInfo( "groupId:artifactId", scm );

phase.execute( ReleaseUtils.buildReleaseDescriptor( builder ), new DefaultReleaseEnvironment(), reactorProjects );

assertTrue( comparePomFiles( reactorProjects ) );
}
}

0 comments on commit f8825d6

Please sign in to comment.