+
+ @Test(groups = "Functional")
+ public void testGetPymolPaths()
+ {
+ /*
+ * OSX
+ */
+ List<String> paths = PymolManager.getPymolPaths("Mac OS X");
+ assertEquals(paths.size(), 1);
+ assertTrue(
+ paths.contains("/Applications/PyMOL.app/Contents/MacOS/PyMOL"));
+
+ /*
+ * Linux
+ */
+ paths = PymolManager.getPymolPaths("Linux i386 1.5.0");
+ assertTrue(paths.contains("/usr/local/pymol/bin/PyMOL"));
+ assertTrue(paths.contains("/usr/local/bin/PyMOL"));
+ assertTrue(paths.contains("/usr/bin/PyMOL"));
+ assertTrue(paths.contains("/usr/local/pymol/bin/PyMOL"));
+ assertTrue(paths
+ .contains(System.getProperty("user.home") + "/opt/bin/PyMOL"));
+
+ /*
+ * Windows
+ */
+ paths = PymolManager.getPymolPaths("Windows 10");
+ assertTrue(paths.isEmpty()); // TODO - Windows paths
+
+ /*
+ * Other
+ */
+ paths = PymolManager.getPymolPaths("VAX/VMS");
+ assertTrue(paths.isEmpty());
+ }