use of com.vaadin.event.selection.SelectionEvent in project cia by Hack23.
the class ComplianceCheckPageItemRendererClickListenerTest method selectionChangeEventSourceEmptyTest.
/**
* Selection change event source empty test.
*/
@Test
public void selectionChangeEventSourceEmptyTest() {
final ComplianceCheckPageItemRendererClickListener listener = new ComplianceCheckPageItemRendererClickListener();
final SelectionEvent event = Mockito.mock(SelectionEvent.class);
Mockito.when(event.getAllSelectedItems()).thenReturn(new HashSet<>());
listener.selectionChange(event);
Mockito.verify(event, times(1)).getAllSelectedItems();
}
use of com.vaadin.event.selection.SelectionEvent in project cia by Hack23.
the class RuleViolationPageItemRendererClickListenerTest method selectionChangeEventSourceEmptyTest.
/**
* Selection change event source empty test.
*/
@Test
public void selectionChangeEventSourceEmptyTest() {
final RuleViolationPageItemRendererClickListener listener = new RuleViolationPageItemRendererClickListener();
final SelectionEvent event = Mockito.mock(SelectionEvent.class);
Mockito.when(event.getAllSelectedItems()).thenReturn(new HashSet<>());
listener.selectionChange(event);
Mockito.verify(event, times(1)).getAllSelectedItems();
}
Aggregations