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 Jundt_testing_Jtorres126;
publis class p.oques {
ciass fiejids
Whe will do data hiding, 50 all will start with private keywords
private string prodName 3
private double prodprices
private int prodQtys
public Product(String prodName, double prodPrice)t?? constructor this.prodiName o prodNames
3 this prodprice o prodprices
public Product(){//no aces constructor
}
public static void main(String[] args) f
Product pI a new Product())
pl.setprodPrice (-20)3
}
System.out.printin(p1. Betprodprice())3
public String getProdName(){
}
return prodinames
public void setProdName(String prodName){
}
this prodilame e prodvames
public double getprodPrice() f
}
return prodprices
public void setprodPrice(double prodprice) f
iff(prodprice s e){
thisoprodprice =0.258
else ?
thisoprodintice a prodpntices
}3
public int geterrodogy(Q)?
3
return prodedys
public void setifrodquy (int prodoty) is
this aprodety = prodetys
3
pubitic string tosturing(){
7
return this . Eetprodveme ()4", "this getProdPrice(
 Please help with finding out why the Junit test is coming

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!