GoEnvironment { public String traceBackUrl() { String serverUrl = get(GO_SERVER_DASHBOARD_URL); String pipelineName = get("GO_PIPELINE_NAME"); String pipelineCounter = get("GO_PIPELINE_COUNTER"); String stageName = get("GO_STAGE_NAME"); String stageCounter = get("GO_STAGE_COUNTER"); String jobName = get("GO_JOB_NAME"); return String.format("%s/go/tab/build/detail/%s/%s/%s/%s/%s", serverUrl, pipelineName, pipelineCounter, stageName, stageCounter, jobName); } GoEnvironment();  GoEnvironment(Map<String, String> defaultEnvironment); GoEnvironment putAll(Map<String, String> existing); Map<String,String> asMap(); String get(String name); String getOrElse(String name, String defaultValue); boolean has(String name); boolean isAbsent(String name); String traceBackUrl(); String triggeredUser(); String replaceVariables(String str); String artifactsLocationTemplate(); String artifactsLocationTemplate(String pipeline, String stageName, String jobName, String pipelineCounter, String stageCounter); boolean hasAWSUseIamRole();  }
@Test public void shouldGenerateTracebackUrl() { assertThat(goEnvironment.traceBackUrl(), is("http: }