-
Notifications
You must be signed in to change notification settings - Fork 309
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
1 parent
351882a
commit 5825bae
Showing
2 changed files
with
7 additions
and
2 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 |
---|---|---|
|
@@ -57,8 +57,8 @@ void setUp() { | |
// given | ||
final RequestLine requestLine = RequestLine.from("GET /login HTTP/1.1"); | ||
final String uuid = UUID.randomUUID().toString(); | ||
final HttpRequest httpRequest = new HttpRequest(requestLine, new Headers(), new RequestBody()); | ||
final Session session = new Session(uuid); | ||
final HttpRequest httpRequest = new HttpRequest(requestLine, new Headers(), new RequestBody()); | ||
session.setAttribute("user", new User("gugu", "password", "[email protected]")); | ||
httpRequest.setSession(session); | ||
final HttpResponse httpResponse = new HttpResponse(HttpVersion.HTTP_1_1); | ||
|
@@ -99,6 +99,9 @@ void setUp() { | |
final RequestLine requestLine = RequestLine.from("POST /login HTTP/1.1"); | ||
final RequestBody requestBody = RequestBody.from("account=hello&password=world"); | ||
final HttpRequest httpRequest = new HttpRequest(requestLine, new Headers(), requestBody); | ||
final String uuid = UUID.randomUUID().toString(); | ||
final Session session = new Session(uuid); | ||
httpRequest.setSession(session); | ||
final HttpResponse httpResponse = new HttpResponse(HttpVersion.HTTP_1_1); | ||
InMemoryUserRepository.save(new User("hello", "world", "[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