Skip to content

Commit

Permalink
Merge branch 'dev' into feature/v3
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Mar 15, 2021
2 parents b55c815 + 428a13a commit eb3b691
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/test/java/com/microsoft/graph/functional/UserTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;

import java.io.File;
import java.io.FileInputStream;
Expand Down Expand Up @@ -206,8 +207,8 @@ public void run() {
}
}

@Test
public void emptyPostContentType() {
@Test
public void emptyPostContentTypeIsNotReset() {
final String contentTypeValue = "application/json";
final HeaderOption ctype = new HeaderOption("Content-Type", contentTypeValue);
final ArrayList<Option> options = new ArrayList<>();
Expand All @@ -219,6 +220,15 @@ public void emptyPostContentType() {
.getHttpRequest();
assertEquals(contentTypeValue, request.body().contentType().toString());
}
@Test
public void emptyPostContentTypeIsNotSet() {
final Request request = graphServiceClient.me()
.revokeSignInSessions()
.buildRequest()
.withHttpMethod(HttpMethod.POST)
.getHttpRequest();
assertNull(request.body().contentType());
}
@Test
public void castTest() {
final GroupCollectionPage groups = graphServiceClient.groups().buildRequest().top(1).get();
Expand Down

0 comments on commit eb3b691

Please sign in to comment.