@Test public void checkIfParamIsEventAction_shouldReturnFalseIfParamIsNotEventAction() { Assert.assertFalse(SyncUtils.checkIfParamIsEventAction("updated")); Assert.assertFalse(SyncUtils.checkIfParamIsEventAction("somethingElse")); }
public static boolean checkIfParamIsEventAction(String actionName) { try { EventAction.valueOf(actionName); } catch (IllegalArgumentException ex) { return false; } return true; }
SyncUtils { public static boolean checkIfParamIsEventAction(String actionName) { try { EventAction.valueOf(actionName); } catch (IllegalArgumentException ex) { return false; } return true; } }
SyncUtils { public static boolean checkIfParamIsEventAction(String actionName) { try { EventAction.valueOf(actionName); } catch (IllegalArgumentException ex) { return false; } return true; }  }
SyncUtils { public static boolean checkIfParamIsEventAction(String actionName) { try { EventAction.valueOf(actionName); } catch (IllegalArgumentException ex) { return false; } return true; }  static Map<String, String> getLinks(String json); static String getParentBaseUrl(String clientName); static String getSpecificClientAddress(String clientName); static boolean clientHasSpecificAddress(String clientName, OpenMRSSyncInstance instance); static String getLocalBaseUrl(); static String getLocalInstanceId(); static String getPullUrl(Map<String, String> resourceLinks, String clientName, OpenMRSSyncInstance instance); static String getPushUrl(Map<String, String> resourceLinks, String clientName, OpenMRSSyncInstance instance); static String getClientSpecificLogin(String clientName); static String getClientSpecificPassword(String clientName); static boolean clientHasSpecificCridentials(String clientName, OpenMRSSyncInstance instance); static String getClientLogin(String clientName, OpenMRSSyncInstance instance); static String getClientPassword(String clientName, OpenMRSSyncInstance instance); static String getValueOfAtomfeedEventTag(List tags, AtomfeedTagContent atomfeedTagContent); static String getFullUrl(String baseAddress, String path); static String selectAppropriateClientName(Map<String, String> availableResourceLinks, String category,
			SyncOperation operation); static String getClassPreferredClient(ClassConfiguration classConfiguration); static String getGlobalPreferredClient(); static String extractUUIDFromResourceLinks(Map<String, String> resourceLinks, String category,
			String preferredClient); static boolean compareLocalAndPulled(String clientName, String category, Object from, Object dest); static String prettySerialize(Map<T, T> map); static String serialize(T object); static T deserialize(String object, Class<T> clazz); static Map<String, String> deserializeJsonToStringsMap(String json); static boolean checkIfParamIsFeedFilter(Object tag); static boolean checkIfParamIsEventAction(String actionName); static SyncConfigurationService getSyncConfigurationService(); static Gson createDefaultGson(); static MergeBehaviour getMergeBehaviour(); static String getEventHandlerName(); static boolean parentInstanceUriIsEmpty(); static boolean isDeleteAction(String action); static boolean isUpdateAction(String action); static boolean isCreateAction(String action); static boolean isUnauthorizedException(Throwable e); static boolean isAuditMessageCategory(SyncCategory category); }
SyncUtils { public static boolean checkIfParamIsEventAction(String actionName) { try { EventAction.valueOf(actionName); } catch (IllegalArgumentException ex) { return false; } return true; }  static Map<String, String> getLinks(String json); static String getParentBaseUrl(String clientName); static String getSpecificClientAddress(String clientName); static boolean clientHasSpecificAddress(String clientName, OpenMRSSyncInstance instance); static String getLocalBaseUrl(); static String getLocalInstanceId(); static String getPullUrl(Map<String, String> resourceLinks, String clientName, OpenMRSSyncInstance instance); static String getPushUrl(Map<String, String> resourceLinks, String clientName, OpenMRSSyncInstance instance); static String getClientSpecificLogin(String clientName); static String getClientSpecificPassword(String clientName); static boolean clientHasSpecificCridentials(String clientName, OpenMRSSyncInstance instance); static String getClientLogin(String clientName, OpenMRSSyncInstance instance); static String getClientPassword(String clientName, OpenMRSSyncInstance instance); static String getValueOfAtomfeedEventTag(List tags, AtomfeedTagContent atomfeedTagContent); static String getFullUrl(String baseAddress, String path); static String selectAppropriateClientName(Map<String, String> availableResourceLinks, String category,
			SyncOperation operation); static String getClassPreferredClient(ClassConfiguration classConfiguration); static String getGlobalPreferredClient(); static String extractUUIDFromResourceLinks(Map<String, String> resourceLinks, String category,
			String preferredClient); static boolean compareLocalAndPulled(String clientName, String category, Object from, Object dest); static String prettySerialize(Map<T, T> map); static String serialize(T object); static T deserialize(String object, Class<T> clazz); static Map<String, String> deserializeJsonToStringsMap(String json); static boolean checkIfParamIsFeedFilter(Object tag); static boolean checkIfParamIsEventAction(String actionName); static SyncConfigurationService getSyncConfigurationService(); static Gson createDefaultGson(); static MergeBehaviour getMergeBehaviour(); static String getEventHandlerName(); static boolean parentInstanceUriIsEmpty(); static boolean isDeleteAction(String action); static boolean isUpdateAction(String action); static boolean isCreateAction(String action); static boolean isUnauthorizedException(Throwable e); static boolean isAuditMessageCategory(SyncCategory category);  }