From 9cb5c75b4e0b28d6520c8b80f9f2fbbf3b9de872 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Mon, 13 Oct 2014 22:38:10 -0500 Subject: [PATCH] MapSessionTests tabs -> spaces --- .../session/MapSessionTests.java | 138 +++++++++--------- 1 file changed, 69 insertions(+), 69 deletions(-) diff --git a/spring-session/src/test/java/org/springframework/session/MapSessionTests.java b/spring-session/src/test/java/org/springframework/session/MapSessionTests.java index 4b85207..966ab51 100644 --- a/spring-session/src/test/java/org/springframework/session/MapSessionTests.java +++ b/spring-session/src/test/java/org/springframework/session/MapSessionTests.java @@ -9,93 +9,93 @@ import static org.fest.assertions.Assertions.assertThat; public class MapSessionTests { - private MapSession session; + private MapSession session; - @Before - public void setup() { - session = new MapSession(); - } + @Before + public void setup() { + session = new MapSession(); + } - @Test(expected = IllegalArgumentException.class) - public void constructorNullSession() { - new MapSession(null); - } + @Test(expected = IllegalArgumentException.class) + public void constructorNullSession() { + new MapSession(null); + } - /** - * Ensure conforms to the javadoc of {@link Session} - */ - @Test - public void setAttributeNullObjectRemoves() { - String attr = "attr"; - session.setAttribute(attr, new Object()); - session.setAttribute(attr, null); - assertThat(session.getAttributeNames()).isEmpty(); - } + /** + * Ensure conforms to the javadoc of {@link Session} + */ + @Test + public void setAttributeNullObjectRemoves() { + String attr = "attr"; + session.setAttribute(attr, new Object()); + session.setAttribute(attr, null); + assertThat(session.getAttributeNames()).isEmpty(); + } - @Test - public void equalsNonSessionFalse() { - assertThat(session.equals(new Object())).isFalse(); - } + @Test + public void equalsNonSessionFalse() { + assertThat(session.equals(new Object())).isFalse(); + } - @Test - public void equalsCustomSession() { - CustomSession other = new CustomSession(); - session.setId(other.getId()); - assertThat(session.equals(other)).isTrue(); - } + @Test + public void equalsCustomSession() { + CustomSession other = new CustomSession(); + session.setId(other.getId()); + assertThat(session.equals(other)).isTrue(); + } - @Test - public void hashCodeEqualsIdHashCode() { - session.setId("constantId"); - assertThat(session.hashCode()).isEqualTo(session.getId().hashCode()); - } + @Test + public void hashCodeEqualsIdHashCode() { + session.setId("constantId"); + assertThat(session.hashCode()).isEqualTo(session.getId().hashCode()); + } - static class CustomSession implements ExpiringSession { + static class CustomSession implements ExpiringSession { - @Override - public long getCreationTime() { - return 0; - } + @Override + public long getCreationTime() { + return 0; + } - @Override - public String getId() { - return "id"; - } + @Override + public String getId() { + return "id"; + } - @Override - public long getLastAccessedTime() { - return 0; - } + @Override + public long getLastAccessedTime() { + return 0; + } - @Override - public void setMaxInactiveInterval(int interval) { + @Override + public void setMaxInactiveInterval(int interval) { - } + } - @Override - public int getMaxInactiveInterval() { - return 0; - } + @Override + public int getMaxInactiveInterval() { + return 0; + } - @Override - public Object getAttribute(String attributeName) { - return null; - } + @Override + public Object getAttribute(String attributeName) { + return null; + } - @Override - public Set getAttributeNames() { - return null; - } + @Override + public Set getAttributeNames() { + return null; + } - @Override - public void setAttribute(String attributeName, Object attributeValue) { + @Override + public void setAttribute(String attributeName, Object attributeValue) { - } + } - @Override - public void removeAttribute(String attributeName) { + @Override + public void removeAttribute(String attributeName) { - } - } + } + } } \ No newline at end of file