@Test public void testNotificationAndTZ002() { Expiration result = oracle.guess("2019-07-14T13:34:00Z"); assertEquals(Expiration.DATETIME, result); }
public Expiration guess(String maybeIso) { for (Map.Entry<Expiration, List<String>> value : patterns.entrySet()) { for (String pattern : value.getValue()) { if (checkIfPatternMatch.apply(pattern, maybeIso).isPresent()) { return value.getKey(); } } } return Expiration.EXPRESSION; }
ExpirationTypeOracle { public Expiration guess(String maybeIso) { for (Map.Entry<Expiration, List<String>> value : patterns.entrySet()) { for (String pattern : value.getValue()) { if (checkIfPatternMatch.apply(pattern, maybeIso).isPresent()) { return value.getKey(); } } } return Expiration.EXPRESSION; } }
ExpirationTypeOracle { public Expiration guess(String maybeIso) { for (Map.Entry<Expiration, List<String>> value : patterns.entrySet()) { for (String pattern : value.getValue()) { if (checkIfPatternMatch.apply(pattern, maybeIso).isPresent()) { return value.getKey(); } } } return Expiration.EXPRESSION; } ExpirationTypeOracle(); }
ExpirationTypeOracle { public Expiration guess(String maybeIso) { for (Map.Entry<Expiration, List<String>> value : patterns.entrySet()) { for (String pattern : value.getValue()) { if (checkIfPatternMatch.apply(pattern, maybeIso).isPresent()) { return value.getKey(); } } } return Expiration.EXPRESSION; } ExpirationTypeOracle(); Expiration guess(String maybeIso); }
ExpirationTypeOracle { public Expiration guess(String maybeIso) { for (Map.Entry<Expiration, List<String>> value : patterns.entrySet()) { for (String pattern : value.getValue()) { if (checkIfPatternMatch.apply(pattern, maybeIso).isPresent()) { return value.getKey(); } } } return Expiration.EXPRESSION; } ExpirationTypeOracle(); Expiration guess(String maybeIso); static final String ISO_DATE_TIME; static final String REPEATABLE; static final String PERIOD; static final String ONE_TIME_EXECUTION; static final String DURATION; static final String OLD_DURATION; static final String OLD_MULTIPLE_INTERVALS; static final String REPEATING_INTERVALS; static final String JAVA_VARIABLE; static final String REPEATABLE_START_END; static final String REPEATABLE_DURATION_END; }