@Test public void noVersionAutogenerate() { String name = "noArtifactNameFails"; JobClusterConfig clusterConfig = new JobClusterConfig.Builder() .withArtifactName("myart") .withSchedulingInfo(DEFAULT_SCHED_INFO) .build(); final JobClusterDefinitionImpl fakeJobCluster = new JobClusterDefinitionImpl.Builder() .withJobClusterConfig(clusterConfig) .withName(name) .withUser("nj") .withParameters(Lists.newArrayList()) .withIsReadyForJobMaster(true) .withOwner(new JobOwner("Nick", "Mantis", "desc", "nma@netflix.com", "repo")) .withMigrationConfig(WorkerMigrationConfig.DEFAULT) .build(); assertTrue(clusterConfig.getVersion() != null); }
public String getVersion() { return version; }
JobClusterConfig { public String getVersion() { return version; } }
JobClusterConfig { public String getVersion() { return version; } @JsonCreator @JsonIgnoreProperties(ignoreUnknown = true)  JobClusterConfig(@JsonProperty("artifactName") String artifactName,
                            @JsonProperty("uploadedAt") long uploadedAt,
                            @JsonProperty("version") String version,
                            @JsonProperty("schedulingInfo") SchedulingInfo schedulingInfo

    ); }
JobClusterConfig { public String getVersion() { return version; } @JsonCreator @JsonIgnoreProperties(ignoreUnknown = true)  JobClusterConfig(@JsonProperty("artifactName") String artifactName,
                            @JsonProperty("uploadedAt") long uploadedAt,
                            @JsonProperty("version") String version,
                            @JsonProperty("schedulingInfo") SchedulingInfo schedulingInfo

    ); String getArtifactName(); long getUploadedAt(); String getVersion(); SchedulingInfo getSchedulingInfo(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
JobClusterConfig { public String getVersion() { return version; } @JsonCreator @JsonIgnoreProperties(ignoreUnknown = true)  JobClusterConfig(@JsonProperty("artifactName") String artifactName,
                            @JsonProperty("uploadedAt") long uploadedAt,
                            @JsonProperty("version") String version,
                            @JsonProperty("schedulingInfo") SchedulingInfo schedulingInfo

    ); String getArtifactName(); long getUploadedAt(); String getVersion(); SchedulingInfo getSchedulingInfo(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }