This commit is contained in:
qinjiaming_branch 2016-08-30 11:27:42 +08:00
parent 3ab9b202dd
commit 86db9f0073
26 changed files with 9 additions and 25 deletions

Binary file not shown.

Binary file not shown.

View File

@ -10,6 +10,9 @@ import cn.bmob.v3.BmobObject;
*/
public class News extends BmobObject {
// private String id;
// private String time;
private String type; // 新闻类型
private String title; // 新闻标题
private String author; // 新闻作者

View File

@ -14,7 +14,11 @@ public class User extends BmobUser {
public static String userId;
// 父类中已经存在的属性
// private String id;
// private String username;
// private String password;
// private String email;
// private String regTime;
private String sex; // 性别
private String phone; // 电话
@ -25,6 +29,7 @@ public class User extends BmobUser {
private String dorNum; // 寝室号
private String state = "未登陆"; // 登录状态
private String type = "普通用户"; // 用户类型(普通用户、黑名单、中奖者)
//private BmobFile picUser; // 头像
public String getType() {
return type;

View File

@ -1,24 +0,0 @@
package com.stone.util;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class UtilTest {
private static Util util = new Util();
@Before
public void setUp() throws Exception {
}
@Test
public void testIsPhoneNumberValid() {
String testPhone = "12345678900";
assertEquals(false,testPhone);
}
}