Search in sources :

Example 16 with CucableFeature

use of com.trivago.vo.CucableFeature in project cucable-plugin by trivago.

the class FileSystemManagerTest method getPathsFromCucableFeatureValidEmptyPathTest.

@Test
public void getPathsFromCucableFeatureValidEmptyPathTest() throws CucablePluginException {
    CucableFeature cucableFeatures = new CucableFeature(testFolder.getRoot().getPath(), null);
    List<Path> pathsFromCucableFeature = fileSystemManager.getPathsFromCucableFeature(cucableFeatures);
    assertThat(pathsFromCucableFeature, is(notNullValue()));
    assertThat(pathsFromCucableFeature.size(), is(0));
}
Also used : Path(java.nio.file.Path) CucableFeature(com.trivago.vo.CucableFeature) Test(org.junit.Test)

Example 17 with CucableFeature

use of com.trivago.vo.CucableFeature in project cucable-plugin by trivago.

the class FileSystemManagerTest method getPathsFromCucableFeatureInvalidFeatureTest.

@Test(expected = CucablePluginException.class)
public void getPathsFromCucableFeatureInvalidFeatureTest() throws CucablePluginException {
    CucableFeature cucableFeatures = new CucableFeature("name.feature", null);
    fileSystemManager.getPathsFromCucableFeature(cucableFeatures);
}
Also used : CucableFeature(com.trivago.vo.CucableFeature) Test(org.junit.Test)

Aggregations

CucableFeature (com.trivago.vo.CucableFeature)17 Test (org.junit.Test)14 ArrayList (java.util.ArrayList)12 FeatureRunner (com.trivago.vo.FeatureRunner)8 ArgumentMatchers.anyString (org.mockito.ArgumentMatchers.anyString)8 SingleScenario (com.trivago.vo.SingleScenario)7 Path (java.nio.file.Path)4 CucableLogLevel (com.trivago.logging.CucableLogger.CucableLogLevel)1 Map (java.util.Map)1 Matcher (java.util.regex.Matcher)1 Pattern (java.util.regex.Pattern)1