Move inner test classes to top-level classes to run these by the Maven build.
Original Pull Request: #2253
This commit is contained in:
committed by
Christoph Strobl
parent
73b49862df
commit
2fc29d96ce
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2022 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
|
||||
*
|
||||
* https://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.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.redis.mapping;
|
||||
|
||||
import org.springframework.data.redis.hash.Jackson2HashMapper;
|
||||
|
||||
/**
|
||||
* @author Mark Paluch
|
||||
*/
|
||||
public class FlatteningJackson2HashMapperUnitTests extends Jackson2HashMapperUnitTests {
|
||||
FlatteningJackson2HashMapperUnitTests() {
|
||||
super(new Jackson2HashMapper(true));
|
||||
}
|
||||
}
|
||||
@@ -42,7 +42,7 @@ import org.springframework.data.redis.hash.Jackson2HashMapper;
|
||||
* @author Christoph Strobl
|
||||
* @author Mark Paluch
|
||||
*/
|
||||
public abstract class Jackson2HashMapperUnitTests extends AbstractHashMapperTests {
|
||||
abstract class Jackson2HashMapperUnitTests extends AbstractHashMapperTests {
|
||||
|
||||
private final Jackson2HashMapper mapper;
|
||||
|
||||
@@ -50,19 +50,6 @@ public abstract class Jackson2HashMapperUnitTests extends AbstractHashMapperTest
|
||||
this.mapper = mapper;
|
||||
}
|
||||
|
||||
public static class FlatteningJackson2HashMapperUnitTests extends Jackson2HashMapperUnitTests {
|
||||
FlatteningJackson2HashMapperUnitTests() {
|
||||
super(new Jackson2HashMapper(true));
|
||||
}
|
||||
}
|
||||
|
||||
public static class NonFlatteningJackson2HashMapperUnitTests extends Jackson2HashMapperUnitTests {
|
||||
|
||||
NonFlatteningJackson2HashMapperUnitTests() {
|
||||
super(new Jackson2HashMapper(false));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("rawtypes")
|
||||
protected <T> HashMapper mapperFor(Class<T> t) {
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2022 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
|
||||
*
|
||||
* https://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.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.redis.mapping;
|
||||
|
||||
import org.springframework.data.redis.hash.Jackson2HashMapper;
|
||||
|
||||
/**
|
||||
* @author Mark Paluch
|
||||
*/
|
||||
public class NonFlatteningJackson2HashMapperUnitTests extends Jackson2HashMapperUnitTests {
|
||||
|
||||
NonFlatteningJackson2HashMapperUnitTests() {
|
||||
super(new Jackson2HashMapper(false));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user