@Test public void testNoRounding(){ String test = "%c"; String escapedString = BucketPath.escapeString( test, headers, false, Calendar.HOUR_OF_DAY, 12); System.out.println("Escaped String: " + escapedString); SimpleDateFormat format = new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy"); Date d = new Date(cal.getTimeInMillis()); String expectedString = format.format(d); System.out.println("Expected String: "+ expectedString); Assert.assertEquals(expectedString, escapedString); }
public static String escapeString(String in, Map<String, String> headers){ return escapeString(in, headers, false, 0, 0); }
BucketPath { public static String escapeString(String in, Map<String, String> headers){ return escapeString(in, headers, false, 0, 0); } }
BucketPath { public static String escapeString(String in, Map<String, String> headers){ return escapeString(in, headers, false, 0, 0); }  }
BucketPath { public static String escapeString(String in, Map<String, String> headers){ return escapeString(in, headers, false, 0, 0); }  @VisibleForTesting @Deprecated static boolean containsTag(String in); @VisibleForTesting @Deprecated static String expandShorthand(char c); @VisibleForTesting @Deprecated static String replaceShorthand(char c, Map<String, String> headers); @VisibleForTesting @Deprecated static String replaceShorthand(char c, Map<String, String> headers,
      boolean needRounding, int unit, int roundDown); @VisibleForTesting @Deprecated static String replaceShorthand(char c, Map<String, String> headers,
    TimeZone timeZone, boolean needRounding, int unit, int roundDown,
    boolean useLocalTimestamp); static String escapeString(String in, Map<String, String> headers); static String escapeString(String in, Map<String, String> headers,
      boolean needRounding, int unit, int roundDown); static String escapeString(String in, Map<String, String> headers,
    TimeZone timeZone, boolean needRounding, int unit, int roundDown,
    boolean useLocalTimeStamp); @VisibleForTesting @Deprecated static Map<String, String> getEscapeMapping(String in,
      Map<String, String> headers); @VisibleForTesting @Deprecated static Map<String, String> getEscapeMapping(String in,
      Map<String, String> headers, boolean needRounding,
      int unit, int roundDown); @VisibleForTesting static void setClock(Clock clk); @VisibleForTesting static Clock getClock(); }
BucketPath { public static String escapeString(String in, Map<String, String> headers){ return escapeString(in, headers, false, 0, 0); }  @VisibleForTesting @Deprecated static boolean containsTag(String in); @VisibleForTesting @Deprecated static String expandShorthand(char c); @VisibleForTesting @Deprecated static String replaceShorthand(char c, Map<String, String> headers); @VisibleForTesting @Deprecated static String replaceShorthand(char c, Map<String, String> headers,
      boolean needRounding, int unit, int roundDown); @VisibleForTesting @Deprecated static String replaceShorthand(char c, Map<String, String> headers,
    TimeZone timeZone, boolean needRounding, int unit, int roundDown,
    boolean useLocalTimestamp); static String escapeString(String in, Map<String, String> headers); static String escapeString(String in, Map<String, String> headers,
      boolean needRounding, int unit, int roundDown); static String escapeString(String in, Map<String, String> headers,
    TimeZone timeZone, boolean needRounding, int unit, int roundDown,
    boolean useLocalTimeStamp); @VisibleForTesting @Deprecated static Map<String, String> getEscapeMapping(String in,
      Map<String, String> headers); @VisibleForTesting @Deprecated static Map<String, String> getEscapeMapping(String in,
      Map<String, String> headers, boolean needRounding,
      int unit, int roundDown); @VisibleForTesting static void setClock(Clock clk); @VisibleForTesting static Clock getClock(); final static String TAG_REGEX; final static Pattern tagPattern; }