public final void testRegexWithContextAndResourceIdParameters(){
  assertNotNull(Validators.regex(getContext(),android.R.string.cancel,Pattern.compile(".")));
}

public final void testRegexWithContextAndResourceIdParameters ( ) { assertNotNull ( Validators . regex ( getContext ( ) , android . R . string . cancel , Pattern . compile ( "." ) ) ) ; }
tests the functionality of the regex - method , which expects a context and a resource id as parameters .
