public final void testAddAllHelperTextColorsFromArray(){
  int helperTextColor1=Color.BLACK;
  int helperTextColor2=Color.GRAY;
  int[] helperTextColors1=new int[2];
  helperTextColors1[0]=helperTextColor1;
  helperTextColors1[1]=helperTextColor2;
  PasswordEditText passwordEditText=new PasswordEditText(getContext());
  passwordEditText.addAllHelperTextColors(helperTextColors1);
  passwordEditText.addAllHelperTextColors(helperTextColors1);
  Collection<Integer> helperTextColors2=passwordEditText.getHelperTextColors();
  assertEquals(helperTextColors1.length,helperTextColors2.size());
  Iterator<Integer> iterator=helperTextColors2.iterator();
  assertEquals(helperTextColor1,(int)iterator.next());
  assertEquals(helperTextColor2,(int)iterator.next());
}

public final void testAddAllHelperTextColorsFromArray ( ) { int helperTextColor1 = Color . BLACK ; int helperTextColor2 = Color . GRAY ; int [ ] helperTextColors1 = new int [ 2 ] ; helperTextColors1 [ 0 ] = helperTextColor1 ; helperTextColors1 [ 1 ] = helperTextColor2 ; PasswordEditText passwordEditText = new PasswordEditText ( getContext ( ) ) ; passwordEditText . addAllHelperTextColors ( helperTextColors1 ) ; passwordEditText . addAllHelperTextColors ( helperTextColors1 ) ; Collection < Integer > helperTextColors2 = passwordEditText . getHelperTextColors ( ) ; assertEquals ( helperTextColors1 . length , helperTextColors2 . size ( ) ) ; Iterator < Integer > iterator = helperTextColors2 . iterator ( ) ; assertEquals ( helperTextColor1 , ( int ) iterator . next ( ) ) ; assertEquals ( helperTextColor2 , ( int ) iterator . next ( ) ) ; }
tests the functionality of the method , which allows to add all helper text colors , which are contained by an array .
