Skip to content
Permalink
Browse files
Fix senstive mail address (#119)
Change-Id: I3d1744a6fb110a36337678fd89b73c809e6ab98b
  • Loading branch information
Linary committed Apr 16, 2021
1 parent 6224c01 commit 166a3fe94e2e9849dd0b49596e573538e95dd681
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
@@ -37,7 +37,7 @@
<developers>
<developer>
<name>lizhangmei</name>
<email>lizhangmei@baidu.com</email>
<email>javaloveme@gmail.com</email>
</developer>
<developer>
<name>zhoney</name>
@@ -63,14 +63,14 @@ public void testCreate() {
User user1 = new User();
user1.name("user1");
user1.password("p1");
user1.email("user1@baidu.com");
user1.email("user1@hugegraph.com");
user1.phone("123456789");
user1.avatar("image1.jpg");

User user2 = new User();
user2.name("user2");
user2.password("p2");
user2.email("user2@baidu.com");
user2.email("user2@hugegraph.com");
user2.phone("1357924680");
user2.avatar("image2.jpg");

@@ -79,13 +79,13 @@ public void testCreate() {

Assert.assertEquals("user1", result1.name());
Assert.assertNotEquals("p1", result1.password());
Assert.assertEquals("user1@baidu.com", result1.email());
Assert.assertEquals("user1@hugegraph.com", result1.email());
Assert.assertEquals("123456789", result1.phone());
Assert.assertEquals("image1.jpg", result1.avatar());

Assert.assertEquals("user2", result2.name());
Assert.assertNotEquals("p2", result2.password());
Assert.assertEquals("user2@baidu.com", result2.email());
Assert.assertEquals("user2@hugegraph.com", result2.email());
Assert.assertEquals("1357924680", result2.phone());
Assert.assertEquals("image2.jpg", result2.avatar());

@@ -183,21 +183,21 @@ public void testUpdate() {
User user1 = createUser("test1", "psw1");
User user2 = createUser("test2", "psw2");

Assert.assertEquals("test@baidu.com", user1.email());
Assert.assertEquals("test@hugegraph.com", user1.email());
Assert.assertEquals("16812345678", user1.phone());
Assert.assertEquals("image.jpg", user1.avatar());

String oldPassw = user1.password();
Assert.assertNotEquals("psw1", oldPassw);

user1.password("psw-udated");
user1.email("test_updated@baidu.com");
user1.email("test_updated@hugegraph.com");
user1.phone("1357924680");
user1.avatar("image-updated.jpg");

User updated = api.update(user1);
Assert.assertNotEquals(oldPassw, updated.password());
Assert.assertEquals("test_updated@baidu.com", updated.email());
Assert.assertEquals("test_updated@hugegraph.com", updated.email());
Assert.assertEquals("1357924680", updated.phone());
Assert.assertEquals("image-updated.jpg", updated.avatar());
Assert.assertNotEquals(user1.updateTime(), updated.updateTime());
@@ -264,7 +264,7 @@ protected static User createUser(String name, String password) {
User user = new User();
user.name(name);
user.password(password);
user.email("test@baidu.com");
user.email("test@hugegraph.com");
user.phone("16812345678");
user.avatar("image.jpg");
return api.create(user);

0 comments on commit 166a3fe

Please sign in to comment.