Skip to content

Commit 613cbe2

Browse files
authored
Merge pull request #93 from microsoftgraph/import-fix
Fixing import statements in java sdk test files
2 parents 87151c5 + 08a595b commit 613cbe2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+222
-228
lines changed

src/test/java/com/microsoft/graph/authentication/MockAuthenticationProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package com.microsoft.graph.authentication;
22

3-
import com.microsoft.graph.http.IHttpRequest;
4-
53
import java.util.concurrent.atomic.AtomicInteger;
64

5+
import com.microsoft.graph.http.IHttpRequest;
6+
77
/**
88
* Mock authenticationProvider {@see IAuthenticationProvider}
99
*/

src/test/java/com/microsoft/graph/concurrency/DefaultExecutorsTests.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
package com.microsoft.graph.concurrency;
22

3-
import static org.junit.Assert.*;
3+
import static org.junit.Assert.assertEquals;
4+
import static org.junit.Assert.assertFalse;
5+
import static org.junit.Assert.assertNotNull;
6+
import static org.junit.Assert.assertTrue;
7+
8+
import java.util.concurrent.CountDownLatch;
9+
import java.util.concurrent.TimeUnit;
10+
import java.util.concurrent.atomic.AtomicBoolean;
11+
import java.util.concurrent.atomic.AtomicLong;
12+
import java.util.concurrent.atomic.AtomicReference;
413

514
import org.junit.Assert;
615
import org.junit.Before;
@@ -9,12 +18,6 @@
918
import com.microsoft.graph.core.ClientException;
1019
import com.microsoft.graph.logger.MockLogger;
1120

12-
import java.util.concurrent.CountDownLatch;
13-
import java.util.concurrent.TimeUnit;
14-
import java.util.concurrent.atomic.AtomicBoolean;
15-
import java.util.concurrent.atomic.AtomicLong;
16-
import java.util.concurrent.atomic.AtomicReference;
17-
1821
/**
1922
* Test cases for {@see DefaultExecutors}
2023
*/

src/test/java/com/microsoft/graph/core/BaseClientTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
package com.microsoft.graph.core;
22

3-
import static org.junit.Assert.*;
3+
import static org.junit.Assert.assertEquals;
4+
import static org.junit.Assert.assertNotNull;
5+
import static org.junit.Assert.assertNull;
6+
import static org.junit.Assert.assertTrue;
47

5-
import org.junit.After;
68
import org.junit.Before;
79
import org.junit.Test;
810

src/test/java/com/microsoft/graph/core/ClientExceptionTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.microsoft.graph.core;
22

3-
import static org.junit.Assert.*;
3+
import static org.junit.Assert.assertEquals;
4+
import static org.junit.Assert.assertNotNull;
45

5-
import org.junit.After;
66
import org.junit.Before;
77
import org.junit.Test;
88

src/test/java/com/microsoft/graph/core/DefaultClientConfigTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package com.microsoft.graph.core;
22

3-
import static org.junit.Assert.*;
3+
import static org.junit.Assert.assertEquals;
4+
import static org.junit.Assert.assertNotNull;
45

5-
import org.junit.After;
66
import org.junit.Before;
77
import org.junit.Test;
88

9-
import java.util.logging.Logger;
10-
119
import com.microsoft.graph.authentication.IAuthenticationProvider;
1210
import com.microsoft.graph.authentication.MockAuthenticationProvider;
1311
import com.microsoft.graph.logger.DefaultLogger;

src/test/java/com/microsoft/graph/core/MockBaseClient.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
package com.microsoft.graph.core;
22

3-
import static org.junit.Assert.*;
4-
5-
import org.junit.After;
6-
import org.junit.Before;
7-
import org.junit.Test;
8-
93
import com.microsoft.graph.authentication.IAuthenticationProvider;
104
import com.microsoft.graph.concurrency.IExecutors;
115
import com.microsoft.graph.http.IHttpProvider;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.microsoft.graph.extensions;
22

3-
import static org.junit.Assert.*;
3+
import static org.junit.Assert.assertEquals;
4+
import static org.junit.Assert.assertNotNull;
45

56
import java.lang.reflect.Method;
67

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
package com.microsoft.graph.extensions;
22

3-
import static org.junit.Assert.*;
3+
import static org.junit.Assert.assertEquals;
4+
import static org.junit.Assert.assertNotNull;
5+
6+
import java.lang.reflect.Method;
47

5-
import org.junit.After;
6-
import org.junit.Before;
78
import org.junit.Test;
89

910
import com.microsoft.graph.requests.extensions.IThumbnailRequestBuilder;
1011
import com.microsoft.graph.requests.extensions.IThumbnailSetRequestBuilder;
1112

12-
import java.lang.reflect.Method;
13-
1413
public class IThumbnailSetRequestBuilderTests {
1514

1615
@Test

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
package com.microsoft.graph.extensions;
22

3-
import static org.junit.Assert.*;
4-
5-
import java.util.logging.Logger;
6-
7-
import org.junit.After;
83
import org.junit.Assert;
9-
import org.junit.Before;
104
import org.junit.Test;
115

126
public class ManualExtensionsTests {

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
package com.microsoft.graph.functional;
22

3-
import com.google.gson.JsonPrimitive;
4-
import com.microsoft.graph.models.extensions.ExtensionSchemaProperty;
5-
import com.microsoft.graph.models.extensions.Extension;
6-
import com.microsoft.graph.models.extensions.SchemaExtension;
3+
import static org.junit.Assert.assertEquals;
4+
5+
import java.util.ArrayList;
6+
import java.util.List;
77

88
import org.junit.Assert;
99
import org.junit.Before;
1010
import org.junit.Ignore;
1111
import org.junit.Test;
12-
import static org.junit.Assert.*;
1312

14-
import java.util.ArrayList;
15-
import java.util.List;
13+
import com.google.gson.JsonPrimitive;
14+
import com.microsoft.graph.models.extensions.Extension;
15+
import com.microsoft.graph.models.extensions.ExtensionSchemaProperty;
16+
import com.microsoft.graph.models.extensions.SchemaExtension;
1617

1718
@Ignore
1819
public class ODataTests {

0 commit comments

Comments
 (0)