effect.getDesactivationCount());
}
@Test
public void testOneShotEffect() {
MapBean map = addBean(new MapBean("map"));
MapElementSize width = new MapElementSizePixel(20.0);
MapElementSize height = new MapElementSizePixel(20.0);
MyOneShotInternalEffect effect = addBean(new MyOneShotInternalEffect());
RectangleElement rectangleElement = new RectangleElement(
new Point(0, 0), Color.BLACK, width, height);
PositionTrigger positionTrigger = new PositionTrigger(
new CircleElement(new Point(25, 25), Color.red, width),
effect.getId(), RectangleElement.class, map.getId());
MapElementFactory.buildMapElement(rectangleElement, map);
MapElementFactory.buildMapElement(positionTrigger, map);
assertTrue("trigger should'nt be activated",