@Test public void testDateFormatMinutesTimeZone() { String test = "%s"; String escapedString = BucketPath.escapeString( test, headersWithTimeZone, CUSTOM_TIMEZONE, true, Calendar.MINUTE, 5, false); System.out.println("Escaped String: " + escapedString); Calendar cal2 = createCalendar(2012, 5, 23, 13, 45, 0, 0, CUSTOM_TIMEZONE); String expectedString = String.valueOf(cal2.getTimeInMillis() / 1000); 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(); static final String TAG_REGEX; static final Pattern tagPattern; }