Skip to content

Commit

Permalink
セッション取得の一時無効化
Browse files Browse the repository at this point in the history
  • Loading branch information
secondarykey committed Jan 20, 2013
1 parent a1fbb63 commit 9dfac82
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/jp/dogrun/ileaflet/taglib/LoginTag.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public int doStartTag() throws JspException {

Actor actor = null;

HttpServletRequest request = RequestLocator.get();
actor = (Actor)request.getSession().getAttribute(Actor.class.getName());
//HttpServletRequest request = RequestLocator.get();
//actor = (Actor)request.getSession().getAttribute(Actor.class.getName());

try {
JspWriter out = pageContext.getOut();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package jp.dogrun.ileaflet.controller.login;

import org.slim3.tester.ControllerTestCase;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;

public class SetPasswordControllerTest extends ControllerTestCase {

@Test
public void run() throws Exception {
tester.start("/login/setPassword");
SetPasswordController controller = tester.getController();
assertThat(controller, is(notNullValue()));
assertThat(tester.isRedirect(), is(false));
assertThat(tester.getDestinationPath(), is(nullValue()));
}
}
2 changes: 1 addition & 1 deletion war/WEB-INF/appengine-generated/datastore-indexes-auto.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Indices written at Fri, 18 Jan 2013 10:54:45 UTC -->
<!-- Indices written at Sat, 19 Jan 2013 10:09:23 UTC -->

<datastore-indexes/>

Binary file modified war/WEB-INF/appengine-generated/local_db.bin
Binary file not shown.

0 comments on commit 9dfac82

Please sign in to comment.