Fix integration test

This commit is contained in:
andrebrowne 2020-04-25 07:48:01 -04:00
parent 4426454a9a
commit a667a0191a
1 changed files with 3 additions and 3 deletions

View File

@ -115,14 +115,14 @@ public class HibernateTypesIntegrationTest {
assertThat(selectAlbumQueryResult.getSongs()).isNullOrEmpty();
selectAlbumQueryResult = albumRepository.findById(superstarAlbum.getId()).get();
assertThat(selectAlbumQueryResult.getName()).isEqualTo("Album 0");
assertThat(selectAlbumQueryResult.getName()).isEqualTo("The Superstar Album");
assertThat(selectAlbumQueryResult.getCoverArt().getFrontCoverArtUrl()).isEqualTo("http://fakeurl-0");
assertThat(selectAlbumQueryResult.getCoverArt().getBackCoverArtUrl()).isEqualTo("http://fakeurl-1");
assertThat(selectAlbumQueryResult.getSongs()).hasSize(3);
assertThat(selectAlbumQueryResult.getSongs()).usingFieldByFieldElementComparator().containsExactlyInAnyOrder(aHappySong, aSadSong, anotherHappySong);
selectAlbumQueryResult = albumRepository.findById(superstarAlbum.getId()).get();
assertThat(selectAlbumQueryResult.getName()).isEqualTo("Album 1");
selectAlbumQueryResult = albumRepository.findById(newcomerAlbum.getId()).get();
assertThat(selectAlbumQueryResult.getName()).isEqualTo("The Newcomer Album");
assertThat(selectAlbumQueryResult.getCoverArt().getFrontCoverArtUrl()).isEqualTo("http://fakeurl-2");
assertThat(selectAlbumQueryResult.getCoverArt().getBackCoverArtUrl()).isEqualTo("http://fakeurl-3");
assertThat(selectAlbumQueryResult.getSongs()).hasSize(1);