Package com.powsybl.tools.test
Class AbstractToolTest
- java.lang.Object
-
- com.powsybl.tools.test.AbstractToolTest
-
public abstract class AbstractToolTest extends Object
- Author:
- Geoffroy Jamgotchian
-
-
Field Summary
Fields Modifier and Type Field Description protected FileSystem
fileSystem
protected InMemoryPlatformConfig
platformConfig
-
Constructor Summary
Constructors Constructor Description AbstractToolTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
assertCommand()
protected void
assertCommand(Command command, String commandName, int optionCount, int requiredOptionCount)
protected void
assertCommand(String[] args, int expectedStatus, String expectedOut, String expectedErr)
protected void
assertOption(org.apache.commons.cli.Options options, String optionName, boolean isRequired, boolean hasArgument)
protected void
createFile(String filename, String content)
protected abstract Iterable<Tool>
getTools()
void
setUp()
void
tearDown()
-
-
-
Field Detail
-
fileSystem
protected FileSystem fileSystem
-
platformConfig
protected InMemoryPlatformConfig platformConfig
-
-
Method Detail
-
createFile
protected void createFile(String filename, String content) throws IOException
- Throws:
IOException
-
tearDown
@AfterEach public void tearDown() throws IOException
- Throws:
IOException
-
assertCommand
protected void assertCommand(String[] args, int expectedStatus, String expectedOut, String expectedErr) throws IOException
- Throws:
IOException
-
assertCommand
@Test public abstract void assertCommand()
-
assertCommand
protected void assertCommand(Command command, String commandName, int optionCount, int requiredOptionCount)
-
assertOption
protected void assertOption(org.apache.commons.cli.Options options, String optionName, boolean isRequired, boolean hasArgument)
-
-