(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 mu… 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 tests.

package model;

import java.math.BigDecimal;

import java.text.NumberFormat;

import java.util.Locale;

import java.util.Objects;

public final class Item

public static final NumberFormat NF;

private String myName;

private BigDecimal myPrice;

private int myBulkQuantity;

private BigDecimal myBulkPrice;

static

{

NF = NumberFormat.getCurrencyInstance(Locale.US);

public Item(final String theName, final BigDecimal thePrice)

{

this(theName, thePrice, 0, BigDecimal.ZERO);

}

public Item(final

Scroll to top