Skip to content

Commit f0b47c9

Browse files
author
Caitlin Bales (MSFT)
committed
Update failing unit tests
- Updated "getItemByPath" to "itemByPath" - Moved location for ManualExtensionsTests - Added the @ignore tag to the CUstomRequestTests as it is a functional test, which should not be run automatically Fixes failing tests reported in #2
1 parent 0871cea commit f0b47c9

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/test/java/com/microsoft/graph/extensions/IDriveItemRequestBuilderTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
public class IDriveItemRequestBuilderTests {
1212

1313
@Test
14-
public void testGetItemWithPath() throws Exception {
15-
final Method getItemWithPath = IDriveItemRequestBuilder.class.getDeclaredMethod("getItemWithPath", String.class);
16-
assertNotNull(getItemWithPath);
17-
assertEquals(IDriveItemRequestBuilder.class, getItemWithPath.getReturnType());
14+
public void testitemWithPath() throws Exception {
15+
final Method itemWithPath = IDriveItemRequestBuilder.class.getDeclaredMethod("itemWithPath", String.class);
16+
assertNotNull(itemWithPath);
17+
assertEquals(IDriveItemRequestBuilder.class, itemWithPath.getReturnType());
1818
}
1919

2020
}

src/test/java/com/microsoft/graph/extensions/ManualExtensionsTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class ManualExtensionsTests {
1313

1414
@Test
1515
public void testChunkedUploadRequestPreserved() {
16-
final String className = "com.microsoft.graph.extensions.ChunkedUploadRequest";
16+
final String className = "com.microsoft.graph.requests.extensions.ChunkedUploadRequest";
1717
try {
1818
Class.forName(className);
1919
} catch (ClassNotFoundException e) {
@@ -23,7 +23,7 @@ public void testChunkedUploadRequestPreserved() {
2323

2424
@Test
2525
public void testChunkedUploadResultPreserved() {
26-
final String className = "com.microsoft.graph.extensions.ChunkedUploadResult";
26+
final String className = "com.microsoft.graph.requests.extensions.ChunkedUploadResult";
2727
try {
2828
Class.forName(className);
2929
} catch (ClassNotFoundException e) {

src/test/java/com/microsoft/graph/functional/CustomRequestTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import static org.junit.Assert.assertEquals;
44

55
import org.junit.Before;
6+
import org.junit.Ignore;
67
import org.junit.Test;
78

89
import com.google.gson.JsonObject;
@@ -11,6 +12,7 @@
1112
/**
1213
* Tests for sending custom requests using the SDK
1314
*/
15+
@Ignore
1416
public class CustomRequestTests {
1517
private TestBase testBase;
1618

0 commit comments

Comments
 (0)