#need help test result error

12 messages · Page 1 of 1 (latest)

slate helm
#

i get this error while run the test on java lasagna, or do i missing something ?

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.

crisp coral
#

This is the Cook Your Lasagna exercise on the Java track, right?
Did you use the online editor and try to solve the exercise in your browser, or did you download the exercise and tried to solve it locally, on your computer?
Can you post your solution so that I can try to reproduce the issue?

slate helm
#

i try it using online editor,
public class Lasagna { // TODO: define the 'expectedMinutesInOven()' method public int expectedMinutesInOven(){ return 40; } // TODO: define the 'remainingMinutesInOven()' method public int remainingMinutesInOven(int minutes){ return expectedMinutesInOven() - minutes; } // TODO: define the 'preparationTimeInMinutes()' method public int preparationTimeInMinutes(int minutes_prep){ return minutes_prep * 2; } // TODO: define the 'totalTimeInMinutes()' method public int totalTimeInMinutes(int numLayer, int minuteOven){ return preparationTimeInMinutes(numLayer) + minuteOven; } }

#

the button still stuck even if i refresh my tab browser

#

nevermind the button, i just add blank space and the button works, but the result still error

crisp coral
#

Strange. I just copied your solution, pasted it in the editor, and all tests did pass.

#

the button still stuck even if i refresh my tab browser

Could you try to make some small inconsequential change, like adding or removing an empty line or a space somewhere? That should allow you to run the tests again.
Sorry, I read your last sentence too late.

#

If you visit the web page of the exercise do you see a message at the top about an update of the exercise? Something like "This exercise has been updated."?

slate helm
#

yes

crisp coral
#

You might be able to click that message and update the exercise.
That could fix your problem.

slate helm
#

thank you, it solve the problem

crisp coral
#

Great! Happy coding!