public final void testAddAllHelperTextsFromCollection(){
  CharSequence helperText1="helperText1";
  CharSequence helperText2="helperText2";
  Collection<CharSequence> helperTexts1=new LinkedList<>();
  helperTexts1.add(helperText1);
  helperTexts1.add(helperText2);
  PasswordEditText passwordEditText=new PasswordEditText(getContext());
  passwordEditText.addAllHelperTexts(helperTexts1);
  passwordEditText.addAllHelperTexts(helperTexts1);
  Collection<CharSequence> helperTexts2=passwordEditText.getHelperTexts();
  assertEquals(helperTexts1.size(),helperTexts2.size());
  Iterator<CharSequence> iterator=helperTexts2.iterator();
  assertEquals(helperText1,iterator.next());
  assertEquals(helperText2,iterator.next());
}

public final void testAddAllHelperTextsFromCollection ( ) { CharSequence helperText1 = "helperText1" ; CharSequence helperText2 = "helperText2" ; Collection < CharSequence > helperTexts1 = new LinkedList < > ( ) ; helperTexts1 . add ( helperText1 ) ; helperTexts1 . add ( helperText2 ) ; PasswordEditText passwordEditText = new PasswordEditText ( getContext ( ) ) ; passwordEditText . addAllHelperTexts ( helperTexts1 ) ; passwordEditText . addAllHelperTexts ( helperTexts1 ) ; Collection < CharSequence > helperTexts2 = passwordEditText . getHelperTexts ( ) ; assertEquals ( helperTexts1 . size ( ) , helperTexts2 . size ( ) ) ; Iterator < CharSequence > iterator = helperTexts2 . iterator ( ) ; assertEquals ( helperText1 , iterator . next ( ) ) ; assertEquals ( helperText2 , iterator . next ( ) ) ; }
tests the functionality of the method , which allows to add all helper texts , which are contained by a collection .
