Skip to content

Commit ab0e651

Browse files
committed
Polish SerializationTestUtils, clean up warnings, etc.
1 parent 9d5881e commit ab0e651

File tree

43 files changed

+133
-126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+133
-126
lines changed

integration-tests/src/test/java/org/springframework/aop/config/AopNamespaceHandlerScopeIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void testSingletonScoping() throws Exception {
7070
assertThat(singletonScoped.getName()).isEqualTo(rob);
7171
singletonScoped.setName(bram);
7272
assertThat(singletonScoped.getName()).isEqualTo(bram);
73-
ITestBean deserialized = (ITestBean) SerializationTestUtils.serializeAndDeserialize(singletonScoped);
73+
ITestBean deserialized = SerializationTestUtils.serializeAndDeserialize(singletonScoped);
7474
assertThat(deserialized.getName()).isEqualTo(bram);
7575
}
7676

spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AspectProxyFactoryTests.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -83,13 +83,12 @@ public void testWithInstanceWithNonAspect() throws Exception {
8383
}
8484

8585
@Test
86-
@SuppressWarnings("unchecked")
8786
public void testSerializable() throws Exception {
8887
AspectJProxyFactory proxyFactory = new AspectJProxyFactory(new TestBean());
8988
proxyFactory.addAspect(LoggingAspectOnVarargs.class);
9089
ITestBean proxy = proxyFactory.getProxy();
9190
assertThat(proxy.doWithVarargs(MyEnum.A, MyOtherEnum.C)).isTrue();
92-
ITestBean tb = (ITestBean) SerializationTestUtils.serializeAndDeserialize(proxy);
91+
ITestBean tb = SerializationTestUtils.serializeAndDeserialize(proxy);
9392
assertThat(tb.doWithVarargs(MyEnum.A, MyOtherEnum.C)).isTrue();
9493
}
9594

@@ -108,7 +107,7 @@ public void testWithInstance() throws Exception {
108107
ITestBean proxy = proxyFactory.getProxy();
109108
assertThat(proxy.getAge()).isEqualTo((target.getAge() * multiple));
110109

111-
ITestBean serializedProxy = (ITestBean) SerializationTestUtils.serializeAndDeserialize(proxy);
110+
ITestBean serializedProxy = SerializationTestUtils.serializeAndDeserialize(proxy);
112111
assertThat(serializedProxy.getAge()).isEqualTo((target.getAge() * multiple));
113112
}
114113

@@ -120,7 +119,6 @@ public void testWithNonSingletonAspectInstance() throws Exception {
120119
}
121120

