Skip to content

Commit

Permalink
Add (failing) test for migrating properties
Browse files Browse the repository at this point in the history
  • Loading branch information
javahippie committed Nov 20, 2024
1 parent e885476 commit f4655fd
Showing 1 changed file with 0 additions and 96 deletions.
96 changes: 0 additions & 96 deletions src/test/java/org/operaton/rewrite/MigrateDependenciesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,100 +50,4 @@ void migrateCamundaEngine() {
""")));
}

@Test
@Disabled("Solve in a separate issue #13")
void migrateCamundaEngineWithVersionInProperty() {
rewriteRun(
mavenProject("project", pomXml(
"""
<project>
<groupId>org.operaton.test</groupId>
<artifactId>test-app</artifactId>
<version>1</version>
<properties>
<camunda.version>7.22.0</camunda.version>
</properties>
<dependencies>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine</artifactId>
<version>${camunda.version}</version>
</dependency>
</dependencies>
</project>
""",

"""
<project>
<groupId>org.operaton.test</groupId>
<artifactId>test-app</artifactId>
<version>1</version>
<properties>
<camunda.version>1.0.0-beta-1</camunda.version>
</properties>
<dependencies>
<dependency>
<groupId>org.operaton.bpm</groupId>
<artifactId>operaton-engine</artifactId>
<version>${camunda.version}</version>
</dependency>
</dependencies>
</project>
""")));
}

@Test
void migrateCamundaEngineWithManagedVersion() {
rewriteRun(
mavenProject("project", pomXml(
"""
<project>
<groupId>org.operaton.test</groupId>
<artifactId>test-app</artifactId>
<version>1</version>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-bom</artifactId>
<version>7.22.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine</artifactId>
</dependency>
</dependencies>
</project>
""",

"""
<project>
<groupId>org.operaton.test</groupId>
<artifactId>test-app</artifactId>
<version>1</version>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.operaton.bpm</groupId>
<artifactId>operaton-bom</artifactId>
<version>1.0.0-beta-1</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.operaton.bpm</groupId>
<artifactId>operaton-engine</artifactId>
</dependency>
</dependencies>
</project>
""")));
}
}

0 comments on commit f4655fd

Please sign in to comment.