File tree 3 files changed +56
-14
lines changed
src/test/java/org/springframework/data/redis/mapping
3 files changed +56
-14
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2022 the original author or authors.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ package org .springframework .data .redis .mapping ;
17
+
18
+ import org .springframework .data .redis .hash .Jackson2HashMapper ;
19
+
20
+ /**
21
+ * @author Mark Paluch
22
+ */
23
+ public class FlatteningJackson2HashMapperUnitTests extends Jackson2HashMapperUnitTests {
24
+ FlatteningJackson2HashMapperUnitTests () {
25
+ super (new Jackson2HashMapper (true ));
26
+ }
27
+ }
Original file line number Diff line number Diff line change 42
42
* @author Christoph Strobl
43
43
* @author Mark Paluch
44
44
*/
45
- public abstract class Jackson2HashMapperUnitTests extends AbstractHashMapperTests {
45
+ abstract class Jackson2HashMapperUnitTests extends AbstractHashMapperTests {
46
46
47
47
private final Jackson2HashMapper mapper ;
48
48
49
49
Jackson2HashMapperUnitTests (Jackson2HashMapper mapper ) {
50
50
this .mapper = mapper ;
51
51
}
52
52
53
- public static class FlatteningJackson2HashMapperUnitTests extends Jackson2HashMapperUnitTests {
54
- FlatteningJackson2HashMapperUnitTests () {
55
- super (new Jackson2HashMapper (true ));
56
- }
57
- }
58
-
59
- public static class NonFlatteningJackson2HashMapperUnitTests extends Jackson2HashMapperUnitTests {
60
-
61
- NonFlatteningJackson2HashMapperUnitTests () {
62
- super (new Jackson2HashMapper (false ));
63
- }
64
- }
65
-
66
53
@ Override
67
54
@ SuppressWarnings ("rawtypes" )
68
55
protected <T > HashMapper mapperFor (Class <T > t ) {
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2022 the original author or authors.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ package org .springframework .data .redis .mapping ;
17
+
18
+ import org .springframework .data .redis .hash .Jackson2HashMapper ;
19
+
20
+ /**
21
+ * @author Mark Paluch
22
+ */
23
+ public class NonFlatteningJackson2HashMapperUnitTests extends Jackson2HashMapperUnitTests {
24
+
25
+ NonFlatteningJackson2HashMapperUnitTests () {
26
+ super (new Jackson2HashMapper (false ));
27
+ }
28
+ }
You can’t perform that action at this time.
0 commit comments