如何在本地单元测试中注册ParseUser

时间:2018-01-30 09:21:49

标签: android parse-platform robolectric back4app

在本地单元测试中,VM是否允许通过ParseUser和Signup?

在线访问

1 个答案:

答案 0 :(得分:0)

如果您想用户注册用户,可以使用以下代码:

private String name;
private String surname;
private String gender;
private int age , age1;
private double  AmountPayout , SubPayout;

void info() 
{
  this.name = JOptionPane.showInputDialog(null,"Enter the Patient Name :");

  this.surname = JOptionPane.showInputDialog(null,"Enter the Patient Surname :");

  String age = JOptionPane.showInputDialog(null,"Enter the age of the patient :");
  int age1 = Integer.parseInt(age);

  this.gender = JOptionPane.showInputDialog(null,"Enter the Patient gender :");

  String AmountPayout = JOptionPane.showInputDialog(null,"Enter the Patient payout :");
  double SubPayout = Double.parseDouble(AmountPayout);
}

如果您需要更多信息,请在Back4App网站上提供有关它的文档和模板:)