Search in sources :

Example 1 with FileSystemManager

use of com.trivago.files.FileSystemManager in project cucable-plugin by trivago.

the class FeatureFileConverterTest method setup.

@Before
public void setup() {
    gherkinDocumentParser = mock(GherkinDocumentParser.class);
    featureFileContentRenderer = mock(FeatureFileContentRenderer.class);
    runnerFileContentRenderer = mock(RunnerFileContentRenderer.class);
    fileIO = mock(FileIO.class);
    fileSystemManager = mock(FileSystemManager.class);
    logger = mock(CucableLogger.class);
    propertyManager = new PropertyManager(logger, fileIO);
    featureFileConverter = new FeatureFileConverter(propertyManager, gherkinDocumentParser, featureFileContentRenderer, runnerFileContentRenderer, fileIO, fileSystemManager, logger);
}
Also used : PropertyManager(com.trivago.properties.PropertyManager) CucableLogger(com.trivago.logging.CucableLogger) RunnerFileContentRenderer(com.trivago.runners.RunnerFileContentRenderer) GherkinDocumentParser(com.trivago.gherkin.GherkinDocumentParser) FileSystemManager(com.trivago.files.FileSystemManager) FileIO(com.trivago.files.FileIO) Before(org.junit.Before)

Example 2 with FileSystemManager

use of com.trivago.files.FileSystemManager in project cucable-plugin by trivago.

the class CucablePluginTest method setup.

@Before
public void setup() {
    logger = mock(CucableLogger.class);
    mojoLogger = mock(Log.class);
    logger.initialize(mojoLogger, "default");
    PropertyManager propertyManager = mock(PropertyManager.class);
    FileSystemManager fileSystemManager = mock(FileSystemManager.class);
    FeatureFileConverter featureFileConverter = mock(FeatureFileConverter.class);
    cucablePlugin = new CucablePlugin(propertyManager, fileSystemManager, featureFileConverter, logger);
}
Also used : Log(org.apache.maven.plugin.logging.Log) PropertyManager(com.trivago.properties.PropertyManager) FeatureFileConverter(com.trivago.features.FeatureFileConverter) CucableLogger(com.trivago.logging.CucableLogger) FileSystemManager(com.trivago.files.FileSystemManager) Before(org.junit.Before)

Aggregations

FileSystemManager (com.trivago.files.FileSystemManager)2 CucableLogger (com.trivago.logging.CucableLogger)2 PropertyManager (com.trivago.properties.PropertyManager)2 Before (org.junit.Before)2 FeatureFileConverter (com.trivago.features.FeatureFileConverter)1 FileIO (com.trivago.files.FileIO)1 GherkinDocumentParser (com.trivago.gherkin.GherkinDocumentParser)1 RunnerFileContentRenderer (com.trivago.runners.RunnerFileContentRenderer)1 Log (org.apache.maven.plugin.logging.Log)1