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 FrameBodyTSOATest extends AbstractTestCase
12
public static final String ALBUM_SORT = "albumsort";
14
public static FrameBodyTSOA getInitialisedBody()
16
FrameBodyTSOA fb = new FrameBodyTSOA();
17
fb.setText(FrameBodyTSOATest.ALBUM_SORT);
21
public void testCreateFrameBody()
23
Exception exceptionCaught = null;
24
FrameBodyTSOA fb = null;
27
fb = new FrameBodyTSOA(TextEncoding.ISO_8859_1, FrameBodyTSOATest.ALBUM_SORT);
34
assertNull(exceptionCaught);
35
assertEquals(ID3v24Frames.FRAME_ID_ALBUM_SORT_ORDER, fb.getIdentifier());
36
assertEquals(TextEncoding.ISO_8859_1, fb.getTextEncoding());
37
assertEquals(FrameBodyTSOATest.ALBUM_SORT, fb.getText());
41
public void testCreateFrameBodyEmptyConstructor()
43
Exception exceptionCaught = null;
44
FrameBodyTSOA fb = null;
47
fb = new FrameBodyTSOA();
48
fb.setText(FrameBodyTSOATest.ALBUM_SORT);
55
assertNull(exceptionCaught);
56
assertEquals(ID3v24Frames.FRAME_ID_ALBUM_SORT_ORDER, fb.getIdentifier());
57
assertEquals(TextEncoding.ISO_8859_1, fb.getTextEncoding());
58
assertEquals(FrameBodyTSOATest.ALBUM_SORT, fb.getText());
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 FrameBodyTSOATest extends AbstractTestCase
12
public static final String ALBUM_SORT = "albumsort";
14
public static FrameBodyTSOA getInitialisedBody()
16
FrameBodyTSOA fb = new FrameBodyTSOA();
17
fb.setText(FrameBodyTSOATest.ALBUM_SORT);
21
public void testCreateFrameBody()
23
Exception exceptionCaught = null;
24
FrameBodyTSOA fb = null;
27
fb = new FrameBodyTSOA(TextEncoding.ISO_8859_1, FrameBodyTSOATest.ALBUM_SORT);
34
assertNull(exceptionCaught);
35
assertEquals(ID3v24Frames.FRAME_ID_ALBUM_SORT_ORDER, fb.getIdentifier());
36
assertEquals(TextEncoding.ISO_8859_1, fb.getTextEncoding());
37
assertEquals(FrameBodyTSOATest.ALBUM_SORT, fb.getText());
41
public void testCreateFrameBodyEmptyConstructor()
43
Exception exceptionCaught = null;
44
FrameBodyTSOA fb = null;
47
fb = new FrameBodyTSOA();
48
fb.setText(FrameBodyTSOATest.ALBUM_SORT);
55
assertNull(exceptionCaught);
56
assertEquals(ID3v24Frames.FRAME_ID_ALBUM_SORT_ORDER, fb.getIdentifier());
57
assertEquals(TextEncoding.ISO_8859_1, fb.getTextEncoding());
58
assertEquals(FrameBodyTSOATest.ALBUM_SORT, fb.getText());