public final void testRemoveHelperTextId ( ) { PasswordEditText passwordEditText = new PasswordEditText ( getContext ( ) ) ; passwordEditText . addHelperTextId ( android . R . string . cancel ) ; passwordEditText . addHelperTextId ( android . R . string . copy ) ; passwordEditText . removeHelperTextId ( android . R . string . cancel ) ; passwordEditText . removeHelperTextId ( android . R . string . cancel ) ; assertEquals ( 1 , passwordEditText . getHelperTexts ( ) . size ( ) ) ; assertEquals ( getContext ( ) . getText ( android . R . string . copy ) , passwordEditText . getHelperTexts ( ) . iterator ( ) . next ( ) ) ; }
Tests the functionality of the method , which allows to remove a helper text by its id .