1
package org.jaudiotagger.issues;
3
import org.jaudiotagger.AbstractTestCase;
4
import org.jaudiotagger.audio.AudioFile;
5
import org.jaudiotagger.audio.AudioFileIO;
6
import org.jaudiotagger.tag.FieldKey;
11
* Test can read FlacTag with spec breaking PICTUREBLOCK as first block and then write chnages
12
* to it reordering so that STREAMINFO is the first block
14
public class Issue315Test extends AbstractTestCase
20
public void testReadWriteTagWithPictureBlockAtStart() throws Exception
22
File orig = new File("testdata", "test54.flac");
25
System.err.println("Unable to test file - not available");
32
final File testFile = AbstractTestCase.copyAudioToTmp("test54.flac");
33
AudioFile af = AudioFileIO.read(testFile);
37
af.getTag().setField(FieldKey.TITLE,"newtitle");
41
af = AudioFileIO.read(testFile);
b'\\ No newline at end of file'