@Test public void shouldReturnTrueWhenGivenSignatureEqualFive() throws Exception { String signaturesFalse = "abcde"; assertTrue(signatureDialog.checkSignature(signaturesFalse)); }
protected boolean checkSignature(String signature) { return signature.length() >= 2 && signature.length() <= 5 && signature.matches("\\D+"); }
SignatureDialog extends BaseDialogFragment { protected boolean checkSignature(String signature) { return signature.length() >= 2 && signature.length() <= 5 && signature.matches("\\D+"); } }
SignatureDialog extends BaseDialogFragment { protected boolean checkSignature(String signature) { return signature.length() >= 2 && signature.length() <= 5 && signature.matches("\\D+"); }  }
SignatureDialog extends BaseDialogFragment { protected boolean checkSignature(String signature) { return signature.length() >= 2 && signature.length() <= 5 && signature.matches("\\D+"); }  @Override void onDestroyView(); @Nullable @Override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState); @Override void onViewCreated(View view, Bundle savedInstanceState); @NonNull @Override Dialog onCreateDialog(Bundle savedInstanceState); @Override void onStart(); SingleClickButtonListener getSingleClickButtonListener(); static Bundle getBundleToMe(String title); void show(FragmentManager manager); }
SignatureDialog extends BaseDialogFragment { protected boolean checkSignature(String signature) { return signature.length() >= 2 && signature.length() <= 5 && signature.matches("\\D+"); }  @Override void onDestroyView(); @Nullable @Override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState); @Override void onViewCreated(View view, Bundle savedInstanceState); @NonNull @Override Dialog onCreateDialog(Bundle savedInstanceState); @Override void onStart(); SingleClickButtonListener getSingleClickButtonListener(); static Bundle getBundleToMe(String title); void show(FragmentManager manager); @InjectView(R.id.btn_cancel)
    public TextView btnCancel; @InjectView(R.id.btn_done)
    public Button btnSign; @InjectView(R.id.et_signature)
    public EditText etSignature; @InjectView(R.id.ly_signature)
    public TextInputLayout lySignature; @InjectView(R.id.tv_signature_title)
    public TextView tvSignatureTitle; }