File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Framework/DataHandling/test Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ using testing::NiceMock;
22
22
using testing::Return;
23
23
24
24
namespace {
25
+ const std::string URL_PREFIX = " http://journals.isis.cclrc.ac.uk/jv" ;
26
+
25
27
static constexpr const char *emptyFile = " " ;
26
28
27
29
static constexpr const char *badFile = " <NXroot" ;
@@ -93,14 +95,14 @@ class ISISJournalTest : public CxxTest::TestSuite {
93
95
94
96
void test_getRuns_requests_correct_url () {
95
97
auto journal = makeJournal ();
96
- auto url = std::string ( " http://data.isis.rl.ac.uk/journals/ ndxinter/journal_19_4.xml" ) ;
98
+ auto url = URL_PREFIX + " / ndxinter/journal_19_4.xml" ;
97
99
EXPECT_CALL (*m_internetHelper, sendRequestProxy (url, _)).Times (1 );
98
100
journal.getRuns ();
99
101
}
100
102
101
103
void test_getCycleNames_requests_correct_url () {
102
104
auto journal = makeJournal (indexFile);
103
- auto url = std::string ( " http://data.isis.rl.ac.uk/journals/ ndxinter/journal_main.xml" ) ;
105
+ auto url = URL_PREFIX + " / ndxinter/journal_main.xml" ;
104
106
EXPECT_CALL (*m_internetHelper, sendRequestProxy (url, _)).Times (1 );
105
107
journal.getCycleNames ();
106
108
}
You can’t perform that action at this time.
0 commit comments