org.jaudiotagger.audio.asf.data
Class ContainerTypeTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jaudiotagger.audio.asf.data.ContainerTypeTest
All Implemented Interfaces:
junit.framework.Test

public class ContainerTypeTest
extends junit.framework.TestCase

Since the tested enumeration ContainerType is more a definition of constant nature, these tests are more a safety precaution to prevent numerous cases of accidental modifications (e.g. changes for debugging purposes). [thats what tests are always for somehow :)]

Author:
Christian Laireiter

Constructor Summary
ContainerTypeTest()
           
 
Method Summary
private  String createAString(int charAmount)
          Helper method for creating string with charAmount of 'a's.
 void testAreInCorrectOrder()
          Test method for ContainerType.areInCorrectOrder(org.jaudiotagger.audio.asf.data.ContainerType, org.jaudiotagger.audio.asf.data.ContainerType) .
 void testAssertConstraints()
          Test method for ContainerType.assertConstraints(java.lang.String, byte[], int, int, int) .
 void testCheckCtonstraints()
          Test method for ContainerType.checkConstraints(java.lang.String, byte[], int, int, int) .
 void testGetContainerGUID()
          Test method for ContainerType.getContainerGUID() .
 void testGetMaximumDataLength()
          Test method for ContainerType.getMaximumDataLength() .
 void testGetOrdered()
          Test method for ContainerType.getOrdered().
 void testIsGuidEnabled()
          Test method for ContainerType.isGuidEnabled().
 void testIsLanguageEnabled()
          Test method for ContainerType.isLanguageEnabled() .
 void testIsMultiValued()
          Test method for ContainerType.isMultiValued().
 void testIsStreamNumberEnabled()
          Test method for ContainerType.isStreamNumberEnabled() .
 void testIsWithinThanValueRange()
          Test method for ContainerType.isWithinValueRange(long) .
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerTypeTest

public ContainerTypeTest()
Method Detail

createAString

private String createAString(int charAmount)
Helper method for creating string with charAmount of 'a's.

Parameters:
charAmount - amount of characters to include in result.
Returns:
see description.

testAreInCorrectOrder

public void testAreInCorrectOrder()
Test method for ContainerType.areInCorrectOrder(org.jaudiotagger.audio.asf.data.ContainerType, org.jaudiotagger.audio.asf.data.ContainerType) .


testAssertConstraints

public void testAssertConstraints()
Test method for ContainerType.assertConstraints(java.lang.String, byte[], int, int, int) .


testCheckCtonstraints

public void testCheckCtonstraints()
Test method for ContainerType.checkConstraints(java.lang.String, byte[], int, int, int) .


testGetContainerGUID

public void testGetContainerGUID()
Test method for ContainerType.getContainerGUID() .


testGetMaximumDataLength

public void testGetMaximumDataLength()
Test method for ContainerType.getMaximumDataLength() .


testGetOrdered

public void testGetOrdered()
Test method for ContainerType.getOrdered().


testIsGuidEnabled

public void testIsGuidEnabled()
Test method for ContainerType.isGuidEnabled().


testIsLanguageEnabled

public void testIsLanguageEnabled()
Test method for ContainerType.isLanguageEnabled() .


testIsMultiValued

public void testIsMultiValued()
Test method for ContainerType.isMultiValued().


testIsStreamNumberEnabled

public void testIsStreamNumberEnabled()
Test method for ContainerType.isStreamNumberEnabled() .


testIsWithinThanValueRange

public void testIsWithinThanValueRange()
Test method for ContainerType.isWithinValueRange(long) .



Copyright © 2005-2009 java.net. All Rights Reserved.