Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit 291bb3f

Browse files
author
Brian Melton
committed
Adding tests to confirm manual extensions exist
1 parent 84312b3 commit 291bb3f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package com.microsoft.graph.extensions;
2+
3+
import android.test.AndroidTestCase;
4+
5+
import junit.framework.Assert;
6+
7+
/**
8+
* These tests verify that manually-written classes are preserved from version-to-version.
9+
*
10+
* @author brianmel
11+
*/
12+
public class ManualExtensionsTests extends AndroidTestCase {
13+
14+
public void testChunkedUploadRequestPreserved() {
15+
final String className = "com.microsoft.graph.extensions.ChunkedUploadRequest";
16+
try {
17+
Class.forName(className);
18+
} catch (ClassNotFoundException e) {
19+
Assert.fail("Extension [" + className + "] not found.");
20+
}
21+
}
22+
23+
public void testChunkedUploadResultPreserved() {
24+
final String className = "com.microsoft.graph.extensions.ChunkedUploadResult";
25+
try {
26+
Class.forName(className);
27+
} catch (ClassNotFoundException e) {
28+
Assert.fail("Extension [" + className + "] not found.");
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)