use of org.junit.jupiter.api.condition.EnabledOnOs in project cucumber-jvm by cucumber.
the class FeaturePathTest method can_parse_windows_path_form.
@Test
@EnabledOnOs(WINDOWS)
void can_parse_windows_path_form() {
URI uri = FeaturePath.parse("path\\to\\file.feature");
assertAll(() -> assertThat(uri.getScheme(), is("file")), () -> assertThat(uri.getSchemeSpecificPart(), endsWith("path/to/file.feature")));
}
use of org.junit.jupiter.api.condition.EnabledOnOs in project cucumber-jvm by cucumber.
the class FeaturePathTest method can_parse_windows_file_path_with_standard_file_separator.
@Test
@EnabledOnOs(WINDOWS)
void can_parse_windows_file_path_with_standard_file_separator() {
URI uri = FeaturePath.parse("C:/path/to/file.feature");
assertAll(() -> assertThat(uri.getScheme(), is("file")), () -> assertThat(uri.getSchemeSpecificPart(), is("/C:/path/to/file.feature")));
}
use of org.junit.jupiter.api.condition.EnabledOnOs in project cucumber-jvm by cucumber.
the class GluePathTest method can_parse_windows_path_form.
@Test
@EnabledOnOs(OS.WINDOWS)
void can_parse_windows_path_form() {
URI uri = GluePath.parse("com\\example\\app");
assertAll(() -> assertThat(uri.getScheme(), is("classpath")), () -> assertThat(uri.getSchemeSpecificPart(), is(equalTo("/com/example/app"))));
}
use of org.junit.jupiter.api.condition.EnabledOnOs in project cryptomator by cryptomator.
the class VaultModuleTest method testWinDokanyDefaultMountFlags.
@Test
@DisplayName("provideDefaultMountFlags on Windows/Dokany")
@EnabledOnOs(OS.WINDOWS)
public void testWinDokanyDefaultMountFlags() {
Mockito.when(settings.preferredVolumeImpl()).thenReturn(new SimpleObjectProperty<>(VolumeImpl.DOKANY));
StringBinding result = module.provideDefaultMountFlags(settings, vaultSettings);
MatcherAssert.assertThat(result.get(), CoreMatchers.containsString("--options CURRENT_SESSION,WRITE_PROTECTION"));
}
use of org.junit.jupiter.api.condition.EnabledOnOs in project cryptomator by cryptomator.
the class VaultModuleTest method testMacFuseDefaultMountFlags.
@Test
@DisplayName("provideDefaultMountFlags on Mac/FUSE")
@EnabledOnOs(OS.MAC)
public void testMacFuseDefaultMountFlags() {
Mockito.when(settings.preferredVolumeImpl()).thenReturn(new SimpleObjectProperty<>(VolumeImpl.FUSE));
StringBinding result = module.provideDefaultMountFlags(settings, vaultSettings);
MatcherAssert.assertThat(result.get(), CoreMatchers.containsString("-ovolname=\"TEST\""));
MatcherAssert.assertThat(result.get(), CoreMatchers.containsString("-ordonly"));
}
Aggregations