Package eu.bandm.tools.test
Class TestFrame
java.lang.Object
eu.bandm.tools.test.TestFrame
- Direct Known Subclasses:
TestFrame_messages
Base class with convenience methods for JUnit tests.
Currently we are using "junit 4" = https://junit.org/junit4/"
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Assumes that all class source is under "$(PRJ)/src/..." or "$(PRJ)/test".protected String
protected static void
writeTmpFile
(File testDir, String fileName, String... lines) Write the strings into a file with the given name in the given directory, in UTF_8 encoding.protected static File
writeTmpFile
(String fileName, String... lines) Write the string into a file with the given name, in some temp directory.
-
Constructor Details
-
TestFrame
public TestFrame()
-
-
Method Details
-
filesystemRelativeProjectRoot
Assumes that all class source is under "$(PRJ)/src/..." or "$(PRJ)/test".- Returns:
- the relative path to the root of the project.
-
methodName
-
writeTmpFile
Write the strings into a file with the given name in the given directory, in UTF_8 encoding. -
writeTmpFile
Write the string into a file with the given name, in some temp directory.- Returns:
- the temp directory
-