mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-05 16:42: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.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…
Reference in a new issue