@Test public void testIsScenarioExists() throws Exception{ JSystemProperties.getInstance().setPreference(FrameworkOptions.USED_SUT_FILE, "emtpy"); Assert.assertTrue(ScenariosManager.getInstance().isScenarioExists("scenarios\\jsystemCoreSanity")); }
public boolean isScenarioExists(String name) throws Exception{ String windowsStyle = FileUtils.convertToWindowsPath(name); String unixStyle = FileUtils.replaceSeparator(name); Vector<String> v = getAvailableLists(); for (int m = 0; m < v.size(); m++) { if (v.get(m).equals(windowsStyle) || v.get(m).equals(unixStyle)) return true; } return false; }
ScenariosManager { public boolean isScenarioExists(String name) throws Exception{ String windowsStyle = FileUtils.convertToWindowsPath(name); String unixStyle = FileUtils.replaceSeparator(name); Vector<String> v = getAvailableLists(); for (int m = 0; m < v.size(); m++) { if (v.get(m).equals(windowsStyle) || v.get(m).equals(unixStyle)) return true; } return false; } }
ScenariosManager { public boolean isScenarioExists(String name) throws Exception{ String windowsStyle = FileUtils.convertToWindowsPath(name); String unixStyle = FileUtils.replaceSeparator(name); Vector<String> v = getAvailableLists(); for (int m = 0; m < v.size(); m++) { if (v.get(m).equals(windowsStyle) || v.get(m).equals(unixStyle)) return true; } return false; }  }
ScenariosManager { public boolean isScenarioExists(String name) throws Exception{ String windowsStyle = FileUtils.convertToWindowsPath(name); String unixStyle = FileUtils.replaceSeparator(name); Vector<String> v = getAvailableLists(); for (int m = 0; m < v.size(); m++) { if (v.get(m).equals(windowsStyle) || v.get(m).equals(unixStyle)) return true; } return false; }  static ScenariosManager getInstance(); static void init(); static void setDirty(); static void resetDirty(); static void setDirtyStateEventsSilent(boolean silent); static boolean isDirty(); Scenario getScenario(String name); ArrayList<String> collectTestsOfType(SystemTest test); synchronized Scenario getCurrentScenario(); synchronized String checkScenario(); void setCurrentScenario(Scenario currentScenario); boolean isScenarioExists(String name); Vector<String> getAvailableLists(); File getScenariosDirectoryFiles(); void setScenariosDirectoryFiles(File scenariosDirectoryFiles); void setRunMode(int runMode); int getRunMode(); Vector<String> getScenariosNames(); Exception getLastException(); }
ScenariosManager { public boolean isScenarioExists(String name) throws Exception{ String windowsStyle = FileUtils.convertToWindowsPath(name); String unixStyle = FileUtils.replaceSeparator(name); Vector<String> v = getAvailableLists(); for (int m = 0; m < v.size(); m++) { if (v.get(m).equals(windowsStyle) || v.get(m).equals(unixStyle)) return true; } return false; }  static ScenariosManager getInstance(); static void init(); static void setDirty(); static void resetDirty(); static void setDirtyStateEventsSilent(boolean silent); static boolean isDirty(); Scenario getScenario(String name); ArrayList<String> collectTestsOfType(SystemTest test); synchronized Scenario getCurrentScenario(); synchronized String checkScenario(); void setCurrentScenario(Scenario currentScenario); boolean isScenarioExists(String name); Vector<String> getAvailableLists(); File getScenariosDirectoryFiles(); void setScenariosDirectoryFiles(File scenariosDirectoryFiles); void setRunMode(int runMode); int getRunMode(); Vector<String> getScenariosNames(); Exception getLastException(); static final int RUN_MODE_CONTINUE; static final int RUN_MODE_FREEZE; static final int RUN_MODE_STOP; }