DATAREDIS-617 - Polishing.
Split serializer documentation into multiple paragraphs. Reformat test parameter provider classes. Original pull request: #240.
This commit is contained in:
@@ -36,7 +36,7 @@ import org.springframework.oxm.xstream.XStreamMarshaller;
|
||||
|
||||
/**
|
||||
* Parameters for testing implementations of {@link AbstractOperations}
|
||||
*
|
||||
*
|
||||
* @author Jennifer Hickey
|
||||
* @author Thomas Darimont
|
||||
* @author Christoph Strobl
|
||||
@@ -115,13 +115,13 @@ abstract public class AbstractOperationsTestParams {
|
||||
|
||||
return Arrays.asList(new Object[][] { //
|
||||
{ stringTemplate, stringFactory, stringFactory }, //
|
||||
{ longTemplate, stringFactory, longFactory }, //
|
||||
{ doubleTemplate, stringFactory, doubleFactory }, //
|
||||
{ rawTemplate, rawFactory, rawFactory }, //
|
||||
{ personTemplate, stringFactory, personFactory }, //
|
||||
{ xstreamStringTemplate, stringFactory, stringFactory }, //
|
||||
{ xstreamPersonTemplate, stringFactory, personFactory }, //
|
||||
{ jackson2JsonPersonTemplate, stringFactory, personFactory }, //
|
||||
{ genericJackson2JsonPersonTemplate, stringFactory, personFactory } });
|
||||
{ longTemplate, stringFactory, longFactory }, //
|
||||
{ doubleTemplate, stringFactory, doubleFactory }, //
|
||||
{ rawTemplate, rawFactory, rawFactory }, //
|
||||
{ personTemplate, stringFactory, personFactory }, //
|
||||
{ xstreamStringTemplate, stringFactory, stringFactory }, //
|
||||
{ xstreamPersonTemplate, stringFactory, personFactory }, //
|
||||
{ jackson2JsonPersonTemplate, stringFactory, personFactory }, //
|
||||
{ genericJackson2JsonPersonTemplate, stringFactory, personFactory } });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/*
|
||||
* Copyright 2011-2017 the original author or authors.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@@ -44,6 +44,7 @@ import org.springframework.oxm.xstream.XStreamMarshaller;
|
||||
public abstract class CollectionTestParams {
|
||||
|
||||
public static Collection<Object[]> testParams() {
|
||||
|
||||
// XStream serializer
|
||||
XStreamMarshaller xstream = new XStreamMarshaller();
|
||||
try {
|
||||
@@ -129,17 +130,22 @@ public abstract class CollectionTestParams {
|
||||
rawTemplateLtc.setKeySerializer(stringSerializer);
|
||||
rawTemplateLtc.afterPropertiesSet();
|
||||
|
||||
return Arrays
|
||||
.asList(new Object[][] { { stringFactory, stringTemplate }, { doubleAsStringObjectFactory, stringTemplate },
|
||||
{ personFactory, personTemplate }, { stringFactory, xstreamStringTemplate },
|
||||
{ personFactory, xstreamPersonTemplate },
|
||||
{ personFactory, jackson2JsonPersonTemplate }, { rawFactory, rawTemplate },
|
||||
return Arrays.asList(new Object[][] { { stringFactory, stringTemplate }, //
|
||||
{ doubleAsStringObjectFactory, stringTemplate }, //
|
||||
{ personFactory, personTemplate }, //
|
||||
{ stringFactory, xstreamStringTemplate }, //
|
||||
{ personFactory, xstreamPersonTemplate }, //
|
||||
{ personFactory, jackson2JsonPersonTemplate }, //
|
||||
{ rawFactory, rawTemplate },
|
||||
|
||||
// lettuce
|
||||
{ stringFactory, stringTemplateLtc }, { personFactory, personTemplateLtc },
|
||||
{ doubleAsStringObjectFactory, stringTemplateLtc }, { personFactory, personTemplateLtc },
|
||||
{ stringFactory, xstreamStringTemplateLtc }, { personFactory, xstreamPersonTemplateLtc },
|
||||
{ personFactory, jackson2JsonPersonTemplateLtc },
|
||||
{ rawFactory, rawTemplateLtc } });
|
||||
// lettuce
|
||||
{ stringFactory, stringTemplateLtc }, //
|
||||
{ personFactory, personTemplateLtc }, //
|
||||
{ doubleAsStringObjectFactory, stringTemplateLtc }, //
|
||||
{ personFactory, personTemplateLtc }, //
|
||||
{ stringFactory, xstreamStringTemplateLtc }, //
|
||||
{ personFactory, xstreamPersonTemplateLtc }, //
|
||||
{ personFactory, jackson2JsonPersonTemplateLtc }, //
|
||||
{ rawFactory, rawTemplateLtc } });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/*
|
||||
* Copyright 2011-2017 the original author or authors.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@@ -40,7 +40,7 @@ import org.springframework.oxm.xstream.XStreamMarshaller;
|
||||
|
||||
/**
|
||||
* Integration test for RedisMap.
|
||||
*
|
||||
*
|
||||
* @author Costin Leau
|
||||
* @author Jennifer Hickey
|
||||
* @author Thomas Darimont
|
||||
@@ -150,16 +150,22 @@ public class RedisMapTests extends AbstractRedisMapTests<Object, Object> {
|
||||
rawTemplateLtc.afterPropertiesSet();
|
||||
|
||||
return Arrays.asList(new Object[][] { { stringFactory, stringFactory, genericTemplate },
|
||||
{ personFactory, personFactory, genericTemplate }, { stringFactory, personFactory, genericTemplate },
|
||||
{ personFactory, stringFactory, genericTemplate }, { personFactory, stringFactory, xstreamGenericTemplate },
|
||||
{ personFactory, stringFactory, jackson2JsonPersonTemplate }, { rawFactory, rawFactory, rawTemplate },
|
||||
{ stringFactory, stringFactory, genericTemplateLettuce },
|
||||
{ personFactory, personFactory, genericTemplateLettuce },
|
||||
{ stringFactory, personFactory, genericTemplateLettuce },
|
||||
{ personFactory, stringFactory, genericTemplateLettuce },
|
||||
{ personFactory, stringFactory, xGenericTemplateLettuce },
|
||||
{ personFactory, stringFactory, jackson2JsonPersonTemplateLettuce },
|
||||
{ stringFactory, doubleFactory, stringTemplateLtc }, { stringFactory, longFactory, stringTemplateLtc },
|
||||
{ personFactory, personFactory, genericTemplate }, //
|
||||
{ stringFactory, personFactory, genericTemplate }, //
|
||||
{ personFactory, stringFactory, genericTemplate }, //
|
||||
{ personFactory, stringFactory, xstreamGenericTemplate }, //
|
||||
{ personFactory, stringFactory, jackson2JsonPersonTemplate }, //
|
||||
{ rawFactory, rawFactory, rawTemplate }, //
|
||||
|
||||
// lettuce
|
||||
{ stringFactory, stringFactory, genericTemplateLettuce }, //
|
||||
{ personFactory, personFactory, genericTemplateLettuce }, //
|
||||
{ stringFactory, personFactory, genericTemplateLettuce }, //
|
||||
{ personFactory, stringFactory, genericTemplateLettuce }, //
|
||||
{ personFactory, stringFactory, xGenericTemplateLettuce }, //
|
||||
{ personFactory, stringFactory, jackson2JsonPersonTemplateLettuce }, //
|
||||
{ stringFactory, doubleFactory, stringTemplateLtc }, //
|
||||
{ stringFactory, longFactory, stringTemplateLtc }, //
|
||||
{ rawFactory, rawFactory, rawTemplateLtc } });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/*
|
||||
* Copyright 2011-2017 the original author or authors.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@@ -60,7 +60,7 @@ public class RedisPropertiesTests extends RedisMapTests {
|
||||
|
||||
/**
|
||||
* Constructs a new <code>RedisPropertiesTests</code> instance.
|
||||
*
|
||||
*
|
||||
* @param keyFactory
|
||||
* @param valueFactory
|
||||
* @param template
|
||||
@@ -289,15 +289,21 @@ public class RedisPropertiesTests extends RedisMapTests {
|
||||
jackson2JsonPersonTemplateLtc.setHashValueSerializer(jackson2JsonStringSerializer);
|
||||
jackson2JsonPersonTemplateLtc.afterPropertiesSet();
|
||||
|
||||
return Arrays.asList(new Object[][] { { stringFactory, stringFactory, genericTemplate },
|
||||
{ stringFactory, stringFactory, genericTemplate }, { stringFactory, stringFactory, genericTemplate },
|
||||
{ stringFactory, stringFactory, genericTemplate }, { stringFactory, stringFactory, xstreamGenericTemplate },
|
||||
{ stringFactory, stringFactory, jackson2JsonPersonTemplate },
|
||||
return Arrays.asList(new Object[][] { { stringFactory, stringFactory, genericTemplate }, //
|
||||
{ stringFactory, stringFactory, genericTemplate }, //
|
||||
{ stringFactory, stringFactory, genericTemplate }, //
|
||||
{ stringFactory, stringFactory, genericTemplate }, //
|
||||
{ stringFactory, stringFactory, xstreamGenericTemplate }, //
|
||||
{ stringFactory, stringFactory, jackson2JsonPersonTemplate }, //
|
||||
|
||||
{ stringFactory, stringFactory, genericTemplateLtc }, { stringFactory, stringFactory, genericTemplateLtc },
|
||||
{ stringFactory, stringFactory, genericTemplateLtc }, { stringFactory, stringFactory, genericTemplateLtc },
|
||||
{ stringFactory, doubleFactory, genericTemplateLtc }, { stringFactory, longFactory, genericTemplateLtc },
|
||||
{ stringFactory, stringFactory, xGenericTemplateLtc },
|
||||
// lettuce
|
||||
{ stringFactory, stringFactory, genericTemplateLtc }, //
|
||||
{ stringFactory, stringFactory, genericTemplateLtc }, //
|
||||
{ stringFactory, stringFactory, genericTemplateLtc }, //
|
||||
{ stringFactory, stringFactory, genericTemplateLtc }, //
|
||||
{ stringFactory, doubleFactory, genericTemplateLtc }, //
|
||||
{ stringFactory, longFactory, genericTemplateLtc }, //
|
||||
{ stringFactory, stringFactory, xGenericTemplateLtc }, //
|
||||
{ stringFactory, stringFactory, jackson2JsonPersonTemplateLtc } });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user