Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions