Skip to content

Commit 2b532c0

Browse files
committed
- code linting
1 parent cde5553 commit 2b532c0

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/test/java/com/microsoft/graph/content/BatchRequestContentTest.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
import okhttp3.Response;
4040
import okhttp3.ResponseBody;
4141

42-
public class BatchRequestContentTest {
42+
class BatchRequestContentTest {
4343

4444
String testurl = "http://graph.microsoft.com/me";
4545

4646
@Test
47-
public void testBatchRequestContentCreation() throws MalformedURLException {
47+
void testBatchRequestContentCreation() throws MalformedURLException {
4848
BatchRequestContent requestContent = new BatchRequestContent();
4949
for (int i = 0; i < 5; i++) {
5050
IHttpRequest requestStep = mock(IHttpRequest.class);
@@ -55,7 +55,7 @@ public void testBatchRequestContentCreation() throws MalformedURLException {
5555
}
5656

5757
@Test
58-
public void testGetBatchRequestContent() throws MalformedURLException {
58+
void testGetBatchRequestContent() throws MalformedURLException {
5959
IHttpRequest requestStep = mock(IHttpRequest.class);
6060
when(requestStep.getRequestUrl()).thenReturn(new URL(testurl));
6161
BatchRequestContent requestContent = new BatchRequestContent();
@@ -67,7 +67,7 @@ public void testGetBatchRequestContent() throws MalformedURLException {
6767
}
6868

6969
@Test
70-
public void testGetBatchRequestContentWithHeader() throws MalformedURLException {
70+
void testGetBatchRequestContentWithHeader() throws MalformedURLException {
7171
IHttpRequest requestStep = mock(IHttpRequest.class);
7272
when(requestStep.getRequestUrl()).thenReturn(new URL(testurl));
7373
when(requestStep.getHeaders()).thenReturn(Arrays.asList(new HeaderOption("testkey", "testvalue")));
@@ -80,7 +80,7 @@ public void testGetBatchRequestContentWithHeader() throws MalformedURLException
8080
}
8181

8282
@Test
83-
public void testRemoveBatchRequesStepWithId() throws MalformedURLException {
83+
void testRemoveBatchRequesStepWithId() throws MalformedURLException {
8484
IHttpRequest requestStep = mock(IHttpRequest.class);
8585
when(requestStep.getRequestUrl()).thenReturn(new URL(testurl));
8686
BatchRequestContent requestContent = new BatchRequestContent();
@@ -92,7 +92,7 @@ public void testRemoveBatchRequesStepWithId() throws MalformedURLException {
9292
}
9393

9494
@Test
95-
public void testRemoveBatchRequesStepWithIdByAddingMultipleBatchSteps() throws MalformedURLException {
95+
void testRemoveBatchRequesStepWithIdByAddingMultipleBatchSteps() throws MalformedURLException {
9696
IHttpRequest requestStep = mock(IHttpRequest.class);
9797
when(requestStep.getRequestUrl()).thenReturn(new URL(testurl));
9898
BatchRequestContent requestContent = new BatchRequestContent();
@@ -111,7 +111,7 @@ public void testRemoveBatchRequesStepWithIdByAddingMultipleBatchSteps() throws M
111111
}
112112

113113
@Test
114-
public void defensiveProgrammingTests() {
114+
void defensiveProgrammingTests() {
115115
assertThrows(NullPointerException.class, () -> {
116116
new BatchRequestContent().addBatchRequestStep(null);
117117
}, "should throw argument exception");
@@ -137,7 +137,7 @@ public void defensiveProgrammingTests() {
137137
}
138138

139139
@Test
140-
public void executeBatchTest() throws Throwable {
140+
void executeBatchTest() throws Throwable {
141141
final BatchRequestContent content = new BatchRequestContent();
142142
IHttpRequest requestStep = mock(IHttpRequest.class);
143143
when(requestStep.getRequestUrl()).thenReturn(new URL(testurl));
@@ -166,7 +166,7 @@ public void executeBatchTest() throws Throwable {
166166
}
167167

168168
@Test
169-
public void usesHttpMethodFromRequestIfAlreadySet() throws MalformedURLException {
169+
void usesHttpMethodFromRequestIfAlreadySet() throws MalformedURLException {
170170
IHttpRequest requestStep = mock(IHttpRequest.class);
171171
when(requestStep.getRequestUrl()).thenReturn(new URL(testurl));
172172
when(requestStep.getHttpMethod()).thenReturn(HttpMethod.DELETE);
@@ -176,13 +176,13 @@ public void usesHttpMethodFromRequestIfAlreadySet() throws MalformedURLException
176176
}
177177

178178
@Test
179-
public void doesNotThrowWhenTryingToRemoveRequestFromNull() {
179+
void doesNotThrowWhenTryingToRemoveRequestFromNull() {
180180
final BatchRequestContent batchRequest = new BatchRequestContent();
181181
batchRequest.removeBatchRequestStepWithId("id");
182182
}
183183

184184
@Test
185-
public void doesNotRemoveDependsOnWhenNotEmpty() throws MalformedURLException {
185+
void doesNotRemoveDependsOnWhenNotEmpty() throws MalformedURLException {
186186
IHttpRequest requestStep = mock(IHttpRequest.class);
187187
when(requestStep.getRequestUrl()).thenReturn(new URL(testurl));
188188
final BatchRequestContent batchRequest = new BatchRequestContent();
@@ -196,7 +196,7 @@ public void doesNotRemoveDependsOnWhenNotEmpty() throws MalformedURLException {
196196
}
197197

198198
@Test
199-
public void addsContentTypeForBodies() throws MalformedURLException {
199+
void addsContentTypeForBodies() throws MalformedURLException {
200200
IHttpRequest requestStep = mock(IHttpRequest.class);
201201
when(requestStep.getRequestUrl()).thenReturn(new URL(testurl));
202202
final BatchRequestContent batchRequest = new BatchRequestContent();
@@ -238,7 +238,7 @@ public AdditionalDataManager additionalDataManager() {
238238
assertEquals("application/octet-stream", step4.headers.get("content-type"));
239239
}
240240
@Test
241-
public void serializesAdditionalData() throws MalformedURLException {
241+
void serializesAdditionalData() throws MalformedURLException {
242242
IHttpRequest requestStep = mock(IHttpRequest.class);
243243
when(requestStep.getRequestUrl()).thenReturn(new URL(testurl));
244244
final BatchRequestContent batchRequest = new BatchRequestContent();

0 commit comments

Comments
 (0)