Eles tá m dando erro dos retornos esperados.
Classe BonusServiceTest
package br.com.alura.tdd.service;
import br.com.alura.tdd.modelo.Funcionario;
import org.junit.Test;
import java.math.BigDecimal;
import java.time.LocalDate;
import static org.junit.Assert.assertEquals;
public class BonusServiceTest {
@Test
public void bonusDeveriaSerZeroPraFuncionarioComSalarioAlto(){
BonusService bonusService = new BonusService();
bonusService.calcularBonus(new Funcionario("Rodrigo", LocalDate.now(), new BigDecimal("25000")));
assertEquals(BigDecimal.ZERO, bonusService);
}
@Test
public void bonusDeveriaSer10PorcentodoSalario(){
BonusService bonusService = new BonusService();
bonusService.calcularBonus(new Funcionario("Rodrigo", LocalDate.now(), new BigDecimal("2500")));
assertEquals(new BigDecimal("250.0"), bonusService);
}
}
Erros: