@Test public void testBuildSparkPath() { Assert.assertEquals(":key/:record/audit", buildSparkPath(AnyStrings.splitCamelCase("$Key$RecordAudit"))); }
@VisibleForTesting protected static String buildSparkPath(List<String> args) { if(args.isEmpty()) { return ""; } else { boolean var = false; StringBuilder sb = new StringBuilder(); for (String component : args) { if(component.equals("$")) { var = true; continue; } sb.append("/"); if(var) { sb.append(":"); var = false; } sb.append(component.toLowerCase()); } sb.deleteCharAt(0); return sb.toString(); } }
EndpointContainer implements
        Comparable<EndpointContainer> { @VisibleForTesting protected static String buildSparkPath(List<String> args) { if(args.isEmpty()) { return ""; } else { boolean var = false; StringBuilder sb = new StringBuilder(); for (String component : args) { if(component.equals("$")) { var = true; continue; } sb.append("/"); if(var) { sb.append(":"); var = false; } sb.append(component.toLowerCase()); } sb.deleteCharAt(0); return sb.toString(); } } }
EndpointContainer implements
        Comparable<EndpointContainer> { @VisibleForTesting protected static String buildSparkPath(List<String> args) { if(args.isEmpty()) { return ""; } else { boolean var = false; StringBuilder sb = new StringBuilder(); for (String component : args) { if(component.equals("$")) { var = true; continue; } sb.append("/"); if(var) { sb.append(":"); var = false; } sb.append(component.toLowerCase()); } sb.deleteCharAt(0); return sb.toString(); } } protected  EndpointContainer(ConcourseServer concourse); }
EndpointContainer implements
        Comparable<EndpointContainer> { @VisibleForTesting protected static String buildSparkPath(List<String> args) { if(args.isEmpty()) { return ""; } else { boolean var = false; StringBuilder sb = new StringBuilder(); for (String component : args) { if(component.equals("$")) { var = true; continue; } sb.append("/"); if(var) { sb.append(":"); var = false; } sb.append(component.toLowerCase()); } sb.deleteCharAt(0); return sb.toString(); } } protected  EndpointContainer(ConcourseServer concourse); @Override int compareTo(EndpointContainer other); final Iterable<Endpoint> endpoints(); }
EndpointContainer implements
        Comparable<EndpointContainer> { @VisibleForTesting protected static String buildSparkPath(List<String> args) { if(args.isEmpty()) { return ""; } else { boolean var = false; StringBuilder sb = new StringBuilder(); for (String component : args) { if(component.equals("$")) { var = true; continue; } sb.append("/"); if(var) { sb.append(":"); var = false; } sb.append(component.toLowerCase()); } sb.deleteCharAt(0); return sb.toString(); } } protected  EndpointContainer(ConcourseServer concourse); @Override int compareTo(EndpointContainer other); final Iterable<Endpoint> endpoints();  }