lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [6097] Refactor: use output_file_existence_checker


From: Greg Chicares
Subject: [lmi-commits] [6097] Refactor: use output_file_existence_checker
Date: Fri, 23 Jan 2015 15:13:43 +0000

Revision: 6097
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6097
Author:   chicares
Date:     2015-01-23 15:13:42 +0000 (Fri, 23 Jan 2015)
Log Message:
-----------
Refactor: use output_file_existence_checker

Modified Paths:
--------------
    lmi/trunk/ChangeLog
    lmi/trunk/wx_test_paste_census.cpp

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2015-01-23 15:08:13 UTC (rev 6096)
+++ lmi/trunk/ChangeLog 2015-01-23 15:13:42 UTC (rev 6097)
@@ -35587,3 +35587,9 @@
 Implement rectified test specification. See:
   http://lists.nongnu.org/archive/html/lmi/2014-12/msg00096.html
 
+20150123T1513Z <address@hidden> [516]
+
+  wx_test_paste_census.cpp
+Refactor: use output_file_existence_checker. See:
+  http://lists.nongnu.org/archive/html/lmi/2014-12/msg00096.html
+

Modified: lmi/trunk/wx_test_paste_census.cpp
===================================================================
--- lmi/trunk/wx_test_paste_census.cpp  2015-01-23 15:08:13 UTC (rev 6096)
+++ lmi/trunk/wx_test_paste_census.cpp  2015-01-23 15:13:42 UTC (rev 6097)
@@ -31,6 +31,7 @@
 #include "mvc_controller.hpp"
 #include "wx_test_case.hpp"
 #include "wx_test_new.hpp"
+#include "wx_test_output.hpp"
 #include "wx_utility.hpp"
 
 #include <wx/app.h>
@@ -425,7 +426,8 @@
         );
 
     // Finally save the census with the pasted data for later inspection.
-    wxString const census_file_name = 
get_test_file_path_for("PasteCensus.cns");
+    std::string const census_file_name = 
get_test_file_path_for("PasteCensus.cns");
+    output_file_existence_checker output_cns(census_file_name);
 
     ui.Char('a', wxMOD_CONTROL);    // "File|Save as"
     wxTEST_DIALOG
@@ -433,7 +435,7 @@
         ,wxExpectModal<wxFileDialog>(census_file_name)
         );
 
-    LMI_ASSERT(wxFileExists(census_file_name));
+    LMI_ASSERT(output_cns.exists());
 
     census.close();
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]