|
10 | 10 | // limitations under the License. |
11 | 11 | // |
12 | 12 | // Automatically generated by addcopyright.py at 04/03/2012 |
13 | | -package com.cloud.agent; |
14 | | - |
| 13 | +package com.cloud.agent; |
| 14 | + |
15 | 15 | import java.io.File; |
16 | 16 | import java.io.IOException; |
17 | 17 |
|
18 | 18 | import org.apache.log4j.Logger; |
19 | 19 |
|
20 | 20 | import com.cloud.agent.AgentShell; |
21 | 21 | import com.cloud.utils.testcase.Log4jEnabledTestCase; |
22 | | - |
23 | | -public class TestAgentShell extends Log4jEnabledTestCase { |
24 | | - protected final static Logger s_logger = Logger.getLogger(TestAgentShell.class); |
25 | | - |
26 | | - public void testWget() { |
27 | | - File file = null; |
28 | | - try { |
29 | | - file = File.createTempFile("wget", ".html"); |
30 | | - AgentShell.wget("http://www.google.com/", file); |
31 | | - |
32 | | - if (s_logger.isDebugEnabled()) { |
33 | | - s_logger.debug("file saved to " + file.getAbsolutePath()); |
34 | | - } |
35 | | - |
36 | | - } catch (final IOException e) { |
37 | | - s_logger.warn("Exception while downloading agent update package, ", e); |
38 | | - } |
39 | | - } |
40 | | -} |
| 22 | + |
| 23 | +public class TestAgentShell extends Log4jEnabledTestCase { |
| 24 | + protected final static Logger s_logger = Logger.getLogger(TestAgentShell.class); |
| 25 | + |
| 26 | + public void testWget() { |
| 27 | + File file = null; |
| 28 | + try { |
| 29 | + file = File.createTempFile("wget", ".html"); |
| 30 | + AgentShell.wget("http://www.google.com/", file); |
| 31 | + |
| 32 | + if (s_logger.isDebugEnabled()) { |
| 33 | + s_logger.debug("file saved to " + file.getAbsolutePath()); |
| 34 | + } |
| 35 | + |
| 36 | + } catch (final IOException e) { |
| 37 | + s_logger.warn("Exception while downloading agent update package, ", e); |
| 38 | + } |
| 39 | + } |
| 40 | +} |
0 commit comments