cpdetector.io
Class CodePageDetectorProxyTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycpdetector.io.CodePageDetectorProxyTest
All Implemented Interfaces:
junit.framework.Test

public class CodePageDetectorProxyTest
extends junit.framework.TestCase

Test case for CodepageDetectorProxy.

Version:
$Revision: 1.5 $
Author:
Achim Westermann

Constructor Summary
CodePageDetectorProxyTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testDetectCodePageInputStream()
          Tests CodepageDetectorProxy.detectCodepage(InputStream, int).
 void testDetectCodePageUrl()
          Tests CodepageDetectorProxy.detectCodepage(URL).
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

CodePageDetectorProxyTest

public CodePageDetectorProxyTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Throws:
Exception
See Also:
TestCase.setUp()

tearDown

protected void tearDown()
                 throws Exception
Throws:
Exception
See Also:
TestCase.tearDown()

testDetectCodePageInputStream

public void testDetectCodePageInputStream()
                                   throws IOException
Tests CodepageDetectorProxy.detectCodepage(InputStream, int).

Throws:
IOException - if sth. goes wrong.

testDetectCodePageUrl

public void testDetectCodePageUrl()
                           throws IOException
Tests CodepageDetectorProxy.detectCodepage(URL).

Throws:
IOException - if sth. goes wrong.


Copyleft ㊢ 2003-2004 MPL 1.1, All Rights Footloose.