// Path: libs/src/com/drewChanged/metadata/jpeg/JpegComponent.java
// public class JpegComponent 
// {
//     private final int _componentId;
//     private final int _samplingFactorByte;
//     private final int _quantizationTableNumber;
// 
//     public JpegComponent(int componentId, int samplingFactorByte, int quantizationTableNumber)
//     {
//         _componentId = componentId;
//         _samplingFactorByte = samplingFactorByte;
//         _quantizationTableNumber = quantizationTableNumber;
//     }
// 
//     public int getComponentId()
//     {
//         return _componentId;
//     }
// 
//     public String getComponentName() throws MetadataException
//     {
//         switch (_componentId)
//         {
//             case 1:
//                 return "Y";
//             case 2:
//                 return "Cb";
//             case 3:
//                 return "Cr";
//             case 4:
//                 return "I";
//             case 5:
//                 return "Q";
//         }
// 
//         throw new MetadataException("Unsupported component id: " + _componentId);
//     }
// 
//     public int getQuantizationTableNumber()
//     {
//         return _quantizationTableNumber;
//     }
// 
//     public int getHorizontalSamplingFactor()
//     {
//         return _samplingFactorByte & 0x0F;
//     }
// 
//     public int getVerticalSamplingFactor()
//     {
//         return (_samplingFactorByte>>4) & 0x0F;
//     }
// }


import com.drewChanged.metadata.jpeg.JpegComponent;
import junit.framework.TestCase;
/*
 * This is public domain software - that is, you can do whatever you want
 * with it, and include it software that is licensed under the GNU or the
 * BSD license, or whatever other licence you choose, including proprietary
 * closed source licenses.  I do ask that you leave this header in tact.
 *
 * If you make modifications to this code that you think would benefit the
 * wider community, please send me a copy and I'll post it on my site.
 *
 * If you make use of this code, I'd appreciate hearing about it.
 *   drew@drewnoakes.com
 * Latest version of this software kept at
 *   http://drewnoakes.com/
 *
 * Created by dnoakes on 09-Oct-2003 15:22:23 using IntelliJ IDEA.
 */
package com.drewChanged.metadata.jpeg.test;


/**
 * 
 */
public class JpegComponentTest extends TestCase
{
// Path: libs/src/com/drewChanged/metadata/jpeg/JpegComponent.java
// public class JpegComponent 
// {
//     private final int _componentId;
//     private final int _samplingFactorByte;
//     private final int _quantizationTableNumber;
// 
//     public JpegComponent(int componentId, int samplingFactorByte, int quantizationTableNumber)
//     {
//         _componentId = componentId;
//         _samplingFactorByte = samplingFactorByte;
//         _quantizationTableNumber = quantizationTableNumber;
//     }
// 
//     public int getComponentId()
//     {
//         return _componentId;
//     }
// 
//     public String getComponentName() throws MetadataException
//     {
//         switch (_componentId)
//         {
//             case 1:
//                 return "Y";
//             case 2:
//                 return "Cb";
//             case 3:
//                 return "Cr";
//             case 4:
//                 return "I";
//             case 5:
//                 return "Q";
//         }
// 
//         throw new MetadataException("Unsupported component id: " + _componentId);
//     }
// 
//     public int getQuantizationTableNumber()
//     {
//         return _quantizationTableNumber;
//     }
// 
//     public int getHorizontalSamplingFactor()
//     {
//         return _samplingFactorByte & 0x0F;
//     }
// 
//     public int getVerticalSamplingFactor()
//     {
//         return (_samplingFactorByte>>4) & 0x0F;
//     }
// }


// Path: libs/src/com/drewChanged/metadata/jpeg/test/JpegComponentTest.java
import com.drewChanged.metadata.jpeg.JpegComponent;
import junit.framework.TestCase;

/*
 * This is public domain software - that is, you can do whatever you want
 * with it, and include it software that is licensed under the GNU or the
 * BSD license, or whatever other licence you choose, including proprietary
 * closed source licenses.  I do ask that you leave this header in tact.
 *
 * If you make modifications to this code that you think would benefit the
 * wider community, please send me a copy and I'll post it on my site.
 *
 * If you make use of this code, I'd appreciate hearing about it.
 *   drew@drewnoakes.com
 * Latest version of this software kept at
 *   http://drewnoakes.com/
 *
 * Created by dnoakes on 09-Oct-2003 15:22:23 using IntelliJ IDEA.
 */
package com.drewChanged.metadata.jpeg.test;


/**
 * 
 */
public class JpegComponentTest extends TestCase
{
    public JpegComponentTest(String s)