@Published(tag="architect")
public class SystemPropertyResource
extends org.junit.rules.ExternalResource
下記のようにテストクラスに記述することで、テストメソッドの実行後にシステムプロパティをテスト実行前の状態に復帰できる。
@Rule public final SystemPropertyResource systemPropertyResource = new SystemPropertyResource();
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
after() |
protected void |
before() |