Question: Please help with finding out why the Junit test is coming back as a fail for the second method on Producttest package Jundt _ testing
Please help with finding out why the Junit test is coming back as a fail for the second method on Producttest
package JundttestingJtorres;
publis class poques
ciass fiejids
Whe will do data hiding, all will start with private keywords
private string prodName
private double prodprices
private int prodQtys
public ProductString prodName, double prodPrice constructor this.prodiName o prodNames
this prodprice o prodprices
public Productno aces constructor
public static void mainString args f
Product pI a new Product
plsetprodPrice
System.out.printinp Betprodprice
public String getProdName
return prodinames
public void setProdNameString prodName
this prodilame e prodvames
public double getprodPrice f
return prodprices
public void setprodPricedouble prodprice f
iffprodprice s e
thisoprodprice
else
thisoprodintice a prodpntices
public int geterrodogyQ
return prodedys
public void setifrodquy int prodoty is
this aprodety prodetys
pubitic string tosturing
return this Eetprodveme "this getProdPrice
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
