buildframework/helium/sf/java/checktools/tests/src/com/nokia/helium/checktools/tests/TestCheckEngine.java
equal
deleted
inserted
replaced
51 } |
51 } |
52 |
52 |
53 /** |
53 /** |
54 * Method tests the ant version with valid version set. |
54 * Method tests the ant version with valid version set. |
55 */ |
55 */ |
56 public void testVerifyAntVersionValid() { |
56 public void testVerifyAntVersionValid() throws CheckToolException { |
57 CheckToolException cte = null; |
57 CheckToolException cte = null; |
58 Properties props = new Properties(); |
58 Properties props = new Properties(); |
59 String str = new ToolChecker().getInstalledToolVersion(OSResolver |
59 String str = new ToolChecker().getInstalledToolVersion(OSResolver |
60 .getCommand("ant -version")); |
60 .getCommand("ant -version")); |
61 String ver = str.split(" ")[3]; |
61 String ver = str.split(" ")[3]; |
71 } |
71 } |
72 |
72 |
73 /** |
73 /** |
74 * Method tests the python version with invalid version set. |
74 * Method tests the python version with invalid version set. |
75 */ |
75 */ |
76 public void testVerifyPythonVersionInValid() { |
76 public void testVerifyPythonVersionInValid() throws CheckToolException { |
77 CheckToolException cte = null; |
77 CheckToolException cte = null; |
78 Properties props = new Properties(); |
78 Properties props = new Properties(); |
79 props.setProperty("python.version", "0.0.0.0"); |
79 props.setProperty("python.version", "0.0.0.0"); |
80 |
80 |
81 try { |
81 try { |
89 } |
89 } |
90 |
90 |
91 /** |
91 /** |
92 * Method tests the python version with valid version set. |
92 * Method tests the python version with valid version set. |
93 */ |
93 */ |
94 public void testVerifyPythonVersionValid() { |
94 public void testVerifyPythonVersionValid() throws CheckToolException { |
95 CheckToolException cte = null; |
95 CheckToolException cte = null; |
96 Properties props = new Properties(); |
96 Properties props = new Properties(); |
97 String str = new ToolChecker().getInstalledToolVersion(OSResolver |
97 String str = new ToolChecker().getInstalledToolVersion(OSResolver |
98 .getCommand("python -V")); |
98 .getCommand("python -V")); |
99 String ver = str.split(" ")[1]; |
99 String ver = str.split(" ")[1]; |