(Speculating) while it could be intended to demonstrate that the serializer doesn’t have any side-effects, my money's on an unintensional copy-paste error.

On 17 Jan 2014, at 08:00, Christoph Strobl <notifications@github.com> wrote:

> In src/test/java/org/springframework/data/redis/serializer/SimpleRedisSerializerTests.java:
> 
> > \ No newline at end of file
> > +
> > +	@Test
> > +	public void testJackson2JsonSerializer() throws Exception {
> > +		Jackson2JsonRedisSerializer<Person> serializer = new Jackson2JsonRedisSerializer<Person>(Person.class);
> > +		String value = UUID.randomUUID().toString();
> > +		Person p1 = new Person(value, value, 1, new Address(value, 2));
> > +		assertEquals(p1, serializer.deserialize(serializer.serialize(p1)));
> > +		assertEquals(p1, serializer.deserialize(serializer.serialize(p1)));
> what is the purpose of duplicating assertEquals(p1, serializer.deserialize(serializer.serialize(p1))); ?
> 
> —
> Reply to this email directly or view it on GitHub.
>