Question
package entry; public class Entry { private int length; public int getLength() { return length; } public void setLength(int length) { this.length = length; }
package entry;
public class Entry {
private int length; public int getLength() { return length; } public void setLength(int length) { this.length = length; } public int getWidth() { return width; } public void setWidth(int width) { this.width = width; } public int area () { return length * width;} public Entry(int length, int width) { this.length = length; this.width = width; } private int width; }
hi my code here is able to times length and width however I would like to test my program out using Junit testing on eclipse the following code below is what work i have done towards it so far could you help me please.
package entry;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Test;
class EntryTest {
@AfterAll static void tearDownAfterClass() throws Exception { }
@Test void test() { fail("Not yet implemented"); }
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started