Problems with JUnit and assertions

0

I do not understand why the assertEquals gives me an error. It asks me to import static org.junit.Assert. *, But as you can see, I already do it.

import static org.junit.Assert.*;
import org.junit.Test;
public class ProductoTest {

    public static final double ERROR_ADMISIBLE = 0.00001;

     @Test
     public void testGetPrecio() {
        Producto CocaCola = new Producto("Coca-Cola", 1.50, "123456789128");
        assertEquals(CocaCola.getPrecio(),1.50);
    }
}
    
asked by pepinillo 10.12.2016 в 17:55
source

0 answers