Skip to content

Commit b21fb24

Browse files
gastaldiqmonmert
andcommitted
Update src/test/java/io/fabric8/maven/MavenTest.java
Co-authored-by: Quentin <[email protected]>
1 parent adf54ca commit b21fb24

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/test/approvals/io/fabric8/maven/MavenTest.should_not_add_extra_line_break.approved.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
<scope>import</scope>
2828
<type>pom</type>
2929
</dependency>
30+
<dependency>
31+
<groupId>org.springframework.boot</groupId>
32+
<artifactId>spring-boot-dependencies</artifactId>
33+
<version>${spring-boot.version}</version>
34+
<type>pom</type>
35+
<scope>import</scope>
36+
</dependency>
3037
<dependency>
3138
<groupId>org.springframework.boot</groupId>
3239
<artifactId>spring-boot-dependencies</artifactId>

src/test/java/io/fabric8/maven/MavenTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,16 @@ void should_not_add_extra_line_break() throws Exception {
344344
dep.setArtifactId("spring-boot-dependencies");
345345
dep.setVersion("${spring-boot.version}");
346346
dep.setScope("import");
347+
dep.setType("pom");
347348
dependencyManagement.addDependency(dep);
349+
350+
Dependency dep2 = new Dependency();
351+
dep2.setGroupId("org.springframework.boot");
352+
dep2.setArtifactId("spring-boot-dependencies");
353+
dep2.setVersion("${spring-boot.version}");
354+
dep2.setScope("import");
355+
dependencyManagement.addDependency(dep2);
356+
348357
StringWriter sw = new StringWriter();
349358
Maven.writeModel(model, sw);
350359
Approvals.verify(sw.toString());

0 commit comments

Comments
 (0)