1
package org.jaudiotagger.tag.id3.framebody;
3
import org.jaudiotagger.AbstractTestCase;
4
import org.jaudiotagger.tag.id3.ID3v24Frames;
5
import org.jaudiotagger.tag.id3.valuepair.TextEncoding;
10
public class FrameBodyTSOPTest extends AbstractTestCase
12
public static final String ARTIST_SORT = "artistsort";
14
public static FrameBodyTSOP getInitialisedBody()
16
FrameBodyTSOP fb = new FrameBodyTSOP();
17
fb.setText(FrameBodyTSOPTest.ARTIST_SORT);
21
public void testCreateFrameBody()
23
Exception exceptionCaught = null;
24
FrameBodyTSOP fb = null;
27
fb = new FrameBodyTSOP(TextEncoding.ISO_8859_1, FrameBodyTSOPTest.ARTIST_SORT);
34
assertNull(exceptionCaught);
35
assertEquals(ID3v24Frames.FRAME_ID_ARTIST_SORT_ORDER, fb.getIdentifier());
36
assertEquals(TextEncoding.ISO_8859_1, fb.getTextEncoding());
37
assertEquals(FrameBodyTSOPTest.ARTIST_SORT, fb.getText());
41
public void testCreateFrameBodyEmptyConstructor()
43
Exception exceptionCaught = null;
44
FrameBodyTSOP fb = null;
47
fb = new FrameBodyTSOP();
48
fb.setText(FrameBodyTSOPTest.ARTIST_SORT);
55
assertNull(exceptionCaught);
56
assertEquals(ID3v24Frames.FRAME_ID_ARTIST_SORT_ORDER, fb.getIdentifier());
57
assertEquals(TextEncoding.ISO_8859_1, fb.getTextEncoding());
58
assertEquals(FrameBodyTSOPTest.ARTIST_SORT, fb.getText());