質問

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