[Notice] Announcing the End of Demo Server [Read me]

remove unused method test
@341f2863df18d50714f72b82bdbf145717d8c645
--- test/models/UserTest.java
+++ test/models/UserTest.java
... | ... | @@ -54,15 +54,6 @@ |
54 | 54 |
} |
55 | 55 |
|
56 | 56 |
@Test |
57 |
- public void findByName() throws Exception { |
|
58 |
- // Given |
|
59 |
- // When |
|
60 |
- User user = User.findByName("Hobi"); |
|
61 |
- // Then |
|
62 |
- assertThat(user.id).isEqualTo(2l); |
|
63 |
- } |
|
64 |
- |
|
65 |
- @Test |
|
66 | 57 |
public void findNameById() throws Exception { |
67 | 58 |
//Given |
68 | 59 |
//When |
... | ... | @@ -96,16 +87,6 @@ |
96 | 87 |
Page<User> searchUsers = User.findUsers(0, "ho"); |
97 | 88 |
// Then |
98 | 89 |
assertThat(searchUsers.getTotalRowCount()).isEqualTo(1); |
99 |
- } |
|
100 |
- |
|
101 |
- @Test |
|
102 |
- public void findProjectsById() throws Exception { |
|
103 |
- // Given |
|
104 |
- // When |
|
105 |
- User user = User.findProjectsById(2l); |
|
106 |
- // Then |
|
107 |
- assertThat(user.projectUser.size()).isEqualTo(2); |
|
108 |
- assertThat(user.projectUser.iterator().next().project.name).isEqualTo("nForge4java"); |
|
109 | 90 |
} |
110 | 91 |
|
111 | 92 |
@Test |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?