Course Solutions Uncategorized (Solved) : Make Pokemonjava Class Pokemeontest Need Pass Junit Test Fail Tostringtest1 2 3 Don T Know Q30827072 . . . .

(Solved) : Make Pokemonjava Class Pokemeontest Need Pass Junit Test Fail Tostringtest1 2 3 Don T Know Q30827072 . . . .

 

I make a Pokemon.java class and a PokemeonTest. Need topass all the junit test. But I am fail the toStringTest1 , 2 and 3.Don’t know why.

This is part of my Pokemon.java code.

public String toString(){
DecimalFormat decimal = new DecimalFormat(“000”);
String string = “”;
string =string + “Species: ” + this.species + “n”;
if(this.species.compareTo(this.name) != 0){
string =string + “Name: ” +this.name + “n”;
}
string =string + “Number: ” + decimal.format(this.number) +”n”;
string =string + “Type: ” + this.type1;
if(this.type2.length() > 0){
string = string + ” | ” + this.type2;
}
string =string + “n”;
string =string + “HP: ” + this.hitPnts + “n”;
string =string + “CP: ” +this.comPwr +”n”;
return string;
}

And This

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post