Replace Nino by Standalone whenever it is relevant.
This commit is contained in:
@@ -13,11 +13,17 @@ feature {NONE} -- Initialization
|
||||
|
||||
make
|
||||
-- Initialize `Current'.
|
||||
local
|
||||
base_url: detachable READABLE_STRING_8
|
||||
do
|
||||
print ("Test Server that could be used for autotest%N")
|
||||
-- base_url := "/test/"
|
||||
base_url := {TEST_SETTINGS}.base_url
|
||||
if base_url.is_whitespace then
|
||||
base_url := Void
|
||||
end
|
||||
|
||||
set_service_option ("port", 9091)
|
||||
set_service_option ("port", {TEST_SETTINGS}.port_number)
|
||||
set_service_option ("base", base_url)
|
||||
set_service_option ("verbose", True)
|
||||
make_and_launch
|
||||
end
|
||||
|
||||
@@ -35,6 +35,13 @@ feature -- Helper
|
||||
end
|
||||
|
||||
base_url: detachable STRING
|
||||
once
|
||||
Result := {TEST_SETTINGS}.base_url
|
||||
|
||||
if Result.is_whitespace then
|
||||
Result := Void
|
||||
end
|
||||
end
|
||||
|
||||
test_url (a_query_url: READABLE_STRING_8): READABLE_STRING_8
|
||||
local
|
||||
|
||||
16
library/server/wsf/tests/server/test_settings.e
Normal file
16
library/server/wsf/tests/server/test_settings.e
Normal file
@@ -0,0 +1,16 @@
|
||||
note
|
||||
description: "Summary description for {TEST_SETTINGS}."
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
TEST_SETTINGS
|
||||
|
||||
feature -- Access
|
||||
|
||||
port_number: INTEGER = 9091
|
||||
|
||||
base_url: STRING = "" --"/test/"
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user