Skip to content

Commit

Permalink
add maven test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwareus committed Oct 30, 2023
1 parent a4f8ae6 commit 2ec5a26
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ test/resolve/testdata/nuget/packagesconfig/packages.config.nuget.debricked.lock
test/resolve/testdata/nuget/**/obj
debricked.fingerprints.wfp
test/resolve/testdata/gomod/gomod.debricked.lock
test/resolve/testdata/maven/maven.debricked.lock
6 changes: 6 additions & 0 deletions test/resolve/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ func TestResolves(t *testing.T) {
lockFileName: "gomod.debricked.lock",
packageManager: "gomod",
},
{
name: "basic pom.xml",
manifestFile: "testdata/maven/pom.xml",
lockFileName: "maven.debricked.lock",
packageManager: "maven",
},
}

for _, cT := range cases {
Expand Down
23 changes: 23 additions & 0 deletions test/resolve/testdata/maven/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.example</groupId>
<artifactId>my-app</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.20.0</version>
</dependency>
</dependencies>
</project>

0 comments on commit 2ec5a26

Please sign in to comment.