forked from fiuba/algo3_proyecto_base_tp2
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: mariagalindez <mgalindez@fi.uba.ar> Co-authored-by: fnpratto <fnpratto@gmail.com> Co-authored-by: Sebakrag <sebaskrag@gmail.com>
- Loading branch information
1 parent
477e95f
commit 1cc3132
Showing
8 changed files
with
62 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
src/main/test/edu/fiuba/algo3/testsUnitarios/GladiadorTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package edu.fiuba.algo3.testsUnitarios; | ||
import edu.fiuba.algo3.modelo.Equipamiento; | ||
import edu.fiuba.algo3.modelo.Gladiador; | ||
import edu.fiuba.algo3.modelo.Seniority; | ||
import edu.fiuba.algo3.modelo.seniorities.Novato; | ||
import edu.fiuba.algo3.modelo.equipamientos.Desequipado; | ||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class GladiadorTests { | ||
@Test | ||
public void test01GladiadorSeCreaConVeinteDeEnergia(){ | ||
int energiaInicial = 20; | ||
Gladiador gladiador = new Gladiador(); | ||
|
||
Assertions.assertTrue(gladiador.energiaIgualA(energiaInicial)); | ||
} | ||
|
||
@Test | ||
public void test02GladiadorRecibeEnergiaCorrectamente(){ | ||
Gladiador gladiador = new Gladiador(); | ||
int aumento = 10; | ||
int energiaEsperada = 30; | ||
|
||
gladiador.recibirEnergia(aumento); | ||
|
||
Assertions.assertTrue(gladiador.energiaIgualA(energiaEsperada)); | ||
} | ||
|
||
@Test | ||
public void test03GladiadorRecibeDanioCorrectamente(){ | ||
Gladiador gladiador = new Gladiador(); | ||
int danio = 15; | ||
int energiaEsperada = 5; | ||
|
||
gladiador.recibirDanio(danio); | ||
|
||
Assertions.assertTrue(gladiador.energiaIgualA(energiaEsperada)); | ||
} | ||
|
||
public void test04GladiadorTieneEnergia() { | ||
//Gladiador gladiador = new Gladiador(); | ||
|
||
//gladiador.recibirDanio(danio); | ||
|
||
//Assertions.assertTrue(gladiador.energiaIgualA(energiaEsperada)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...test/edu/fiuba/algo3/SemiSeniorTests.java → ...algo3/testsUnitarios/SemiSeniorTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ain/test/edu/fiuba/algo3/SeniorTests.java → ...uba/algo3/testsUnitarios/SeniorTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters