Production { public static String createId(String productionType) { return String.format("%s_%s_%8s", yyyyMMddHHmmss.format(new Date()), productionType, Long.toHexString(nextUniqueLong())); } Production(String id,
                      String name,
                      String outputPath,
                      String stagingPath,
                      boolean autoStaging,
                      ProductionRequest productionRequest,
                      WorkflowItem workflow);  Production(String id,
                      String name,
                      String outputPath,
                      String[] intermediateDataPath,
                      String stagingPath,
                      boolean autoStaging,
                      ProductionRequest productionRequest,
                      WorkflowItem workflow); static String createId(String productionType); String getId(); String getName(); WorkflowItem getWorkflow(); Object[] getJobIds(); boolean isAutoStaging(); ProductionRequest getProductionRequest(); String getOutputPath(); String[] getIntermediateDataPath(); String getStagingPath(); ProcessStatus getProcessingStatus(); void setProcessingStatus(ProcessStatus processingStatus); ProcessStatus getStagingStatus(); void setStagingStatus(ProcessStatus stagingStatus); @Override String toString(); static final SimpleDateFormat yyyyMMddHHmmss; }
@Test public void testCreateId() { String id = Production.createId("level4"); assertTrue(id.contains("level4")); assertFalse(id.equals(Production.createId("level4"))); }