Angelo7672 / ingsw2022-AM25

Prova Finale Ingegneria del Software 2021-2022 - Eriantys
3 stars 1 forks source link

Tests fail #4

Closed PiroX4256 closed 2 years ago

PiroX4256 commented 2 years ago
[ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.041 s <<< FAILURE! - in it.polimi.ingsw.model.CloudsManagerTest
[ERROR] removeStudentsTest4Players  Time elapsed: 0.036 s  <<< ERROR!
java.lang.NullPointerException: Cannot invoke "it.polimi.ingsw.model.Bag.extraction()" because "this.this$0.b" is null
        at it.polimi.ingsw.model.CloudsManagerTest.removeStudentsTest4Players(CloudsManagerTest.java:46)

[ERROR] removeStudentsTest2Players  Time elapsed: 0.001 s  <<< ERROR!
java.lang.NullPointerException: Cannot invoke "it.polimi.ingsw.model.Bag.extraction()" because "this.this$0.b" is null
        at it.polimi.ingsw.model.CloudsManagerTest.removeStudentsTest2Players(CloudsManagerTest.java:15)

[ERROR] removeStudentsTest3Players  Time elapsed: 0.002 s  <<< ERROR!
java.lang.NullPointerException: Cannot invoke "it.polimi.ingsw.model.Bag.extraction()" because "this.this$0.b" is null
        at it.polimi.ingsw.model.CloudsManagerTest.removeStudentsTest3Players(CloudsManagerTest.java:30)
PiroX4256 commented 2 years ago

The action was working because it skipped the tests image

I fixed the pom to execute tests in maven, please fix tests now