Baixe o app para aproveitar ainda mais
Prévia do material em texto
1) E) acelerar():void 2) A) Somente l. Referencia: Pag60 3) C) Apenas l e ll Ou E) Apenas ll e lll 4) C) l e lV estão corretas. 5) A) public class Canario extends Passaro{} 6) C) As asserções I e II sáo proposições verdadeiras, e a II é uma justificativa correta da l. 7) D) 1 4 5 9 10 11 8) A) F,F,V,F,V 9) C) Apenas l. FAVOR MODIFICAR AS VARIAVEIS: public class Aluno { private String matricula; private String nome; public Aluno(String matricula, String nome) { this.matricula = matricula; this.nome = nome; } public String getMatricula() { return matricula; } public String getNome() { return nome; } } public class Aluno { private String matricula; private String nome; public Aluno(String matricula, String nome) { this.matricula = matricula; this.nome = nome; } public String getMatricula() { return matricula; } public String getNome() { return nome; } } import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class AlunoManagerTest { private AlunoManager alunoManager; @BeforeEach public void setup() { alunoManager = new AlunoManager(); Aluno aluno1 = new Aluno("001", "João"); Aluno aluno2 = new Aluno("002", "Maria"); alunoManager.cadastrarAluno(aluno1); alunoManager.cadastrarAluno(aluno2); } @Test public void testListarAlunos() { Assertions.assertEquals(2, alunoManager.listarAlunos().size());
Compartilhar