I am writing a unit test for a Java program, and I need to simulate a Unix kill. Is there any way that this is possible?

Thanks!

有帮助吗?

解决方案

In short, no, there isn't.

On a unix system, the best bet is to use Runtime.exec().

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top