net.sourceforge.pmd.cpd
Class CPDCommandLineInterfaceTest

java.lang.Object
  extended by net.sourceforge.pmd.cpd.CPDCommandLineInterfaceTest

public class CPDCommandLineInterfaceTest
extends Object

Unit test for CPDCommandLineInterface.


Constructor Summary
CPDCommandLineInterfaceTest()
           
 
Method Summary
 void setup()
           
 void teardown()
           
 void testBrokenAndValidFile()
          See: https://sourceforge.net/p/pmd/bugs/1178/
 void testCSVFormat()
           
 void testEncodingOption()
          #1144 CPD encoding argument has no effect
 void testExcludes()
          Test excludes option.
 void testFormatXmlWithoutEncoding()
           
 void testIgnoreIdentifiers()
          Test ignore identifiers argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPDCommandLineInterfaceTest

public CPDCommandLineInterfaceTest()
Method Detail

setup

public void setup()
           throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

teardown

public void teardown()

testIgnoreIdentifiers

public void testIgnoreIdentifiers()
                           throws Exception
Test ignore identifiers argument.

Throws:
Exception

testExcludes

public void testExcludes()
                  throws Exception
Test excludes option.

Throws:
Exception

testEncodingOption

public void testEncodingOption()
                        throws Exception
#1144 CPD encoding argument has no effect

Throws:
Exception

testBrokenAndValidFile

public void testBrokenAndValidFile()
                            throws IOException
See: https://sourceforge.net/p/pmd/bugs/1178/

Throws:
IOException - any error

testFormatXmlWithoutEncoding

public void testFormatXmlWithoutEncoding()
                                  throws Exception
Throws:
Exception

testCSVFormat

public void testCSVFormat()
                   throws Exception
Throws:
Exception


Copyright © 2002–2015 InfoEther. All rights reserved.