Hello, i think there is a bug in the test file for “Cook Your Lasagna” exercise in the Java stack, i tried to test this code :
public class Lasagna {
public int expectedMinutesInOven() {
return 40;
}
public int remainingMinutesInOven(int time) {
return expectedMinutesInOven() - time;
}
public int preparationTimeInMinutes(int layers) {
return layers * 2;
}
public int totalTimeInMinutes(int layers, int time) {
return preparationTimeInMinutes(layers) + time;
}
}
but i’m getting this error :
We received the following error when we ran your code:
./src/test/java/LasagnaTest.java:1: error: package org.junit does not exist
import org.junit.Test;
^./src/test/java/LasagnaTest.java:9: error: cannot find symbol
@Test
^
symbol: class Test
location: class LasagnaTest./src/test/java/LasagnaTest.java:22: error: cannot find symbol
@Test
^
symbol: class Test
location: class LasagnaTest./src/test/java/LasagnaTest.java:27: error: cannot find symbol
@Test
^
symbol: class Test
location: class LasagnaTest./src/test/java/LasagnaTest.java:40: error: cannot find symbol
@Test
^
symbol: class Test
location: class LasagnaTest./src/test/java/LasagnaTest.java:45: error: cannot find symbol
@Test
^
symbol: class Test
location: class LasagnaTest./src/test/java/LasagnaTest.java:58: error: cannot find symbol
@Test
^
symbol: class Test
location: class LasagnaTest./src/test/java/LasagnaTest.java:63: error: cannot find symbol
@Test
^
symbol: class Test
location: class LasagnaTest./src/test/java/LasagnaTest.java:68: error: cannot find symbol
@Test
^
symbol: class Test
location: class LasagnaTest./src/test/java/LasagnaTest.java:81: error: cannot find symbol
@Test
^
symbol: class Test
location: class LasagnaTest./src/test/java/LasagnaTest.java:86: error: cannot find symbol
@Test
^
symbol: class Test
location: class LasagnaTestNote: ./src/test/java/utils/ReflectionProxy.java uses unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.
thanks for your help.