@Test public void testPartitionExpression() { Assert.assertEquals(FeedHelper.normalizePartitionExpression(" /a Assert.assertEquals(FeedHelper.normalizePartitionExpression(null, " /b Assert.assertEquals(FeedHelper.normalizePartitionExpression(null, null), ""); }
public static String normalizePartitionExpression(String part1, String part2) { String partExp = StringUtils.stripToEmpty(part1) + "/" + StringUtils.stripToEmpty(part2); partExp = partExp.replaceAll(" partExp = StringUtils.stripStart(partExp, "/"); partExp = StringUtils.stripEnd(partExp, "/"); return partExp; }
FeedHelper { public static String normalizePartitionExpression(String part1, String part2) { String partExp = StringUtils.stripToEmpty(part1) + "/" + StringUtils.stripToEmpty(part2); partExp = partExp.replaceAll(" partExp = StringUtils.stripStart(partExp, "/"); partExp = StringUtils.stripEnd(partExp, "/"); return partExp; } }
FeedHelper { public static String normalizePartitionExpression(String part1, String part2) { String partExp = StringUtils.stripToEmpty(part1) + "/" + StringUtils.stripToEmpty(part2); partExp = partExp.replaceAll(" partExp = StringUtils.stripStart(partExp, "/"); partExp = StringUtils.stripEnd(partExp, "/"); return partExp; }  }
FeedHelper { public static String normalizePartitionExpression(String part1, String part2) { String partExp = StringUtils.stripToEmpty(part1) + "/" + StringUtils.stripToEmpty(part2); partExp = partExp.replaceAll(" partExp = StringUtils.stripStart(partExp, "/"); partExp = StringUtils.stripEnd(partExp, "/"); return partExp; }  static Cluster getCluster(Feed feed, String clusterName); static Location getLocation(Feed feed, LocationType type,
			String clusterName); static Location getLocation(Feed feed, LocationType type); static Location getLocation(Locations locations, LocationType type); static String normalizePartitionExpression(String part1, String part2); static String normalizePartitionExpression(String partition); static String evaluateClusterExp(org.apache.ivory.entity.v0.cluster.Cluster clusterEntity, String exp); }
FeedHelper { public static String normalizePartitionExpression(String part1, String part2) { String partExp = StringUtils.stripToEmpty(part1) + "/" + StringUtils.stripToEmpty(part2); partExp = partExp.replaceAll(" partExp = StringUtils.stripStart(partExp, "/"); partExp = StringUtils.stripEnd(partExp, "/"); return partExp; }  static Cluster getCluster(Feed feed, String clusterName); static Location getLocation(Feed feed, LocationType type,
			String clusterName); static Location getLocation(Feed feed, LocationType type); static Location getLocation(Locations locations, LocationType type); static String normalizePartitionExpression(String part1, String part2); static String normalizePartitionExpression(String partition); static String evaluateClusterExp(org.apache.ivory.entity.v0.cluster.Cluster clusterEntity, String exp);  }