package com.fundynamic.d2tm.game.entities.units;


import com.fundynamic.d2tm.game.entities.EntityData;
import org.mockito.Mockito;
import org.newdawn.slick.Image;

public class TestableRenderableWithFacingLogic extends RenderableWithFacingLogic {
    public TestableRenderableWithFacingLogic(Image image, EntityData entityData, float turnSpeed) {
        super(image, entityData, turnSpeed);
    }

    @Override
    public Image getSprite(int x, int y) {
        return Mockito.mock(Image.class);
    }
}

package com.fundynamic.d2tm.game.entities.units;


import com.fundynamic.d2tm.game.entities.EntityData;
import org.mockito.Mockito;
import org.newdawn.slick.Image;

public class TestableRenderableWithFacingLogic extends RenderableWithFacingLogic {
    public TestableRenderableWithFacingLogic(Image image, EntityData entityData, float turnSpeed) {
        super(image, entityData, turnSpeed);
    }

    @Override
    public Image getSprite(int x, int y) {
        return Mockito.mock(Image.class);
    }

    @Override
    public int getVerticalCount() {
        return 0;
    }

    @Override
    public int getHorizontalCount() {
        return 0;
    }
}

Fix tests by stubbing out two methods requiring a real image
Fix tests by stubbing out two methods requiring a real image
