Fix non-updated constructor usage

Fix a constructor usage that tried to use an array instead of a list.
This commit is contained in:
Alexander Capehart 2022-11-21 14:00:32 -07:00
parent 6dd20ed13a
commit 46f376e40b
No known key found for this signature in database
GPG Key ID: 37DBE3621FE9AD47
2 changed files with 10 additions and 10 deletions

View File

@ -107,7 +107,7 @@ public class MetadataRendererTest {
assertThat(metadata).hasSize(1); assertThat(metadata).hasSize(1);
assertThat(metadata.get(0).length()).isEqualTo(1); assertThat(metadata.get(0).length()).isEqualTo(1);
TextInformationFrame expectedId3Frame = TextInformationFrame expectedId3Frame =
new TextInformationFrame("TXXX", "Test description", new String[] { "Test value" }); new TextInformationFrame("TXXX", "Test description", Collections.singletonList("Test value"));
assertThat(metadata.get(0).get(0)).isEqualTo(expectedId3Frame); assertThat(metadata.get(0).get(0)).isEqualTo(expectedId3Frame);
} }

View File

@ -65,27 +65,27 @@ public class TextInformationFrameTest {
ImmutableList.of( ImmutableList.of(
new TextInformationFrame(/* id= */ "TT2", /* description= */ null, /* value= */ new TextInformationFrame(/* id= */ "TT2", /* description= */ null, /* value= */
Collections.singletonList(title)), Collections.singletonList(title)),
new TextInformationFrame(/* id= */ "TP1", /* description= */ null, /* values= */ Collections.singletonList( artist )), new TextInformationFrame(/* id= */ "TP1", /* description= */ null, /* values= */ Collections.singletonList(artist)),
new TextInformationFrame( new TextInformationFrame(
/* id= */ "TAL", /* description= */ null, /* values= */ Collections.singletonList( albumTitle )), /* id= */ "TAL", /* description= */ null, /* values= */ Collections.singletonList(albumTitle)),
new TextInformationFrame( new TextInformationFrame(
/* id= */ "TP2", /* description= */ null, /* values= */ Collections.singletonList( albumArtist )), /* id= */ "TP2", /* description= */ null, /* values= */ Collections.singletonList(albumArtist)),
new TextInformationFrame( new TextInformationFrame(
/* id= */ "TRK", /* description= */ null, /* values= */ Collections.singletonList( trackNumberInfo)), /* id= */ "TRK", /* description= */ null, /* values= */ Collections.singletonList(trackNumberInfo)),
new TextInformationFrame( new TextInformationFrame(
/* id= */ "TYE", /* description= */ null, /* values= */ Collections.singletonList( recordingYear )), /* id= */ "TYE", /* description= */ null, /* values= */ Collections.singletonList(recordingYear)),
new TextInformationFrame( new TextInformationFrame(
/* id= */ "TDA", /* id= */ "TDA",
/* description= */ null, /* description= */ null,
/* value= */ Collections.singletonList( recordingDay + recordingMonth )), /* value= */ Collections.singletonList( recordingDay + recordingMonth )),
new TextInformationFrame( new TextInformationFrame(
/* id= */ "TDRL", /* description= */ null, /* values= */ Collections.singletonList( releaseDate )), /* id= */ "TDRL", /* description= */ null, /* values= */ Collections.singletonList(releaseDate)),
new TextInformationFrame( new TextInformationFrame(
/* id= */ "TCM", /* description= */ null, /* values= */ Collections.singletonList( composer )), /* id= */ "TCM", /* description= */ null, /* values= */ Collections.singletonList(composer)),
new TextInformationFrame( new TextInformationFrame(
/* id= */ "TP3", /* description= */ null, /* values= */ Collections.singletonList( conductor )), /* id= */ "TP3", /* description= */ null, /* values= */ Collections.singletonList(conductor)),
new TextInformationFrame( new TextInformationFrame(
/* id= */ "TXT", /* description= */ null, /* values= */ Collections.singletonList( writer ))); /* id= */ "TXT", /* description= */ null, /* values= */ Collections.singletonList(writer)));
MediaMetadata.Builder builder = MediaMetadata.EMPTY.buildUpon(); MediaMetadata.Builder builder = MediaMetadata.EMPTY.buildUpon();
for (Metadata.Entry entry : entries) { for (Metadata.Entry entry : entries) {