File tree 1 file changed +4
-0
lines changed
junit-jupiter-engine/src/test/java/org/junit/jupiter/engine/extension
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 38
38
import org .junit .jupiter .api .DisplayName ;
39
39
import org .junit .jupiter .api .Nested ;
40
40
import org .junit .jupiter .api .Test ;
41
+ import org .junit .jupiter .api .condition .DisabledOnOs ;
42
+ import org .junit .jupiter .api .condition .OS ;
41
43
import org .junit .jupiter .api .extension .AnnotatedElementContext ;
42
44
import org .junit .jupiter .api .extension .ExtensionConfigurationException ;
43
45
import org .junit .jupiter .api .extension .ExtensionContext ;
@@ -106,6 +108,7 @@ void factoryReturnsDirectory() throws Exception {
106
108
107
109
@ Test
108
110
@ DisplayName ("succeeds if the factory returns a symbolic link to a directory" )
111
+ @ DisabledOnOs (OS .WINDOWS )
109
112
void factoryReturnsSymbolicLinkToDirectory () throws Exception {
110
113
Path directory = createDirectory (root .resolve ("directory" ));
111
114
TempDirFactory factory = (elementContext ,
@@ -141,6 +144,7 @@ void factoryReturnsFile() throws IOException {
141
144
142
145
@ Test
143
146
@ DisplayName ("fails if the factory returns a symbolic link to a file" )
147
+ @ DisabledOnOs (OS .WINDOWS )
144
148
void factoryReturnsSymbolicLinkToFile () throws IOException {
145
149
Path file = createFile (root .resolve ("file" ));
146
150
Path symbolicLink = createSymbolicLink (root .resolve ("symbolicLink" ), file );
You can’t perform that action at this time.
0 commit comments