diff --git a/depclean-maven-plugin/src/test/resources-its/se/kth/depclean/DepCleanMojoIT/json_should_be_correct/pom.xml b/depclean-maven-plugin/src/test/resources-its/se/kth/depclean/DepCleanMojoIT/json_should_be_correct/pom.xml new file mode 100644 index 00000000..5d414481 --- /dev/null +++ b/depclean-maven-plugin/src/test/resources-its/se/kth/depclean/DepCleanMojoIT/json_should_be_correct/pom.xml @@ -0,0 +1,57 @@ + + + 4.0.0 + + org.foo.bar + foobar + 1.0.0-SNAPSHOT + jar + foobar + + + UTF-8 + UTF-8 + 11 + 11 + + + + + com.jcabi + jcabi-manifests + 1.1 + + + commons-io + commons-io + 2.8.0 + + + commons-codec + commons-codec + 1.15 + + + + + + + se.kth.castor + depclean-maven-plugin + 2.0.2-SNAPSHOT + + + + depclean + + + true + + + + + + + + diff --git a/depclean-maven-plugin/src/test/resources-its/se/kth/depclean/DepCleanMojoIT/json_should_be_correct/src/main/java/org/UseCommonsCodec.java b/depclean-maven-plugin/src/test/resources-its/se/kth/depclean/DepCleanMojoIT/json_should_be_correct/src/main/java/org/UseCommonsCodec.java new file mode 100644 index 00000000..3dd41d30 --- /dev/null +++ b/depclean-maven-plugin/src/test/resources-its/se/kth/depclean/DepCleanMojoIT/json_should_be_correct/src/main/java/org/UseCommonsCodec.java @@ -0,0 +1,11 @@ +package org; + +import org.apache.commons.codec.Charsets; + +public class UseCommonsCodec { + + public static void main(String[] args) { + System.out.println(Charsets.UTF_8); + } + +} diff --git a/depclean-maven-plugin/src/test/resources-its/se/kth/depclean/DepCleanMojoIT/json_should_be_correct/src/main/java/org/UseJcabiManifest.java b/depclean-maven-plugin/src/test/resources-its/se/kth/depclean/DepCleanMojoIT/json_should_be_correct/src/main/java/org/UseJcabiManifest.java new file mode 100644 index 00000000..4d16e10c --- /dev/null +++ b/depclean-maven-plugin/src/test/resources-its/se/kth/depclean/DepCleanMojoIT/json_should_be_correct/src/main/java/org/UseJcabiManifest.java @@ -0,0 +1,11 @@ +package org; + +import com.jcabi.manifests.Manifests; + +public class UseJcabiManifest { + + public static void main(String[] args) { + Manifests manifests = new Manifests(); + System.out.println(manifests.size()); + } +} diff --git a/depclean-maven-plugin/src/test/resources/depclean-results.json b/depclean-maven-plugin/src/test/resources/depclean-results.json index ae28e58f..da6b4ad0 100644 --- a/depclean-maven-plugin/src/test/resources/depclean-results.json +++ b/depclean-maven-plugin/src/test/resources/depclean-results.json @@ -6,7 +6,7 @@ "version": "1.0.0-SNAPSHOT", "packaging": "jar", "omitted": false, - "size": 1693, + "size": 1284, "type": "unknown", "status": "unknown", "parent": "unknown", @@ -172,7 +172,7 @@ "omitted": false, "size": 285424, "type": "direct", - "status": "used", + "status": "bloated", "parent": "org.foo.bar:foobar:jar:1.0.0-SNAPSHOT", "allTypes": [ "org.apache.commons.io.LineIterator", @@ -358,10 +358,8 @@ "org.apache.commons.io.filefilter.CanWriteFileFilter", "org.apache.commons.io.input.CircularInputStream" ], - "usedTypes": [ - "org.apache.commons.io.Charsets" - ], - "usageRatio": 0.005494505494505495, + "usedTypes": [], + "usageRatio": 0.0, "children": [] }, { @@ -375,7 +373,7 @@ "omitted": false, "size": 353793, "type": "direct", - "status": "bloated", + "status": "used", "parent": "org.foo.bar:foobar:jar:1.0.0-SNAPSHOT", "allTypes": [ "org.apache.commons.codec.EncoderException", @@ -485,8 +483,10 @@ "org.apache.commons.codec.language.bm.RuleType", "org.apache.commons.codec.language.bm.Languages$SomeLanguages" ], - "usedTypes": [], - "usageRatio": 0.0, + "usedTypes": [ + "org.apache.commons.codec.Charsets" + ], + "usageRatio": 0.009433962264150943, "children": [] } ]