mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-07 01:22:48 +00:00
Suppress warning
This commit is contained in:
parent
d11d6e8e40
commit
5accc40c77
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ class VetTests {
|
||||||
vet.setFirstName("Zaphod");
|
vet.setFirstName("Zaphod");
|
||||||
vet.setLastName("Beeblebrox");
|
vet.setLastName("Beeblebrox");
|
||||||
vet.setId(123);
|
vet.setId(123);
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
Vet other = (Vet) SerializationUtils.deserialize(SerializationUtils.serialize(vet));
|
Vet other = (Vet) SerializationUtils.deserialize(SerializationUtils.serialize(vet));
|
||||||
assertThat(other.getFirstName()).isEqualTo(vet.getFirstName());
|
assertThat(other.getFirstName()).isEqualTo(vet.getFirstName());
|
||||||
assertThat(other.getLastName()).isEqualTo(vet.getLastName());
|
assertThat(other.getLastName()).isEqualTo(vet.getLastName());
|
||||||
|
|
Loading…
Reference in a new issue