edu.rice.cs.util.jar
Class JarCreationTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.rice.cs.drjava.DrJavaTestCase
              extended by edu.rice.cs.util.jar.JarCreationTest
All Implemented Interfaces:
junit.framework.Test

public class JarCreationTest
extends DrJavaTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class junit.framework.TestCase
junit.framework.TestCase.WrappedException
 
Constructor Summary
JarCreationTest()
           
 
Method Summary
private  void testArchive(File jar, Set<String> fileNames)
          Check that all files in an a Set are in the jar file
 void testCreateJar()
          Test the manual creation of jar files
 void testCreateJarFromDirectoryRecursive()
          Test create addDirectoryRecursive
 void testCreateManifest()
          Tests the creation of manifest files through the ManifestWriter class
 
Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase
setConfigSetting, setDocText, setUp, tearDown
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JarCreationTest

public JarCreationTest()
Method Detail

testCreateManifest

public void testCreateManifest()
Tests the creation of manifest files through the ManifestWriter class


testCreateJarFromDirectoryRecursive

public void testCreateJarFromDirectoryRecursive()
Test create addDirectoryRecursive


testCreateJar

public void testCreateJar()
                   throws IOException
Test the manual creation of jar files

Throws:
IOException

testArchive

private void testArchive(File jar,
                         Set<String> fileNames)
Check that all files in an a Set are in the jar file

Parameters:
jar - the jar file to check
fileNames - the set of the names of files