Guest User

Untitled

a guest
Jun 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. public Nivel getNivelDeVocabulario() {
  2. int t = getTamanhoDoVocabulario();
  3.  
  4. if (t <= 5 && t >= 0) {
  5. Assert.assertTrue("Nivel errado 1." + t, Nivel.RUIM == p1
  6. .getNivelDeVocabulario());
  7. }
  8. if (t > 5 && t <= 10) {
  9. Assert.assertTrue("Nivel errado 2." + t, Nivel.MEDIO == p1
  10. .getNivelDeVocabulario());
  11. }
  12. if (t > 10 && t <= 15) {
  13. Assert.assertTrue("Nivel errado 3." + t, Nivel.BOM == p1
  14. .getNivelDeVocabulario());
  15. }
  16. if (t > 15) {
  17. Assert.assertTrue("Nivel errado 4." + t, Nivel.EXCELENTE == p1
  18. .getNivelDeVocabulario());
  19. }
  20. return Nivel.EXCELENTE;
  21.  
  22. }
Add Comment
Please, Sign In to add comment