~ubuntu-branches/ubuntu/utopic/libjaudiotagger-java/utopic

« back to all changes in this revision

Viewing changes to srctest/org/jaudiotagger/tag/id3/FrameTDORTest.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2011-04-28 23:52:43 UTC
  • mfrom: (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110428235243-pzalvw6lncis3ukf
Tags: 2.0.3-1
* d/control: Drop Depends on default-jre per Debian Java Policy as its
  a library package.
* d/watch: Fix to directly monitor SVN tags.
* Switch to 3.0 (quilt) format.
* Bump Standards-Version to 3.9.2 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.jaudiotagger.tag.id3;
 
2
 
 
3
import org.jaudiotagger.AbstractTestCase;
 
4
import org.jaudiotagger.tag.id3.framebody.FrameBodyTDTG;
 
5
import org.jaudiotagger.tag.id3.valuepair.TextEncoding;
 
6
 
 
7
/**
 
8
 */
 
9
public class FrameTDORTest extends AbstractTestCase
 
10
{
 
11
    public void testID3Specific() throws Exception
 
12
    {
 
13
        Exception e=null;
 
14
        try
 
15
        {
 
16
            ID3v24Tag tag = new ID3v24Tag();
 
17
            ID3v24Frame frame = new ID3v24Frame("TDOR");
 
18
            frame.setBody(new FrameBodyTDTG(TextEncoding.ISO_8859_1,"11:10"));
 
19
            tag.addFrame(frame);
 
20
            assertEquals("11:10",tag.getFirst("TDOR"));
 
21
        }
 
22
        catch(Exception ex)
 
23
        {
 
24
            e=ex;
 
25
            ex.printStackTrace();
 
26
        }
 
27
        assertNull(e);
 
28
    }
 
29
 
 
30
}
 
 
b'\\ No newline at end of file'