Package org.apache.fulcrum.jce.crypto
Class SmartDecryptingInputStreamTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.fulcrum.jce.crypto.SmartDecryptingInputStreamTest
-
- All Implemented Interfaces:
junit.framework.Test
public class SmartDecryptingInputStreamTest extends junit.framework.TestCase
Test suite for SmartDecryptingInputStream- Author:
- Siegfried Goeschl
-
-
Constructor Summary
Constructors Constructor Description SmartDecryptingInputStreamTest(String name)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected char[]
getPassword()
protected File
getTempDataDirectory()
protected File
getTestDataDirectory()
protected void
setUp()
void
testPDFDecryption()
void
testSmartEmtpyDecryption()
void
testSmartGroovyDecryption()
void
testSmartTextDecryption()
void
testSmartXmlIso8859Utf8Decryption()
void
testSmartXmlUtf16Decryption()
void
testSmartXmlUtf8Decryption()
void
testZIPDecryption()
-
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toString
-
-
-
-
Constructor Detail
-
SmartDecryptingInputStreamTest
public SmartDecryptingInputStreamTest(String name)
Constructor- Parameters:
name
- the name of the test case
-
-
Method Detail
-
setUp
protected void setUp() throws Exception
- Overrides:
setUp
in classjunit.framework.TestCase
- Throws:
Exception
- See Also:
TestCase.setUp()
-
getPassword
protected char[] getPassword()
- Returns:
- Returns the password.
-
getTempDataDirectory
protected File getTempDataDirectory()
- Returns:
- Returns the tempDataDirectory.
-
getTestDataDirectory
protected File getTestDataDirectory()
- Returns:
- Returns the testDataDirectory.
-
testSmartEmtpyDecryption
public void testSmartEmtpyDecryption() throws Exception
- Throws:
Exception
-
testSmartTextDecryption
public void testSmartTextDecryption() throws Exception
- Throws:
Exception
-
testSmartGroovyDecryption
public void testSmartGroovyDecryption() throws Exception
- Throws:
Exception
-
testSmartXmlIso8859Utf8Decryption
public void testSmartXmlIso8859Utf8Decryption() throws Exception
- Throws:
Exception
-
testSmartXmlUtf8Decryption
public void testSmartXmlUtf8Decryption() throws Exception
- Throws:
Exception
-
testSmartXmlUtf16Decryption
public void testSmartXmlUtf16Decryption() throws Exception
- Throws:
Exception
-
testPDFDecryption
public void testPDFDecryption() throws Exception
- Throws:
Exception
-
testZIPDecryption
public void testZIPDecryption() throws Exception
- Throws:
Exception
-
-