mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 10:57:28 +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.setLastName("Beeblebrox");
|
||||
vet.setId(123);
|
||||
@SuppressWarnings("deprecation")
|
||||
Vet other = (Vet) SerializationUtils.deserialize(SerializationUtils.serialize(vet));
|
||||
assertThat(other.getFirstName()).isEqualTo(vet.getFirstName());
|
||||
assertThat(other.getLastName()).isEqualTo(vet.getLastName());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue