Skip to content
Snippets Groups Projects
ComputerPlayerTest.java 586 B
Newer Older
  • Learn to ignore specific revisions
  • TRAVERS Corentin's avatar
    TRAVERS Corentin committed
    package model;
    
    import javafx.scene.paint.Color;
    import org.junit.jupiter.api.Test;
    
    import static org.assertj.core.api.Assertions.assertThat;
    
    class ComputerPlayerTest {
    
    
        // TODO
        //  uncomment and adapt
    /*
    
    TRAVERS Corentin's avatar
    TRAVERS Corentin committed
        @Test
        void testSetStrategyAndPlay() {
    
            ComputerPlayer player = new ComputerPlayer(new SquareCell(),null);
    
    TRAVERS Corentin's avatar
    TRAVERS Corentin committed
            player.setStrategy(startCell -> Color.INDIGO);
            assertThat(player.play()).isEqualTo(Color.INDIGO);
        }
    
    
        @Test
        void testIsHuman() {
    
            assertThat(new ComputerPlayer(new SquareCell(), null).isHuman()).isFalse();
        }*/
    
    TRAVERS Corentin's avatar
    TRAVERS Corentin committed
    }