Issue 1538: Implement support for generating test artifacts with a specified size for Pypi
fix PypiArtifactCoordinates
@@ -52,6 +52,17 @@ public class PypiArtifactCoordinates
public static final String WHEEL_EXTENSION = "whl";
+ public PypiArtifactCoordinates()
+ {
+ resetCoordinates(DISTRIBUTION,
+ VERSION,
+ BUILD,
+ LANGUAGE_IMPLEMENTATION_VERSION,
+ ABI,
+ PLATFORM,
+ WHEEL_EXTENSION);
+ }
+
/**
* This method takes in all artifact coordinates of a PyPi package filename, with build being
* the empty string if it is not included in the filename
@@ -72,6 +83,8 @@ public class PypiArtifactCoordinates
String platform,
String packaging)
{
+ this();
+
if (StringUtils.isBlank(packaging))
{
throw new IllegalArgumentException("The packaging field is mandatory.");
@@ -115,17 +128,6 @@ public class PypiArtifactCoordinates
setPackaging(packaging);
}
- public PypiArtifactCoordinates()
- {
- this(DISTRIBUTION,
- VERSION,
- "",
- LANGUAGE_IMPLEMENTATION_VERSION,
- ABI,
- PLATFORM,
- WHEEL_EXTENSION);
- }
-
/**
* This method takes in all artifact coordinates of a PyPi Wheel filename, with build being
* the empty string if it is not included in the filename
