Search in sources :

Example 1 with PropertyManager

use of com.trivago.properties.PropertyManager in project cucable-plugin by trivago.

the class CucableLoggerTest method setup.

@Before
public void setup() {
    mockedLogger = mock(Log.class);
    PropertyManager propertyManager = mock(PropertyManager.class);
    logger = new CucableLogger();
}
Also used : Log(org.apache.maven.plugin.logging.Log) PropertyManager(com.trivago.properties.PropertyManager) Before(org.junit.Before)

Example 2 with PropertyManager

use of com.trivago.properties.PropertyManager 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 3 with PropertyManager

use of com.trivago.properties.PropertyManager in project cucable-plugin by trivago.

the class RunnerFileContentRendererTest method setup.

@Before
public void setup() {
    fileIO = mock(FileIO.class);
    propertyManager = mock(PropertyManager.class);
    CucableLogger logger = mock(CucableLogger.class);
    runnerFileContentRenderer = new RunnerFileContentRenderer(fileIO, propertyManager, logger);
}
Also used : PropertyManager(com.trivago.properties.PropertyManager) CucableLogger(com.trivago.logging.CucableLogger) FileIO(com.trivago.files.FileIO) Before(org.junit.Before)

Example 4 with PropertyManager

use of com.trivago.properties.PropertyManager 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

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