@Test public void testRun() throws Exception { System.setProperty(FOO, BAR); try { assertThat(new GetSystemPropertyAction(FOO).run(), is(BAR)); } finally { System.clearProperty(FOO); } }
public String run() { return System.getProperty(key); }
GetSystemPropertyAction implements PrivilegedAction<String> { public String run() { return System.getProperty(key); } }
GetSystemPropertyAction implements PrivilegedAction<String> { public String run() { return System.getProperty(key); } GetSystemPropertyAction(String key); }
GetSystemPropertyAction implements PrivilegedAction<String> { public String run() { return System.getProperty(key); } GetSystemPropertyAction(String key); String run(); }
GetSystemPropertyAction implements PrivilegedAction<String> { public String run() { return System.getProperty(key); } GetSystemPropertyAction(String key); String run();  }