122121
@Test // SPR-13328
123-
@SuppressWarnings("unchecked")
124122
public void testProxiedVarargsWithEnumArray() throws Exception {
125123
AspectJProxyFactory proxyFactory = new AspectJProxyFactory(new TestBean());
126124
proxyFactory.addAspect(LoggingAspectOnVarargs.class);
@@ -129,7 +127,6 @@ public void testProxiedVarargsWithEnumArray() throws Exception {
129127
}
130128

131129
@Test // SPR-13328
132-
@SuppressWarnings("unchecked")
133130
public void testUnproxiedVarargsWithEnumArray() throws Exception {
134131
AspectJProxyFactory proxyFactory = new AspectJProxyFactory(new TestBean());
135132
proxyFactory.addAspect(LoggingAspectOnSetter.class);

spring-aop/src/test/java/org/springframework/aop/interceptor/ConcurrencyThrottleInterceptorTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -54,7 +54,7 @@ public void testSerializable() throws Exception {
5454
ITestBean proxy = (ITestBean) proxyFactory.getProxy();
5555
proxy.getAge();
5656

57-
ITestBean serializedProxy = (ITestBean) SerializationTestUtils.serializeAndDeserialize(proxy);
57+
ITestBean serializedProxy = SerializationTestUtils.serializeAndDeserialize(proxy);
5858
Advised advised = (Advised) serializedProxy;
5959
ConcurrencyThrottleInterceptor serializedCti =
6060
(ConcurrencyThrottleInterceptor) advised.getAdvisors()[0].getAdvice();

spring-aop/src/test/java/org/springframework/aop/support/AbstractRegexpMethodPointcutTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void testNoPatternSupplied() throws Exception {
4949

5050
@Test
5151
public void testSerializationWithNoPatternSupplied() throws Exception {
52-
rpc = (AbstractRegexpMethodPointcut) SerializationTestUtils.serializeAndDeserialize(rpc);
52+
rpc = SerializationTestUtils.serializeAndDeserialize(rpc);
5353
noPatternSuppliedTests(rpc);
5454
}
5555

@@ -63,7 +63,7 @@ protected void noPatternSuppliedTests(AbstractRegexpMethodPointcut rpc) throws E
6363
public void testExactMatch() throws Exception {
6464
rpc.setPattern("java.lang.Object.hashCode");
6565
exactMatchTests(rpc);
66-
rpc = (AbstractRegexpMethodPointcut) SerializationTestUtils.serializeAndDeserialize(rpc);
66+
rpc = SerializationTestUtils.serializeAndDeserialize(rpc);
6767
exactMatchTests(rpc);
6868
}
6969

spring-aop/src/test/java/org/springframework/aop/support/DelegatingIntroductionInterceptorTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public void testSerializableDelegatingIntroductionInterceptorSerializable() thro
239239
assertThat(p.getName()).isEqualTo(name);
240240
assertThat(((TimeStamped) p).getTimeStamp()).isEqualTo(time);
241241

242-
Person p1 = (Person) SerializationTestUtils.serializeAndDeserialize(p);
242+
Person p1 = SerializationTestUtils.serializeAndDeserialize(p);
243243
assertThat(p1.getName()).isEqualTo(name);
244244
assertThat(((TimeStamped) p1).getTimeStamp()).isEqualTo(time);
245245
}

spring-aop/src/test/java/org/springframework/aop/support/NameMatchMethodPointcutTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -109,7 +109,7 @@ public void testSets() throws Throwable {
109109
public void testSerializable() throws Throwable {
110110
testSets();
111111
// Count is now 2
112-
Person p2 = (Person) SerializationTestUtils.serializeAndDeserialize(proxied);
112+
Person p2 = SerializationTestUtils.serializeAndDeserialize(proxied);
113113
NopInterceptor nop2 = (NopInterceptor) ((Advised) p2).getAdvisors()[0].getAdvice();
114114
p2.getName();
115115
assertThat(nop2.getCount()).isEqualTo(2);

spring-aop/src/test/java/org/springframework/aop/support/RegexpMethodPointcutAdvisorIntegrationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -109,7 +109,7 @@ public void testSerialization() throws Throwable {
109109
assertThat(nop.getCount()).isEqualTo(2);
110110

111111
// Serialize and continue...
112-
p = (Person) SerializationTestUtils.serializeAndDeserialize(p);
112+
p = SerializationTestUtils.serializeAndDeserialize(p);
113113
assertThat(p.getAge()).isEqualTo(newAge);
114114
// Remembers count, but we need to get a new reference to nop...
115115
nop = (SerializableNopInterceptor) ((Advised) p).getAdvisors()[0].getAdvice();

spring-aop/src/test/java/org/springframework/aop/target/HotSwappableTargetSourceTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -134,7 +134,7 @@ public void testSerialization() throws Exception {
134134
hts.swap(sp2);
135135
assertThat(p.getName()).isEqualTo(sp2.getName());
136136

137-
p = (Person) SerializationTestUtils.serializeAndDeserialize(p);
137+
p = SerializationTestUtils.serializeAndDeserialize(p);
138138
// We need to get a reference to the client-side targetsource
139139
hts = (HotSwappableTargetSource) ((Advised) p).getTargetSource();
140140
assertThat(p.getName()).isEqualTo(sp2.getName());

spring-aop/src/test/java/org/springframework/aop/target/PrototypeBasedTargetSourceTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -55,7 +55,7 @@ public void testSerializability() throws Exception {
5555
bf.registerBeanDefinition("person", bd);
5656

5757
TestTargetSource cpts = (TestTargetSource) bf.getBean("ts");
58-
TargetSource serialized = (TargetSource) SerializationTestUtils.serializeAndDeserialize(cpts);
58+
TargetSource serialized = SerializationTestUtils.serializeAndDeserialize(cpts);
5959
boolean condition = serialized instanceof SingletonTargetSource;
6060
assertThat(condition).as("Changed to SingletonTargetSource on deserialization").isTrue();
6161
SingletonTargetSource sts = (SingletonTargetSource) serialized;

spring-beans/src/main/java/org/springframework/beans/AbstractNestablePropertyAccessor.java

-1
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,6 @@ protected String getFinalPath(AbstractNestablePropertyAccessor pa, String nested
806806
* @param propertyPath property path, which may be nested
807807
* @return a property accessor for the target bean
808808
*/
809-
@SuppressWarnings("unchecked") // avoid nested generic
810809
protected AbstractNestablePropertyAccessor getPropertyAccessorForPropertyPath(String propertyPath) {
811810
int pos = PropertyAccessorUtils.getFirstNestedPropertySeparatorIndex(propertyPath);
812811
// Handle nested properties recursively.

spring-beans/src/main/java/org/springframework/beans/BeanUtils.java

-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ public static <T> T instantiateClass(Constructor<T> ctor, Object... args) throws
228228
* @since 5.0
229229
* @see <a href="https://kotlinlang.org/docs/reference/classes.html#constructors">Kotlin docs</a>
230230
*/
231-
@SuppressWarnings("unchecked")
232231
@Nullable
233232
public static <T> Constructor<T> findPrimaryConstructor(Class<T> clazz) {
234233
Assert.notNull(clazz, "Class must not be null");

spring-beans/src/test/java/org/springframework/beans/factory/DefaultListableBeanFactoryTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,7 @@ void beanProviderSerialization() throws Exception {
17871787
lbf.setSerializationId("test");
17881788

17891789
ObjectProvider<ConstructorDependency> provider = lbf.getBeanProvider(ConstructorDependency.class);
1790-
ObjectProvider deserialized = (ObjectProvider) SerializationTestUtils.serializeAndDeserialize(provider);
1790+
ObjectProvider deserialized = SerializationTestUtils.serializeAndDeserialize(provider);
17911791
assertThatExceptionOfType(NoSuchBeanDefinitionException.class).isThrownBy(
17921792
deserialized::getObject);
17931793
assertThatExceptionOfType(NoSuchBeanDefinitionException.class).isThrownBy(() ->

spring-beans/src/test/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessorTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -1135,7 +1135,7 @@ public void testObjectFactorySerialization() throws Exception {
11351135

11361136
ObjectFactoryFieldInjectionBean bean = (ObjectFactoryFieldInjectionBean) bf.getBean("annotatedBean");
11371137
assertThat(bean.getTestBean()).isSameAs(bf.getBean("testBean"));
1138-
bean = (ObjectFactoryFieldInjectionBean) SerializationTestUtils.serializeAndDeserialize(bean);
1138+
bean = SerializationTestUtils.serializeAndDeserialize(bean);
11391139
assertThat(bean.getTestBean()).isSameAs(bf.getBean("testBean"));
11401140
}
11411141

spring-beans/src/test/java/org/springframework/beans/factory/annotation/InjectAnnotationBeanPostProcessorTests.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -394,7 +394,7 @@ public void testObjectFactoryWithBeanField() throws Exception {
394394

395395
ObjectFactoryFieldInjectionBean bean = (ObjectFactoryFieldInjectionBean) bf.getBean("annotatedBean");
396396
assertThat(bean.getTestBean()).isSameAs(bf.getBean("testBean"));
397-
bean = (ObjectFactoryFieldInjectionBean) SerializationTestUtils.serializeAndDeserialize(bean);
397+
bean = SerializationTestUtils.serializeAndDeserialize(bean);
398398
assertThat(bean.getTestBean()).isSameAs(bf.getBean("testBean"));
399399
}
400400

@@ -406,7 +406,7 @@ public void testObjectFactoryWithBeanMethod() throws Exception {
406406

407407
ObjectFactoryMethodInjectionBean bean = (ObjectFactoryMethodInjectionBean) bf.getBean("annotatedBean");
408408
assertThat(bean.getTestBean()).isSameAs(bf.getBean("testBean"));
409-
bean = (ObjectFactoryMethodInjectionBean) SerializationTestUtils.serializeAndDeserialize(bean);
409+
bean = SerializationTestUtils.serializeAndDeserialize(bean);
410410
assertThat(bean.getTestBean()).isSameAs(bf.getBean("testBean"));
411411
}
412412

@@ -418,7 +418,7 @@ public void testObjectFactoryWithTypedListField() throws Exception {
418418

419419
ObjectFactoryListFieldInjectionBean bean = (ObjectFactoryListFieldInjectionBean) bf.getBean("annotatedBean");
420420
assertThat(bean.getTestBean()).isSameAs(bf.getBean("testBean"));
421-
bean = (ObjectFactoryListFieldInjectionBean) SerializationTestUtils.serializeAndDeserialize(bean);
421+
bean = SerializationTestUtils.serializeAndDeserialize(bean);
422422
assertThat(bean.getTestBean()).isSameAs(bf.getBean("testBean"));
423423
}
424424

@@ -430,7 +430,7 @@ public void testObjectFactoryWithTypedListMethod() throws Exception {
430430

431431
ObjectFactoryListMethodInjectionBean bean = (ObjectFactoryListMethodInjectionBean) bf.getBean("annotatedBean");
432432
assertThat(bean.getTestBean()).isSameAs(bf.getBean("testBean"));
433-
bean = (ObjectFactoryListMethodInjectionBean) SerializationTestUtils.serializeAndDeserialize(bean);
433+
bean = SerializationTestUtils.serializeAndDeserialize(bean);
434434
assertThat(bean.getTestBean()).isSameAs(bf.getBean("testBean"));
435435
}
436436

@@ -442,7 +442,7 @@ public void testObjectFactoryWithTypedMapField() throws Exception {
442442

443443
ObjectFactoryMapFieldInjectionBean bean = (ObjectFactoryMapFieldInjectionBean) bf.getBean("annotatedBean");
444444
assertThat(bean.getTestBean()).isSameAs(bf.getBean("testBean"));
445-
bean = (ObjectFactoryMapFieldInjectionBean) SerializationTestUtils.serializeAndDeserialize(bean);
445+
bean = SerializationTestUtils.serializeAndDeserialize(bean);
446446
assertThat(bean.getTestBean()).isSameAs(bf.getBean("testBean"));
447447
}
448448

@@ -454,7 +454,7 @@ public void testObjectFactoryWithTypedMapMethod() throws Exception {
454454

455455
ObjectFactoryMapMethodInjectionBean bean = (ObjectFactoryMapMethodInjectionBean) bf.getBean("annotatedBean");
456456
assertThat(bean.getTestBean()).isSameAs(bf.getBean("testBean"));
457-
bean = (ObjectFactoryMapMethodInjectionBean) SerializationTestUtils.serializeAndDeserialize(bean);
457+
bean = SerializationTestUtils.serializeAndDeserialize(bean);
458458
assertThat(bean.getTestBean()).isSameAs(bf.getBean("testBean"));
459459
}
460460

spring-beans/src/test/java/org/springframework/beans/factory/config/ObjectFactoryCreatingFactoryBeanTests.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -72,12 +72,11 @@ public void testFactoryOperation() {
7272
}
7373

7474
@Test
75-
@SuppressWarnings("rawtypes")
7675
public void testFactorySerialization() throws Exception {
7776
FactoryTestBean testBean = beanFactory.getBean("factoryTestBean", FactoryTestBean.class);
7877
ObjectFactory<?> objectFactory = testBean.getObjectFactory();
7978

80-
objectFactory = (ObjectFactory) SerializationTestUtils.serializeAndDeserialize(objectFactory);
79+
objectFactory = SerializationTestUtils.serializeAndDeserialize(objectFactory);
8180

8281
Date date1 = (Date) objectFactory.getObject();
8382
Date date2 = (Date) objectFactory.getObject();
@@ -95,12 +94,11 @@ public void testProviderOperation() {
9594
}
9695

9796
@Test
98-
@SuppressWarnings("rawtypes")
9997
public void testProviderSerialization() throws Exception {
10098
ProviderTestBean testBean = beanFactory.getBean("providerTestBean", ProviderTestBean.class);
10199
Provider<?> provider = testBean.getProvider();
102100

103-
provider = (Provider) SerializationTestUtils.serializeAndDeserialize(provider);
101+
provider = SerializationTestUtils.serializeAndDeserialize(provider);
104102

105103
Date date1 = (Date) provider.get();
106104
Date date2 = (Date) provider.get();

spring-context/src/test/java/org/springframework/aop/framework/AbstractAopProxyTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -246,7 +246,7 @@ public void testSerializableTargetAndAdvice() throws Throwable {
246246
assertThat(cta.getCalls()).isEqualTo(1);
247247

248248
// Will throw exception if it fails
249-
Person p2 = (Person) SerializationTestUtils.serializeAndDeserialize(p);
249+
Person p2 = SerializationTestUtils.serializeAndDeserialize(p);
250250
assertThat(p2).isNotSameAs(p);
251251
assertThat(p2.getName()).isEqualTo(p.getName());
252252
assertThat(p2.getAge()).isEqualTo(p.getAge());

spring-context/src/test/java/org/springframework/aop/framework/ProxyFactoryBeanTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ public void testSerializableSingletonProxy() throws Exception {
523523
new XmlBeanDefinitionReader(bf).loadBeanDefinitions(new ClassPathResource(SERIALIZATION_CONTEXT, CLASS));
524524
Person p = (Person) bf.getBean("serializableSingleton");
525525
assertThat(bf.getBean("serializableSingleton")).as("Should be a Singleton").isSameAs(p);
526-
Person p2 = (Person) SerializationTestUtils.serializeAndDeserialize(p);
526+
Person p2 = SerializationTestUtils.serializeAndDeserialize(p);
527527
assertThat(p2).isEqualTo(p);
528528
assertThat(p2).isNotSameAs(p);
529529
assertThat(p2.getName()).isEqualTo("serializableSingleton");
@@ -546,7 +546,7 @@ public void testSerializablePrototypeProxy() throws Exception {
546546
new XmlBeanDefinitionReader(bf).loadBeanDefinitions(new ClassPathResource(SERIALIZATION_CONTEXT, CLASS));
547547
Person p = (Person) bf.getBean("serializablePrototype");
548548
assertThat(bf.getBean("serializablePrototype")).as("Should not be a Singleton").isNotSameAs(p);
549-
Person p2 = (Person) SerializationTestUtils.serializeAndDeserialize(p);
549+
Person p2 = SerializationTestUtils.serializeAndDeserialize(p);
550550
assertThat(p2).isEqualTo(p);
551551
assertThat(p2).isNotSameAs(p);
552552
assertThat(p2.getName()).isEqualTo("serializablePrototype");
@@ -558,7 +558,7 @@ public void testSerializableSingletonProxyFactoryBean() throws Exception {
558558
new XmlBeanDefinitionReader(bf).loadBeanDefinitions(new ClassPathResource(SERIALIZATION_CONTEXT, CLASS));
559559
Person p = (Person) bf.getBean("serializableSingleton");
560560
ProxyFactoryBean pfb = (ProxyFactoryBean) bf.getBean("&serializableSingleton");
561-
ProxyFactoryBean pfb2 = (ProxyFactoryBean) SerializationTestUtils.serializeAndDeserialize(pfb);
561+
ProxyFactoryBean pfb2 = SerializationTestUtils.serializeAndDeserialize(pfb);
562562
Person p2 = (Person) pfb2.getObject();
563563
assertThat(p2).isEqualTo(p);
564564
assertThat(p2).isNotSameAs(p);

spring-context/src/test/java/org/springframework/aop/scope/ScopedProxyTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -106,7 +106,7 @@ public void testJdkScopedProxy() throws Exception {
106106
assertThat(scope.getMap().containsKey("testBeanTarget")).isTrue();
107107
assertThat(scope.getMap().get("testBeanTarget").getClass()).isEqualTo(TestBean.class);
108108

109-
ITestBean deserialized = (ITestBean) SerializationTestUtils.serializeAndDeserialize(bean);
109+
ITestBean deserialized = SerializationTestUtils.serializeAndDeserialize(bean);
110110
assertThat(deserialized).isNotNull();
111111
assertThat(AopUtils.isJdkDynamicProxy(deserialized)).isTrue();
112112
assertThat(bean.getAge()).isEqualTo(101);

0 commit comments

Comments
 (0)