@Test public void constructorTest() { final WorkerParameters parameters = WorkerParametersFactory.newWorkerParameters(); assertNotNull(parameters); assertEquals(5, parameters.getMandatoriesParameters().size()); assertEquals(0, parameters.getMapParameters().size()); final WorkerParameters parameters2 = WorkerParametersFactory.newWorkerParameters("processId", "stepUniqId", "containerName", "currentStep", Lists.newArrayList("objectName"), "urlMetadata", "urlWorkspace"); assertNotNull(parameters2); assertEquals(7, parameters2.getMapParameters().size()); }
static DefaultWorkerParameters newWorkerParameters(Set<WorkerParameterName> mandatoryFieldsToAdd) { return new DefaultWorkerParameters(initMandatoriesParameters(mandatoryFieldsToAdd)); }
WorkerParametersFactory { static DefaultWorkerParameters newWorkerParameters(Set<WorkerParameterName> mandatoryFieldsToAdd) { return new DefaultWorkerParameters(initMandatoriesParameters(mandatoryFieldsToAdd)); } }
WorkerParametersFactory { static DefaultWorkerParameters newWorkerParameters(Set<WorkerParameterName> mandatoryFieldsToAdd) { return new DefaultWorkerParameters(initMandatoriesParameters(mandatoryFieldsToAdd)); } private  WorkerParametersFactory(); }
WorkerParametersFactory { static DefaultWorkerParameters newWorkerParameters(Set<WorkerParameterName> mandatoryFieldsToAdd) { return new DefaultWorkerParameters(initMandatoriesParameters(mandatoryFieldsToAdd)); } private  WorkerParametersFactory(); static DefaultWorkerParameters newWorkerParameters(); static DefaultWorkerParameters newWorkerParameters(String processId, String stepUniqId, String containerName,
                                                              String currentStep, List<String> objectNameList, String urlMetadata,
                                                              String urlWorkspace); }
WorkerParametersFactory { static DefaultWorkerParameters newWorkerParameters(Set<WorkerParameterName> mandatoryFieldsToAdd) { return new DefaultWorkerParameters(initMandatoriesParameters(mandatoryFieldsToAdd)); } private  WorkerParametersFactory(); static DefaultWorkerParameters newWorkerParameters(); static DefaultWorkerParameters newWorkerParameters(String processId, String stepUniqId, String containerName,
                                                              String currentStep, List<String> objectNameList, String urlMetadata,
                                                              String urlWorkspace);  }