测试到字符串 Junit
给定一个 toString 方法:
public String toString()
{
String accountString;
NumberFormat money = NumberFormat.getCurrencyInstance();
accountString = cust.toString();
accountString += " Current balance is " + money.format (balance);
return accountString;
}
我怎么能用朱尼特测试它?