Class LayerListenerFixture
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.extension.glazedlists.fixture.LayerListenerFixture
-
- All Implemented Interfaces:
ILayerListener
public class LayerListenerFixture extends Object implements ILayerListener
This class helps us test the event flow by providing access to the ILayerEvent fired.
-
-
Constructor Summary
Constructors Constructor Description LayerListenerFixture()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearReceivedEvents()
boolean
containsInstanceOf(Class<? extends ILayerEvent> class1)
int
getEventsCount()
ILayerEvent
getReceivedEvent(Class<? extends ILayerEvent> class1)
List<ILayerEvent>
getReceivedEvents()
void
handleLayerEvent(ILayerEvent event)
Handle an event notification from anILayer
void
setCountDownLatch(CountDownLatch countDownLatch)
-
-
-
Method Detail
-
handleLayerEvent
public void handleLayerEvent(ILayerEvent event)
Description copied from interface:ILayerListener
Handle an event notification from anILayer
- Specified by:
handleLayerEvent
in interfaceILayerListener
- Parameters:
event
- the event
-
setCountDownLatch
public void setCountDownLatch(CountDownLatch countDownLatch)
-
getReceivedEvents
public List<ILayerEvent> getReceivedEvents()
-
clearReceivedEvents
public void clearReceivedEvents()
-
getEventsCount
public int getEventsCount()
-
containsInstanceOf
public boolean containsInstanceOf(Class<? extends ILayerEvent> class1)
-
getReceivedEvent
public ILayerEvent getReceivedEvent(Class<? extends ILayerEvent> class1)
-
-