Permalink
Browse files

Simplifies tearDown of test

  • Loading branch information...
marcphilipp committed Oct 6, 2011
1 parent c159350 commit 178f27c97c5aff0baf811d9b9000465c0dc5b47c
Showing with 1 addition and 1 deletion.
  1. +1 −1 junit-rules/src/test/java/org/junit/rules/ext/SystemPropertiesTest.java
@@ -24,7 +24,7 @@ public void putKnownKey() {
@After
public void removeKnownKey() {
- System.getProperties().remove(KNOWN_KEY);
+ System.clearProperty(KNOWN_KEY);
}
@Test

0 comments on commit 178f27c

Please sign in to comment.