@Test public void checkArtifactGeneration(){ Artifact artifact = DataModelFactory.createArtifact("com.my.company", "artifact", "1.0.0-SNAPSHOT", "win32", "jar", "jar"); assertNotNull(artifact); assertEquals("com.my.company", artifact.getGroupId()); assertEquals("artifact", artifact.getArtifactId()); assertEquals("1.0.0-SNAPSHOT", artifact.getVersion()); assertEquals("jar", artifact.getType()); assertEquals("win32", artifact.getClassifier()); assertFalse(artifact.isPromoted()); }
public static Artifact createArtifact(final String groupId, final String artifactId, final String version, final String classifier, final String type, final String extension){ return createArtifact(groupId, artifactId, version, classifier, type, extension, null); }
DataModelFactory { public static Artifact createArtifact(final String groupId, final String artifactId, final String version, final String classifier, final String type, final String extension){ return createArtifact(groupId, artifactId, version, classifier, type, extension, null); } }
DataModelFactory { public static Artifact createArtifact(final String groupId, final String artifactId, final String version, final String classifier, final String type, final String extension){ return createArtifact(groupId, artifactId, version, classifier, type, extension, null); } private  DataModelFactory(); }
DataModelFactory { public static Artifact createArtifact(final String groupId, final String artifactId, final String version, final String classifier, final String type, final String extension){ return createArtifact(groupId, artifactId, version, classifier, type, extension, null); } private  DataModelFactory(); static Organization createOrganization(final String name); static Module createModule(final String name,final String version); static Artifact createArtifact(final String groupId, final String artifactId, final String version, final String classifier, final String type, final String extension); static Artifact createArtifact(final String groupId, final String artifactId, final String version, final String classifier, final String type, final String extension, final String origin); static License createLicense(final String name, final String longName, final String comments, final String regexp, final String url); static Dependency createDependency(final Artifact artifact, final Scope scope); static Dependency createDependency(final Artifact artifact, final String scope); static PromotionDetails createPromotionDetails(final Boolean canBePromoted, final Boolean isSnapshot, final List<String> unPromotedDependencies, final List<Artifact> doNotUseArtifacts); static Delivery createDelivery(final String commercialName, final String commercialVersion, final String releaseDate, final List<String> dependencies); static ArtifactPromotionStatus createArtifactPromotionStatus(final Boolean promoted, final String message); static ArtifactQuery createArtifactQuery(final String user, final int stage , final String name, final String sha256, final String type, final String location); static Comment createComment(final String entityId,
										final String entityType,
										final String action,
										final String commentedText,
										final String user,
										final Date date); }
DataModelFactory { public static Artifact createArtifact(final String groupId, final String artifactId, final String version, final String classifier, final String type, final String extension){ return createArtifact(groupId, artifactId, version, classifier, type, extension, null); } private  DataModelFactory(); static Organization createOrganization(final String name); static Module createModule(final String name,final String version); static Artifact createArtifact(final String groupId, final String artifactId, final String version, final String classifier, final String type, final String extension); static Artifact createArtifact(final String groupId, final String artifactId, final String version, final String classifier, final String type, final String extension, final String origin); static License createLicense(final String name, final String longName, final String comments, final String regexp, final String url); static Dependency createDependency(final Artifact artifact, final Scope scope); static Dependency createDependency(final Artifact artifact, final String scope); static PromotionDetails createPromotionDetails(final Boolean canBePromoted, final Boolean isSnapshot, final List<String> unPromotedDependencies, final List<Artifact> doNotUseArtifacts); static Delivery createDelivery(final String commercialName, final String commercialVersion, final String releaseDate, final List<String> dependencies); static ArtifactPromotionStatus createArtifactPromotionStatus(final Boolean promoted, final String message); static ArtifactQuery createArtifactQuery(final String user, final int stage , final String name, final String sha256, final String type, final String location); static Comment createComment(final String entityId,
										final String entityType,
										final String action,
										final String commentedText,
										final String user,
										final Date date);  }