Skip to content

Instantly share code, notes, and snippets.

Created October 21, 2013 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b680d3ad112a00b99275 to your computer and use it in GitHub Desktop.
Save anonymous/b680d3ad112a00b99275 to your computer and use it in GitHub Desktop.
public class Shorthands {
/**
*
* @param <C>
* @param <P>
* @param propName
* @param propertyValue
* @param pClass the class of the object we want to check
* @return
*/
public static <C, P> C hasPropertyOfCertainValue(String propName, P propertyValue, Class<C> pClass ){
return argThat(new HasPropertyOfCertainValueMatcher<C, P>(propName, propertyValue, pClass));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment