-
Notifications
You must be signed in to change notification settings - Fork 228
Expand file tree
/
Copy pathEqualityTest.java
More file actions
28 lines (23 loc) · 852 Bytes
/
EqualityTest.java
File metadata and controls
28 lines (23 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package test_locally.api.methods;
import com.slack.api.methods.MethodsCompletionException;
import com.slack.api.methods.SlackApiException;
import okhttp3.Protocol;
import okhttp3.Request;
import okhttp3.Response;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class EqualityTest {
@Test
public void test() {
Request request = new Request.Builder()
.url("https://www.example.com/")
.build();
Response response = new Response.Builder()
.request(request)
.code(200)
.protocol(Protocol.HTTP_1_1)
.message("")
.build();
assertEquals(new MethodsCompletionException(new SlackApiException(response, "")), new MethodsCompletionException(new SlackApiException(response, "")));
}
}