由于我是junit初学者,请帮助为以下课程编写测试用例
我的程序如下:
public class One
{
public void caseOne()
{
int max=0,
cardNo=0;
System.out.println("Name:");
String name=br.readLine();
System.out.println("Amount:");
int amount=Integer.parseInt(br.readLine());
int max=0;
for(Customer c :custList)
{
if(c.getCardNo()>max)
{
max=c.cardNo;
}
}
System.out.println("Your card no:"+(max+1));
Customer newCust=new Customer(name,amount,max+1);
custList.add(newCust);
}
}