(Solved):On ECLIPSE using checkstyle requirements create a JUNIT Testing class for item.java class. Be sure to have 100 percent coverage ( EclEmma code coverage tool) and correct imports. The unit tests mus… View Answer…

 

Question

On ECLIPSE using checkstyle requirements create a JUNIT Testing class for item.java class. Be sure to have 100 percent coverage ( EclEmma code coverage tool) and correct imports. The unit tests must be written as JUnit 4 test.

Need to use import static org.junit.Assert.assertEquals

package model;

import java.math.BigDecimal;

import java.util.Objects;

public final class Item

{

/** myName of item. */

private final String myName;

/** myPrice of item. */

private final BigDecimal myPrice;

/**

* quantity of bulk. */

private int myBulkQuantity;

/**

* myPrice

Scroll to top