Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Nivel getNivelDeVocabulario() {
- int t = getTamanhoDoVocabulario();
- if (t <= 5 && t >= 0) {
- Assert.assertTrue("Nivel errado 1." + t, Nivel.RUIM == p1
- .getNivelDeVocabulario());
- }
- if (t > 5 && t <= 10) {
- Assert.assertTrue("Nivel errado 2." + t, Nivel.MEDIO == p1
- .getNivelDeVocabulario());
- }
- if (t > 10 && t <= 15) {
- Assert.assertTrue("Nivel errado 3." + t, Nivel.BOM == p1
- .getNivelDeVocabulario());
- }
- if (t > 15) {
- Assert.assertTrue("Nivel errado 4." + t, Nivel.EXCELENTE == p1
- .getNivelDeVocabulario());
- }
- return Nivel.EXCELENTE;
- }
Add Comment
Please, Sign In to add comment