net.sourceforge.pmd
Class AbstractLanguageVersionTest

java.lang.Object
  extended by net.sourceforge.pmd.AbstractLanguageVersionTest

public class AbstractLanguageVersionTest
extends Object

Base test class for LanguageVersion implementations.
Each language implementation should subclass this and provide a data method.


Constructor Summary
AbstractLanguageVersionTest(String name, String terseName, String version, LanguageVersion expected)
          Creates a new AbstractLanguageVersionTest
 
Method Summary
 void testFindVersionsForLanguageNameAndVersion()
          Checks that the expected LanguageVersion can be found via name and version.
 void testGetLanguageVersionForTerseName()
          Checks that the expected LanguageVersion can be found by the combination of terseName and version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLanguageVersionTest

public AbstractLanguageVersionTest(String name,
                                   String terseName,
                                   String version,
                                   LanguageVersion expected)
Creates a new AbstractLanguageVersionTest

Parameters:
name - the name under which the language module is registered
terseName - the terse name under which the language module is registered
version - the specific version of the language version
expected - the expected LanguageVersion instance
Method Detail

testGetLanguageVersionForTerseName

public void testGetLanguageVersionForTerseName()
Checks that the expected LanguageVersion can be found by the combination of terseName and version.


testFindVersionsForLanguageNameAndVersion

public void testFindVersionsForLanguageNameAndVersion()
Checks that the expected LanguageVersion can be found via name and version.



Copyright © 2002-2015 InfoEther. All Rights Reserved.