-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
90 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
.idea | ||
lib | ||
out | ||
target | ||
target | ||
消息中心* | ||
css | ||
*.rar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ public class FriendTest { | |
public FriendTest() throws SQLException { | ||
} | ||
|
||
@Test | ||
public void addAndDeleteFriendTest() throws SQLException { | ||
System.out.println("addFriendTest"); | ||
User user = userInter.byId("[email protected]"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ public class GroupTest { | |
public GroupTest() throws SQLException { | ||
} | ||
|
||
@Test | ||
public void createGroup() throws SQLException { | ||
System.out.println("createGroup"); | ||
UserInter userInter = new UserInterImpl(); | ||
|
@@ -56,6 +57,7 @@ public void createGroup() throws SQLException { | |
assert chatSession.getOwnerId().equals(users[0].getId()); | ||
} | ||
|
||
@Test | ||
public void groupChatTest() throws SQLException { | ||
int size = msgInter.bySessionId("-1").size(); | ||
Msg msg = new Msg("[email protected]", "-1", new Date(), "Hello, I'm test0"); | ||
|
@@ -71,6 +73,7 @@ public void groupChatTest() throws SQLException { | |
|
||
} | ||
|
||
@Test | ||
public void deleteGroup() throws SQLException { | ||
System.out.println("deleteGroup"); | ||
ChatSessionInter chatSessionInter = new ChatSessionInterImpl(); | ||
|
@@ -89,6 +92,7 @@ public void deleteGroup() throws SQLException { | |
|
||
} | ||
|
||
@Test | ||
public void updateGroup() throws SQLException { | ||
System.out.println("editGroup"); | ||
ChatSession cs = chatSessionInter.byId("-1"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
public class LoginTest { | ||
static String cookie = "TEST_COOKIE"; | ||
|
||
@Test | ||
public void logintest() throws SQLException { | ||
UserInter userInter = new UserInterImpl(); | ||
User user = userInter.byId("[email protected]"); | ||
|
@@ -24,6 +25,7 @@ public void logintest() throws SQLException { | |
|
||
} | ||
|
||
@Test | ||
public void logouttest() throws SQLException { | ||
UserInter userInter = new UserInterImpl(); | ||
User user = userInter.byId("[email protected]"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters