Class AbstractLanguageVersionTest


  • public abstract class AbstractLanguageVersionTest
    extends Object
    Base test class for LanguageVersion implementations.
    Each language implementation should subclass this and provide a method called data.
    
         static Collection<TestDescriptor> data() {
           final Language myLanguage = LanguageRegistry.getLanguage(MyLanguageModule.NAME);
           return Arrays.asList(
                new TestDescriptor(myLanguage, "1.1"),
                new TestDescriptor(myLanguage, "1.2"),
                defaultVersionIs(myLanguage, "1.2),
    
                // doesn't exist
                versionDoesNotExist(myLanguage, "1.3")
           };
     
    • Constructor Detail

      • AbstractLanguageVersionTest

        public AbstractLanguageVersionTest()
    • Method Detail

      • getLanguage

        protected static Language getLanguage​(String name)