Skip to content

Commit

Permalink
Replace vulnerable dependency in integration test
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <support@github.com>
  • Loading branch information
slachiewicz and dependabot[bot] committed Apr 18, 2023
1 parent e03abd6 commit d6f917e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,20 @@

<dependencies>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6.1</version>
<groupId>net.java.dev.msv</groupId>
<artifactId>xsdlib</artifactId>
<version>2022.7</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ String log = FileUtils.fileRead( new File( basedir, "build.log" ) );

log = StringUtils.unifyLineSeparators(log, "\n");

String expected = "[WARNING] Used undeclared dependencies found:\n"
+ "[WARNING] xml-apis:xml-apis:jar:1.0.b2:compile\n"
+ "[WARNING] class org.apache.xmlcommons.Version\n";
String expected = "[WARNING] Used undeclared dependencies found:\n" +
"[WARNING] xml-apis:xml-apis:jar:1.4.01:compile\n" +
"[WARNING] class org.apache.xmlcommons.Version\n" +
"[WARNING] Unused declared dependencies found:\n" +
"[WARNING] net.java.dev.msv:xsdlib:jar:2022.7:compile";

if ( !log.contains(expected) )
{
Expand Down

0 comments on commit d6f917e

Please sign in to comment.