Skip to content

Commit 629ea54

Browse files
author
Michael Hallett
committed
Changed the port number on the integration tests to 8888 from 8080
1 parent cda4d4c commit 629ea54

11 files changed

+33
-33
lines changed

RestSharp.IntegrationTests/AsyncRequestBodyTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace RestSharp.IntegrationTests
88
{
99
public class AsyncRequestBodyTests
1010
{
11-
private const string BASE_URL = "http://localhost:8080/";
11+
private const string BASE_URL = "http://localhost:8888/";
1212

1313
[Fact]
1414
public void Can_Not_Be_Added_To_GET_Request()

RestSharp.IntegrationTests/AsyncTests.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class AsyncTests
1212
[Fact]
1313
public void Can_Perform_GET_Async()
1414
{
15-
const string baseUrl = "http://localhost:8080/";
15+
const string baseUrl = "http://localhost:8888/";
1616
const string val = "Basic async test";
1717

1818
var resetEvent = new ManualResetEvent(false);
@@ -36,7 +36,7 @@ public void Can_Perform_GET_Async()
3636
[Fact]
3737
public void Can_Perform_GET_Async_Without_Async_Handle()
3838
{
39-
const string baseUrl = "http://localhost:8080/";
39+
const string baseUrl = "http://localhost:8888/";
4040
const string val = "Basic async test";
4141

4242
var resetEvent = new ManualResetEvent(false);
@@ -60,7 +60,7 @@ public void Can_Perform_GET_Async_Without_Async_Handle()
6060
[Fact]
6161
public void Can_Perform_GET_TaskAsync()
6262
{
63-
const string baseUrl = "http://localhost:8080/";
63+
const string baseUrl = "http://localhost:8888/";
6464
const string val = "Basic async task test";
6565

6666
using (SimpleServer.Create(baseUrl, Handlers.EchoValue(val)))
@@ -79,7 +79,7 @@ public void Can_Perform_GET_TaskAsync()
7979
[Fact]
8080
public void Can_Handle_Exception_Thrown_By_OnBeforeDeserialization_Handler()
8181
{
82-
const string baseUrl = "http://localhost:8080/";
82+
const string baseUrl = "http://localhost:8888/";
8383
const string ExceptionMessage = "Thrown from OnBeforeDeserialization";
8484

8585
using (SimpleServer.Create(baseUrl, Handlers.Generic<ResponseHandler>()))
@@ -117,7 +117,7 @@ public void Can_Handle_Exception_Thrown_By_OnBeforeDeserialization_Handler()
117117
[Fact]
118118
public void Can_Perform_ExecuteGetTaskAsync_With_Response_Type()
119119
{
120-
const string baseUrl = "http://localhost:8080/";
120+
const string baseUrl = "http://localhost:8888/";
121121

122122
using (SimpleServer.Create(baseUrl, Handlers.Generic<ResponseHandler>()))
123123
{
@@ -134,7 +134,7 @@ public void Can_Perform_ExecuteGetTaskAsync_With_Response_Type()
134134
[Fact]
135135
public void Can_Perform_GetTaskAsync_With_Response_Type()
136136
{
137-
const string baseUrl = "http://localhost:8080/";
137+
const string baseUrl = "http://localhost:8888/";
138138

139139
using (SimpleServer.Create(baseUrl, Handlers.Generic<ResponseHandler>()))
140140
{
@@ -151,7 +151,7 @@ public void Can_Perform_GetTaskAsync_With_Response_Type()
151151
[Fact]
152152
public void Can_Cancel_GET_TaskAsync()
153153
{
154-
const string baseUrl = "http://localhost:8080/";
154+
const string baseUrl = "http://localhost:8888/";
155155
const string val = "Basic async task test";
156156

157157
using (SimpleServer.Create(baseUrl, Handlers.EchoValue(val)))
@@ -170,7 +170,7 @@ public void Can_Cancel_GET_TaskAsync()
170170
[Fact]
171171
public void Can_Cancel_GET_TaskAsync_With_Response_Type()
172172
{
173-
const string baseUrl = "http://localhost:8080/";
173+
const string baseUrl = "http://localhost:8888/";
174174
const string val = "Basic async task test";
175175

176176
using (SimpleServer.Create(baseUrl, Handlers.EchoValue(val)))
@@ -189,7 +189,7 @@ public void Can_Cancel_GET_TaskAsync_With_Response_Type()
189189
[Fact]
190190
public void Handles_GET_Request_Errors_TaskAsync()
191191
{
192-
const string baseUrl = "http://localhost:8080/";
192+
const string baseUrl = "http://localhost:8888/";
193193

194194
using (SimpleServer.Create(baseUrl, UrlToStatusCodeHandler))
195195
{
@@ -206,7 +206,7 @@ public void Handles_GET_Request_Errors_TaskAsync()
206206
[Fact]
207207
public void Handles_GET_Request_Errors_TaskAsync_With_Response_Type()
208208
{
209-
const string baseUrl = "http://localhost:8080/";
209+
const string baseUrl = "http://localhost:8888/";
210210

211211
using (SimpleServer.Create(baseUrl, UrlToStatusCodeHandler))
212212
{
@@ -223,7 +223,7 @@ public void Handles_GET_Request_Errors_TaskAsync_With_Response_Type()
223223
[Fact]
224224
public void Can_Timeout_GET_TaskAsync()
225225
{
226-
const string baseUrl = "http://localhost:8080/";
226+
const string baseUrl = "http://localhost:8888/";
227227

228228
using (SimpleServer.Create(baseUrl, Handlers.Generic<ResponseHandler>()))
229229
{
@@ -248,7 +248,7 @@ public void Can_Timeout_GET_TaskAsync()
248248
[Fact]
249249
public void Can_Timeout_PUT_TaskAsync()
250250
{
251-
const string baseUrl = "http://localhost:8080/";
251+
const string baseUrl = "http://localhost:8888/";
252252

253253
using (SimpleServer.Create(baseUrl, Handlers.Generic<ResponseHandler>()))
254254
{

RestSharp.IntegrationTests/AuthenticationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class AuthenticationTests
1414
[Fact]
1515
public void Can_Authenticate_With_Basic_Http_Auth()
1616
{
17-
const string baseUrl = "http://localhost:8080/";
17+
const string baseUrl = "http://localhost:8888/";
1818
using (SimpleServer.Create(baseUrl, UsernamePasswordEchoHandler))
1919
{
2020
var client = new RestClient(baseUrl)

RestSharp.IntegrationTests/CompressionTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class CompressionTests
1111
[Fact]
1212
public void Can_Handle_Gzip_Compressed_Content()
1313
{
14-
const string baseUrl = "http://localhost:8080/";
14+
const string baseUrl = "http://localhost:8888/";
1515

1616
using (SimpleServer.Create(baseUrl, GzipEchoValue("This is some gzipped content")))
1717
{
@@ -26,7 +26,7 @@ public void Can_Handle_Gzip_Compressed_Content()
2626
[Fact]
2727
public void Can_Handle_Deflate_Compressed_Content()
2828
{
29-
const string baseUrl = "http://localhost:8080/";
29+
const string baseUrl = "http://localhost:8888/";
3030

3131
using (SimpleServer.Create(baseUrl, DeflateEchoValue("This is some deflated content")))
3232
{
@@ -41,7 +41,7 @@ public void Can_Handle_Deflate_Compressed_Content()
4141
[Fact]
4242
public void Can_Handle_Uncompressed_Content()
4343
{
44-
const string baseUrl = "http://localhost:8080/";
44+
const string baseUrl = "http://localhost:8888/";
4545

4646
using (SimpleServer.Create(baseUrl, Handlers.EchoValue("This is some sample content")))
4747
{

RestSharp.IntegrationTests/FileTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class FileTests
1010
[Fact]
1111
public void Handles_Binary_File_Download()
1212
{
13-
const string baseUrl = "http://localhost:8080/";
13+
const string baseUrl = "http://localhost:8888/";
1414

1515
using (SimpleServer.Create(baseUrl, Handlers.FileHandler))
1616
{
@@ -26,7 +26,7 @@ public void Handles_Binary_File_Download()
2626
[Fact]
2727
public void Writes_Response_To_Stream()
2828
{
29-
const string baseUrl = "http://localhost:8080/";
29+
const string baseUrl = "http://localhost:8888/";
3030

3131
using (SimpleServer.Create(baseUrl, Handlers.FileHandler))
3232
{

RestSharp.IntegrationTests/Helpers/Handlers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static Action<HttpListenerContext> EchoValue(string value)
2525
}
2626

2727
/// <summary>
28-
/// Response to a request like this: http://localhost:8080/assets/koala.jpg
28+
/// Response to a request like this: http://localhost:8888/assets/koala.jpg
2929
/// by streaming the file located at "assets\koala.jpg" back to the client.
3030
/// </summary>
3131
public static void FileHandler(HttpListenerContext context)
@@ -39,7 +39,7 @@ public static void FileHandler(HttpListenerContext context)
3939
/// <summary>
4040
/// T should be a class that implements methods whose names match the urls being called, and take one parameter, an HttpListenerContext.
4141
/// e.g.
42-
/// urls exercised: "http://localhost:8080/error" and "http://localhost:8080/get_list"
42+
/// urls exercised: "http://localhost:8888/error" and "http://localhost:8888/get_list"
4343
///
4444
/// class MyHandler
4545
/// {

RestSharp.IntegrationTests/MultipartFormDataTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class MultipartFormDataTests
1010
[Fact]
1111
public void MultipartFormDataAsync()
1212
{
13-
const string baseUrl = "http://localhost:8080/";
13+
const string baseUrl = "http://localhost:8888/";
1414

1515
using (SimpleServer.Create(baseUrl, EchoHandler))
1616
{
@@ -32,8 +32,8 @@ public void MultipartFormDataAsync()
3232
[Fact]
3333
public void MultipartFormData()
3434
{
35-
//const string baseUrl = "http://localhost:8080/";
36-
const string baseUrl = "http://localhost:8080/";
35+
//const string baseUrl = "http://localhost:8888/";
36+
const string baseUrl = "http://localhost:8888/";
3737

3838
using (SimpleServer.Create(baseUrl, EchoHandler))
3939
{

RestSharp.IntegrationTests/NonProtocolExceptionHandlingTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void Handles_Non_Existent_Domain()
2929
[Fact]
3030
public void Handles_Server_Timeout_Error()
3131
{
32-
const string baseUrl = "http://localhost:8080/";
32+
const string baseUrl = "http://localhost:8888/";
3333

3434
using (SimpleServer.Create(baseUrl, TimeoutHandler))
3535
{
@@ -46,7 +46,7 @@ public void Handles_Server_Timeout_Error()
4646
[Fact]
4747
public void Handles_Server_Timeout_Error_Async()
4848
{
49-
const string baseUrl = "http://localhost:8080/";
49+
const string baseUrl = "http://localhost:8888/";
5050
var resetEvent = new ManualResetEvent(false);
5151

5252
using (SimpleServer.Create(baseUrl, TimeoutHandler))
@@ -75,7 +75,7 @@ public void Handles_Server_Timeout_Error_Async()
7575
[Fact]
7676
public void Handles_Server_Timeout_Error_With_Deserializer()
7777
{
78-
const string baseUrl = "http://localhost:8080/";
78+
const string baseUrl = "http://localhost:8888/";
7979

8080
using (SimpleServer.Create(baseUrl, TimeoutHandler))
8181
{

RestSharp.IntegrationTests/RequestBodyTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace RestSharp.IntegrationTests
77
{
88
public class RequestBodyTests
99
{
10-
private const string BASE_URL = "http://localhost:8080/";
10+
private const string BASE_URL = "http://localhost:8888/";
1111

1212
[Fact]
1313
public void Can_Not_Be_Added_To_GET_Request()

RestSharp.IntegrationTests/RequestHeadTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace RestSharp.IntegrationTests
88
{
99
public class RequestHeadTests
1010
{
11-
private const string BASE_URL = "http://localhost:8080/";
11+
private const string BASE_URL = "http://localhost:8888/";
1212

1313
public RequestHeadTests()
1414
{

0 commit comments

Comments
 (0)