Skip to content

Commit 3e050dd

Browse files
committed
Remove redundant OS-specific tests
1 parent 933fade commit 3e050dd

1 file changed

Lines changed: 0 additions & 50 deletions

File tree

src/test/java/rife/bld/extension/JBangOperationTests.java

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -289,56 +289,6 @@ void verifyJBangHomeAsString() {
289289
}
290290
}
291291

292-
@Nested
293-
@DisplayName("OS Tests")
294-
class OsTests {
295-
@Test
296-
@EnabledOnOs(OS.LINUX)
297-
void verifyIsLinux() {
298-
assertTrue(JBangOperation.isLinux());
299-
assertFalse(JBangOperation.isWindows());
300-
assertFalse(JBangOperation.isMacOS());
301-
}
302-
303-
@Test
304-
@EnabledOnOs(OS.MAC)
305-
void verifyIsMacOS() {
306-
assertTrue(JBangOperation.isMacOS());
307-
assertFalse(JBangOperation.isLinux());
308-
assertFalse(JBangOperation.isWindows());
309-
}
310-
311-
@Test
312-
@EnabledOnOs(OS.WINDOWS)
313-
void verifyIsWindows() {
314-
assertTrue(JBangOperation.isWindows());
315-
assertFalse(JBangOperation.isLinux());
316-
assertFalse(JBangOperation.isMacOS());
317-
}
318-
319-
@Test
320-
void verifyOsNameLinux() {
321-
var originalOsName = System.getProperty("os.name");
322-
try {
323-
System.setProperty("os.name", "linux");
324-
assertTrue(JBangOperation.isLinux(), "os.name should be linux");
325-
} finally {
326-
System.setProperty("os.name", originalOsName);
327-
}
328-
}
329-
330-
@Test
331-
void verifyOsNameUnix() {
332-
var originalOsName = System.getProperty("os.name");
333-
try {
334-
System.setProperty("os.name", "unix");
335-
assertTrue(JBangOperation.isLinux(), "os.name should be unix");
336-
} finally {
337-
System.setProperty("os.name", originalOsName);
338-
}
339-
}
340-
}
341-
342292
@Nested
343293
@DisplayName("Script Tests")
344294
class ScriptTests {

0 commit comments

Comments
 (0)