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

« back to all changes in this revision

Viewing changes to srctest/org/jaudiotagger/tag/id3/framebody/FrameBodyTDRCTest.java

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath, Damien Raude-Morvan, Varun Hiremath
  • Date: 2009-04-01 19:17:56 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090401191756-bygniim270guy7o1
Tags: 1.0.9-1
[ Damien Raude-Morvan ]
* New upstream release
* debian/watch: Use java.net repository (which contains new releases!)
* debian/control:
  - Build-Depends on default-jdk-builddep
  - Bump Standards-Version to 3.8.1 (no changes needed)
  - Change section to "java"
* debian/rules: use default-java as JAVA_HOME
* debina/orig-tar.{sh|excludes}: strip audio and others binary files from ZIP
* debian/build.xml:
  - compile with "nowarn" to keep build log readable
  - exclude LogFormatter from build (use com.sun classes)
* debian/ant.properties: new source directory is "src" in orig.tar.gz
* Add myself as Uploaders

[ Varun Hiremath ]
* Accept changes made by Damien Raude-Morvan (Closes: #522130)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.jaudiotagger.tag.id3.framebody;
 
2
 
 
3
import org.jaudiotagger.AbstractTestCase;
 
4
import org.jaudiotagger.tag.id3.ID3v24Frames;
 
5
import org.jaudiotagger.tag.id3.valuepair.TextEncoding;
 
6
 
 
7
/**
 
8
 * Test Unique File Identifier FrameBody
 
9
 */
 
10
public class FrameBodyTDRCTest extends AbstractTestCase
 
11
{
 
12
    public static final String TEST_YEAR = "2002";
 
13
 
 
14
 
 
15
    public void testCreateFrameBody()
 
16
    {
 
17
        Exception exceptionCaught = null;
 
18
        FrameBodyTDRC fb = null;
 
19
        try
 
20
        {
 
21
            fb = new FrameBodyTDRC();
 
22
            fb.setDate(TEST_YEAR);
 
23
        }
 
24
        catch (Exception e)
 
25
        {
 
26
            exceptionCaught = e;
 
27
        }
 
28
 
 
29
        assertNull(exceptionCaught);
 
30
        assertEquals(ID3v24Frames.FRAME_ID_YEAR, fb.getIdentifier());
 
31
        assertEquals(TextEncoding.ISO_8859_1, fb.getTextEncoding());
 
32
        assertEquals(FrameBodyTDRCTest.TEST_YEAR, fb.getDate());
 
33
    }
 
34
}