Index
All Classes and Interfaces|All Packages
A
- AbstractMCTest - Class in de.monticore.runtime.junit
-
Common abstract super class for MontiCore language tests Ensures, that the correct Log is initialized and no findings are present after a test; findings are either expected to not occur at all or, if they occur, are checked and removed afterward, s.a.
- AbstractMCTest() - Constructor for class de.monticore.runtime.junit.AbstractMCTest
- AbstractTestLanguageTool<N,
AS> - Class in de.monticore.runtime.junit -
A wrapper around the language tool (parser, symbol table, CoCos) to be used in tests.
- AbstractTestLanguageTool() - Constructor for class de.monticore.runtime.junit.AbstractTestLanguageTool
- addSymbolTableToAST(N) - Method in class de.monticore.runtime.junit.AbstractTestLanguageTool
-
Does it all, except parsing; Adds the symbol table and checks CoCos to a given AST.
- afterEach(ExtensionContext) - Method in class de.monticore.runtime.junit.MCLanguageTestExtension
- apply(String) - Method in interface de.monticore.runtime.junit.PrettyPrinterTester.ParseFunction
- assertHasFinding() - Static method in class de.monticore.runtime.junit.MCAssertions
-
Asserts that at least one Finding is present.
- assertHasFinding(Predicate<Finding>) - Static method in class de.monticore.runtime.junit.MCAssertions
-
Asserts that at least one Finding matches the predicate.
- assertHasFinding(Predicate<Finding>, String) - Static method in class de.monticore.runtime.junit.MCAssertions
-
Asserts that at least one Finding matches the predicate If multiple Findings match, only the first of them will be marked as checked.
- assertHasFindings(Predicate<Finding>) - Static method in class de.monticore.runtime.junit.MCAssertions
-
Asserts that at least one Finding matches the predicate.
- assertHasFindings(Predicate<Finding>, String) - Static method in class de.monticore.runtime.junit.MCAssertions
-
Asserts that at least one Finding matches the predicate.
- assertHasFindingsStartingWith(String) - Static method in class de.monticore.runtime.junit.MCAssertions
-
Asserts that at least one Finding starts with the expected prefix
- assertHasFindingsStartingWith(String, String) - Static method in class de.monticore.runtime.junit.MCAssertions
-
Asserts that at least one Finding starts with the expected prefix
- assertHasFindingStartingWith(String) - Static method in class de.monticore.runtime.junit.MCAssertions
-
Asserts that at least one Finding starts with the expected prefix
- assertHasFindingStartingWith(String, String) - Static method in class de.monticore.runtime.junit.MCAssertions
-
Asserts that at least one Finding starts with the expected prefix
- assertNoFindings() - Static method in class de.monticore.runtime.junit.MCAssertions
-
Asserts that no findings are present.
- assertNoFindings(String) - Static method in class de.monticore.runtime.junit.MCAssertions
-
Asserts that no findings are present.
- assureDirectoryExists(Path) - Method in class de.monticore.runtime.junit.TestJavaCompiler
-
Assures that the given directory exists, creating it if necessary.
B
- beforeEach(ExtensionContext) - Method in class de.monticore.runtime.junit.MCLanguageTestExtension
C
- checkLogAfterTest() - Method in class de.monticore.runtime.junit.AbstractMCTest
- classLoader - Variable in class de.monticore.runtime.junit.TestJavaCompiler
-
The ClassLoader to load the generated classes with.
- close() - Method in class de.monticore.runtime.junit.TestJavaCompiler
- compile(File) - Method in class de.monticore.runtime.junit.TestJavaCompiler
-
Alternative version of
TestJavaCompiler.compile(List)for single files. - compile(List<? extends File>) - Method in class de.monticore.runtime.junit.TestJavaCompiler
-
Compiles the Java files and loads the corresponding classes.
- compile(List<? extends File>, List<String>) - Method in class de.monticore.runtime.junit.TestJavaCompiler
-
Compiles the Java files and loads the corresponding classes.
- completeSymbolTable(N) - Method in class de.monticore.runtime.junit.AbstractTestLanguageTool
-
Completes the symbol table.
- createSymbolTable(N) - Method in class de.monticore.runtime.junit.AbstractTestLanguageTool
-
Creates the symbol table.
D
- de.monticore.runtime.junit - package de.monticore.runtime.junit
- DEFAULT_OUTPUT_PATH - Static variable in class de.monticore.runtime.junit.TestJavaCompiler
- defaultCheckLogAfterTest() - Static method in class de.monticore.runtime.junit.AbstractMCTest
F
- failAndPrintFindings() - Static method in class de.monticore.runtime.junit.MCAssertions
-
Fails a test.
- failAndPrintFindings(String) - Static method in class de.monticore.runtime.junit.MCAssertions
-
Fails a test with the given failure message.
- failAndPrintFindings(String, Collection<Finding>) - Static method in class de.monticore.runtime.junit.MCAssertions
-
Fails a test with the given failure message.
- formatDiagnostic(Diagnostic<? extends JavaFileObject>) - Method in class de.monticore.runtime.junit.TestJavaCompiler
- formatDiagnostics(List<Diagnostic<? extends JavaFileObject>>) - Method in class de.monticore.runtime.junit.TestJavaCompiler
G
- getAnnotation(ExtensionContext) - Method in class de.monticore.runtime.junit.MCLanguageTestExtension
-
Fetch the @
TestWithMCLanguageannotation, containing a reference to the relevant Mill. - getASTWithSymbolTable(String) - Method in class de.monticore.runtime.junit.AbstractTestLanguageTool
-
The main entry point; Does it all.
- getClassNameOfJavaFile(File) - Method in class de.monticore.runtime.junit.TestJavaCompiler
-
given a .java file, this returns the name of the class
- getDefaultCompilerOptions() - Method in class de.monticore.runtime.junit.TestJavaCompiler
-
Returns the default compiler options.
I
- initAbstract() - Method in class de.monticore.runtime.junit.AbstractMCTest
- invokeStaticMethod(Class<?>, String) - Method in class de.monticore.runtime.junit.MCLanguageTestExtension
-
invoke a public, static method (init/reset) of a mill
J
- javac - Variable in class de.monticore.runtime.junit.TestJavaCompiler
-
Caches the Java compiler for efficiency.
M
- MCAssertions - Class in de.monticore.runtime.junit
-
MCAssertions is a collection of utility methods that support asserting conditions in MontiCore tests.
- MCAssertions() - Constructor for class de.monticore.runtime.junit.MCAssertions
- MCLanguageTestExtension - Class in de.monticore.runtime.junit
- MCLanguageTestExtension() - Constructor for class de.monticore.runtime.junit.MCLanguageTestExtension
O
- outputDir - Variable in class de.monticore.runtime.junit.TestJavaCompiler
-
The directory to store the .class files in.
P
- parse(String) - Method in class de.monticore.runtime.junit.AbstractTestLanguageTool
-
Parses the model.
- PrettyPrinterTester - Class in de.monticore.runtime.junit
-
Offers functions to test pretty printers
- PrettyPrinterTester() - Constructor for class de.monticore.runtime.junit.PrettyPrinterTester
- PrettyPrinterTester.ParseFunction<N> - Interface in de.monticore.runtime.junit
-
Represents the function that parses a String.
R
- readFile(File) - Method in class de.monticore.runtime.junit.TestJavaCompiler
- runBetween_createSymbolTable_completeSymbolTable(N) - Method in class de.monticore.runtime.junit.AbstractTestLanguageTool
- runBetween_parse_createSymbolTable(N) - Method in class de.monticore.runtime.junit.AbstractTestLanguageTool
- runPost_completeSymbolTable(N) - Method in class de.monticore.runtime.junit.AbstractTestLanguageTool
-
To be run after
AbstractTestLanguageTool.completeSymbolTable(ASTNode).
T
- TestJavaCompiler - Class in de.monticore.runtime.junit
-
A test utility class to call the java compiler.
- TestJavaCompiler() - Constructor for class de.monticore.runtime.junit.TestJavaCompiler
- TestJavaCompiler(Path) - Constructor for class de.monticore.runtime.junit.TestJavaCompiler
- testPrettyPrinter(String, MCConcreteParser, PrettyPrinterTester.ParseFunction<N>, Function<N, String>) - Static method in class de.monticore.runtime.junit.PrettyPrinterTester
-
Tests pretty printing.
- testPrettyPrinter(String, MCConcreteParser, PrettyPrinterTester.ParseFunction<N>, Function<N, String>, Predicate<String>) - Static method in class de.monticore.runtime.junit.PrettyPrinterTester
-
Tests pretty printing.
- TestWithMCLanguage - Annotation Interface in de.monticore.runtime.junit
-
Performs the tests within the scope of a language.
V
- value() - Element in annotation interface de.monticore.runtime.junit.TestWithMCLanguage
-
The Mill of a language, such as
@TestWithMCLanguage(MyDSLMill.class)
_
- __internalReportNotifyCheck(Finding) - Static method in class de.monticore.runtime.junit.MCAssertions
-
(Internal)
- _completeSymbolTable(N) - Method in class de.monticore.runtime.junit.AbstractTestLanguageTool
- _createSymbolTable(N) - Method in class de.monticore.runtime.junit.AbstractTestLanguageTool
- _parse(String) - Method in class de.monticore.runtime.junit.AbstractTestLanguageTool
- _runBetween_createSymbolTable_completeSymbolTable(N) - Method in class de.monticore.runtime.junit.AbstractTestLanguageTool
- _runBetween_parse_createSymbolTable(N) - Method in class de.monticore.runtime.junit.AbstractTestLanguageTool
- _runPost_completeSymbolTable(N) - Method in class de.monticore.runtime.junit.AbstractTestLanguageTool
All Classes and Interfaces|All Packages