org.apache.maven.plugins.enforcer
Class TestRequireFilesSize

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.plugins.enforcer.TestRequireFilesSize
All Implemented Interfaces:
Test

public class TestRequireFilesSize
extends TestCase

Test the "require files exist" rule.

Author:
Brian Fox

Constructor Summary
TestRequireFilesSize()
           
 
Method Summary
 void testEmptyFile()
           
 void testEmptyFileAllowNull()
           
 void testEmptyFileList()
           
 void testFileDoesNotExist()
           
 void testFileExists()
           
 void testFileTooBig()
           
 void testFileTooSmall()
           
 void testId()
          Test id.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestRequireFilesSize

public TestRequireFilesSize()
Method Detail

testFileExists

public void testFileExists()
                    throws EnforcerRuleException,
                           IOException
Throws:
EnforcerRuleException
IOException

testEmptyFile

public void testEmptyFile()
                   throws EnforcerRuleException,
                          IOException
Throws:
EnforcerRuleException
IOException

testEmptyFileAllowNull

public void testEmptyFileAllowNull()
                            throws EnforcerRuleException,
                                   IOException
Throws:
EnforcerRuleException
IOException

testEmptyFileList

public void testEmptyFileList()
                       throws EnforcerRuleException,
                              IOException
Throws:
EnforcerRuleException
IOException

testFileDoesNotExist

public void testFileDoesNotExist()
                          throws EnforcerRuleException,
                                 IOException
Throws:
EnforcerRuleException
IOException

testFileTooSmall

public void testFileTooSmall()
                      throws EnforcerRuleException,
                             IOException
Throws:
EnforcerRuleException
IOException

testFileTooBig

public void testFileTooBig()
                    throws EnforcerRuleException,
                           IOException
Throws:
EnforcerRuleException
IOException

testId

public void testId()
Test id.



Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.