private Path buildTracePath(final String pipelineExecutionTraceId) { return registryRoot.resolve(registryHelper.md5Hex(pipelineExecutionTraceId) + TRACE_SUFFIX); } }
private Path buildRuntimePath(final String runtimeId) { return registryRoot.resolve(registryHelper.md5Hex(runtimeId) + RUNTIME_SUFFIX); } }
private Path buildProviderPath(final String providerId) { return registryRoot.resolve(registryHelper.md5Hex(providerId) + PROVIDER_SUFFIX); }
private Path prepareTargetPath(String id, String suffix) { when(registryHelper.md5Hex(id)).thenReturn(ID_MD5); String expectedPath = ID_MD5 + suffix; Path targetPath = mock(Path.class); when(registryRoot.resolve(expectedPath)).thenReturn(targetPath); return targetPath; } }
private Path prepareTargetPath(String id, String suffix) { when(registryHelper.md5Hex(id)).thenReturn(ID_MD5); String expectedPath = ID_MD5 + suffix; Path targetPath = mock(Path.class); when(registryRoot.resolve(expectedPath)).thenReturn(targetPath); return targetPath; } }
private void prepareTargetPath() { when(registryHelper.md5Hex(PIPELINE_EXECUTION_ID)).thenReturn(PIPELINE_EXECUTION_ID_MD5); String expectedPath = PIPELINE_EXECUTION_ID_MD5 + TRACE_SUFFIX; when(registryRoot.resolve(expectedPath)).thenReturn(traceTargetPath); } }
private void prepareTargetPath() { when(registryHelper.md5Hex(PIPELINE_EXECUTION_ID)).thenReturn(PIPELINE_EXECUTION_ID_MD5); String expectedPath = PIPELINE_EXECUTION_ID_MD5 + TRACE_SUFFIX; when(registryRoot.resolve(expectedPath)).thenReturn(traceTargetPath); } }