Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jguild.jrpm.test
Class RPMFileParsingTest  view RPMFileParsingTest download RPMFileParsingTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.jguild.jrpm.test.RPMFileParsingTest
All Implemented Interfaces:
junit.framework.Test

public class RPMFileParsingTest
extends junit.framework.TestCase

Unit Test for parsing RPM files.


Field Summary
private static org.apache.log4j.Logger logger
           
private static java.lang.String[] NAME
           
private static java.lang.String[] RPM_FILES
           
private static int[] TOTAL_HEAD_TAGIDS
           
private static int[] TOTAL_HEAD_TAGNAMES
           
private static int[] TOTAL_SIG_TAGIDS
           
private static int[] TOTAL_SIG_TAGNAMES
           
private static java.lang.String[] VENDOR
           
private static java.lang.String VENDOR_REDHAT
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
RPMFileParsingTest()
           
 
Method Summary
private  void delete(java.io.File fh)
           
private  java.io.InputStream getTestRPMInputStream(java.lang.String name)
          Find a resource in the classpath.
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testCPIOArchive()
           
 void testRPM()
          Try to retrieve some tags of the defined test.rpm rpm file.
 
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
 

Field Detail

logger

private static final org.apache.log4j.Logger logger

RPM_FILES

private static final java.lang.String[] RPM_FILES

TOTAL_SIG_TAGIDS

private static final int[] TOTAL_SIG_TAGIDS

TOTAL_SIG_TAGNAMES

private static final int[] TOTAL_SIG_TAGNAMES

TOTAL_HEAD_TAGIDS

private static final int[] TOTAL_HEAD_TAGIDS

TOTAL_HEAD_TAGNAMES

private static final int[] TOTAL_HEAD_TAGNAMES

NAME

private static final java.lang.String[] NAME

VENDOR_REDHAT

private static final java.lang.String VENDOR_REDHAT
See Also:
Constant Field Values

VENDOR

private static final java.lang.String[] VENDOR
Constructor Detail

RPMFileParsingTest

public RPMFileParsingTest()
Method Detail

testRPM

public void testRPM()
Try to retrieve some tags of the defined test.rpm rpm file.


testCPIOArchive

public void testCPIOArchive()

delete

private void delete(java.io.File fh)

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


tearDown

protected void tearDown()
                 throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.


getTestRPMInputStream

private java.io.InputStream getTestRPMInputStream(java.lang.String name)
Find a resource in the classpath.