Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

No tests found with test runner 'JUnit 5'.

O código está igual ao da video-aula e fico recebendo este erro: "No tests found with test runner 'JUnit 5'."

package br.com.alura.argentum.modelo;


import java.time.LocalDateTime;

import org.junit.Test;

class NegociacaoTest {

    @Test (expected = IllegalArgumentException.class)
    public void naoDeveCriarNegociacaoComPrecoNegativo() {
        new Negociacao(-29.0, 2, LocalDateTime.now());
    }

    @Test (expected = IllegalArgumentException.class)
    public void naoDeveCriarNegociacaoComDataNula() {
        new Negociacao(10.0, 2, null);
    }

    @Test (expected = IllegalArgumentException.class)
    public void naoDeveCriarNegociacaoComQuantidadeNegativa() {
        new Negociacao(10.0, -2, LocalDateTime.now());
    }

}
1 resposta
solução!

Fala ai Felipe, tudo bem ?

Acredito que usamos no curso o Junit 4, por isso não esteja funcionando.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software