Merge "Un-deprecated Android mock testing APIs" into nyc-dev am: dac0708ea0
am: 347d660ce2
* commit '347d660ce25e72835aefc794b584c07d32ae5264':
Un-deprecated Android mock testing APIs
Change-Id: Ibf99d4b9812a92ff9dc24518540bbb7725c3c932
This commit is contained in:
@@ -37925,7 +37925,7 @@ package android.test.mock {
|
|||||||
ctor public MockApplication();
|
ctor public MockApplication();
|
||||||
}
|
}
|
||||||
|
|
||||||
public deprecated class MockContentProvider extends android.content.ContentProvider {
|
public class MockContentProvider extends android.content.ContentProvider {
|
||||||
ctor protected MockContentProvider();
|
ctor protected MockContentProvider();
|
||||||
ctor public MockContentProvider(android.content.Context);
|
ctor public MockContentProvider(android.content.Context);
|
||||||
ctor public MockContentProvider(android.content.Context, java.lang.String, java.lang.String, android.content.pm.PathPermission[]);
|
ctor public MockContentProvider(android.content.Context, java.lang.String, java.lang.String, android.content.pm.PathPermission[]);
|
||||||
@@ -37937,13 +37937,13 @@ package android.test.mock {
|
|||||||
method public int update(android.net.Uri, android.content.ContentValues, java.lang.String, java.lang.String[]);
|
method public int update(android.net.Uri, android.content.ContentValues, java.lang.String, java.lang.String[]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public deprecated class MockContentResolver extends android.content.ContentResolver {
|
public class MockContentResolver extends android.content.ContentResolver {
|
||||||
ctor public MockContentResolver();
|
ctor public MockContentResolver();
|
||||||
ctor public MockContentResolver(android.content.Context);
|
ctor public MockContentResolver(android.content.Context);
|
||||||
method public void addProvider(java.lang.String, android.content.ContentProvider);
|
method public void addProvider(java.lang.String, android.content.ContentProvider);
|
||||||
}
|
}
|
||||||
|
|
||||||
public deprecated class MockContext extends android.content.Context {
|
public class MockContext extends android.content.Context {
|
||||||
ctor public MockContext();
|
ctor public MockContext();
|
||||||
method public boolean bindService(android.content.Intent, android.content.ServiceConnection, int);
|
method public boolean bindService(android.content.Intent, android.content.ServiceConnection, int);
|
||||||
method public int checkCallingOrSelfPermission(java.lang.String);
|
method public int checkCallingOrSelfPermission(java.lang.String);
|
||||||
|
|||||||
@@ -40911,7 +40911,7 @@ package android.test.mock {
|
|||||||
ctor public MockApplication();
|
ctor public MockApplication();
|
||||||
}
|
}
|
||||||
|
|
||||||
public deprecated class MockContentProvider extends android.content.ContentProvider {
|
public class MockContentProvider extends android.content.ContentProvider {
|
||||||
ctor protected MockContentProvider();
|
ctor protected MockContentProvider();
|
||||||
ctor public MockContentProvider(android.content.Context);
|
ctor public MockContentProvider(android.content.Context);
|
||||||
ctor public MockContentProvider(android.content.Context, java.lang.String, java.lang.String, android.content.pm.PathPermission[]);
|
ctor public MockContentProvider(android.content.Context, java.lang.String, java.lang.String, android.content.pm.PathPermission[]);
|
||||||
@@ -40923,13 +40923,13 @@ package android.test.mock {
|
|||||||
method public int update(android.net.Uri, android.content.ContentValues, java.lang.String, java.lang.String[]);
|
method public int update(android.net.Uri, android.content.ContentValues, java.lang.String, java.lang.String[]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public deprecated class MockContentResolver extends android.content.ContentResolver {
|
public class MockContentResolver extends android.content.ContentResolver {
|
||||||
ctor public MockContentResolver();
|
ctor public MockContentResolver();
|
||||||
ctor public MockContentResolver(android.content.Context);
|
ctor public MockContentResolver(android.content.Context);
|
||||||
method public void addProvider(java.lang.String, android.content.ContentProvider);
|
method public void addProvider(java.lang.String, android.content.ContentProvider);
|
||||||
}
|
}
|
||||||
|
|
||||||
public deprecated class MockContext extends android.content.Context {
|
public class MockContext extends android.content.Context {
|
||||||
ctor public MockContext();
|
ctor public MockContext();
|
||||||
method public boolean bindService(android.content.Intent, android.content.ServiceConnection, int);
|
method public boolean bindService(android.content.Intent, android.content.ServiceConnection, int);
|
||||||
method public int checkCallingOrSelfPermission(java.lang.String);
|
method public int checkCallingOrSelfPermission(java.lang.String);
|
||||||
|
|||||||
@@ -38003,7 +38003,7 @@ package android.test.mock {
|
|||||||
ctor public MockApplication();
|
ctor public MockApplication();
|
||||||
}
|
}
|
||||||
|
|
||||||
public deprecated class MockContentProvider extends android.content.ContentProvider {
|
public class MockContentProvider extends android.content.ContentProvider {
|
||||||
ctor protected MockContentProvider();
|
ctor protected MockContentProvider();
|
||||||
ctor public MockContentProvider(android.content.Context);
|
ctor public MockContentProvider(android.content.Context);
|
||||||
ctor public MockContentProvider(android.content.Context, java.lang.String, java.lang.String, android.content.pm.PathPermission[]);
|
ctor public MockContentProvider(android.content.Context, java.lang.String, java.lang.String, android.content.pm.PathPermission[]);
|
||||||
@@ -38015,13 +38015,13 @@ package android.test.mock {
|
|||||||
method public int update(android.net.Uri, android.content.ContentValues, java.lang.String, java.lang.String[]);
|
method public int update(android.net.Uri, android.content.ContentValues, java.lang.String, java.lang.String[]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public deprecated class MockContentResolver extends android.content.ContentResolver {
|
public class MockContentResolver extends android.content.ContentResolver {
|
||||||
ctor public MockContentResolver();
|
ctor public MockContentResolver();
|
||||||
ctor public MockContentResolver(android.content.Context);
|
ctor public MockContentResolver(android.content.Context);
|
||||||
method public void addProvider(java.lang.String, android.content.ContentProvider);
|
method public void addProvider(java.lang.String, android.content.ContentProvider);
|
||||||
}
|
}
|
||||||
|
|
||||||
public deprecated class MockContext extends android.content.Context {
|
public class MockContext extends android.content.Context {
|
||||||
ctor public MockContext();
|
ctor public MockContext();
|
||||||
method public boolean bindService(android.content.Intent, android.content.ServiceConnection, int);
|
method public boolean bindService(android.content.Intent, android.content.ServiceConnection, int);
|
||||||
method public int checkCallingOrSelfPermission(java.lang.String);
|
method public int checkCallingOrSelfPermission(java.lang.String);
|
||||||
|
|||||||
@@ -41,12 +41,7 @@ import java.util.ArrayList;
|
|||||||
* Mock implementation of ContentProvider. All methods are non-functional and throw
|
* Mock implementation of ContentProvider. All methods are non-functional and throw
|
||||||
* {@link java.lang.UnsupportedOperationException}. Tests can extend this class to
|
* {@link java.lang.UnsupportedOperationException}. Tests can extend this class to
|
||||||
* implement behavior needed for tests.
|
* implement behavior needed for tests.
|
||||||
*
|
|
||||||
* @deprecated Use a mocking framework like <a href="https://github.com/mockito/mockito">Mockito</a>.
|
|
||||||
* New tests should be written using the
|
|
||||||
* <a href="{@docRoot}tools/testing-support-library/index.html">Android Testing Support Library</a>.
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public class MockContentProvider extends ContentProvider {
|
public class MockContentProvider extends ContentProvider {
|
||||||
/*
|
/*
|
||||||
* Note: if you add methods to ContentProvider, you must add similar methods to
|
* Note: if you add methods to ContentProvider, you must add similar methods to
|
||||||
|
|||||||
@@ -49,12 +49,7 @@ import java.util.Map;
|
|||||||
* <p>For more information about application testing, read the
|
* <p>For more information about application testing, read the
|
||||||
* <a href="{@docRoot}guide/topics/testing/index.html">Testing</a> developer guide.</p>
|
* <a href="{@docRoot}guide/topics/testing/index.html">Testing</a> developer guide.</p>
|
||||||
* </div>
|
* </div>
|
||||||
*
|
|
||||||
* @deprecated Use a mocking framework like <a href="https://github.com/mockito/mockito">Mockito</a>.
|
|
||||||
* New tests should be written using the
|
|
||||||
* <a href="{@docRoot}tools/testing-support-library/index.html">Android Testing Support Library</a>.
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public class MockContentResolver extends ContentResolver {
|
public class MockContentResolver extends ContentResolver {
|
||||||
Map<String, ContentProvider> mProviders;
|
Map<String, ContentProvider> mProviders;
|
||||||
|
|
||||||
|
|||||||
@@ -55,12 +55,7 @@ import java.io.InputStream;
|
|||||||
* A mock {@link android.content.Context} class. All methods are non-functional and throw
|
* A mock {@link android.content.Context} class. All methods are non-functional and throw
|
||||||
* {@link java.lang.UnsupportedOperationException}. You can use this to inject other dependencies,
|
* {@link java.lang.UnsupportedOperationException}. You can use this to inject other dependencies,
|
||||||
* mocks, or monitors into the classes you are testing.
|
* mocks, or monitors into the classes you are testing.
|
||||||
*
|
|
||||||
* @deprecated Use a mocking framework like <a href="https://github.com/mockito/mockito">Mockito</a>.
|
|
||||||
* New tests should be written using the
|
|
||||||
* <a href="{@docRoot}tools/testing-support-library/index.html">Android Testing Support Library</a>.
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public class MockContext extends Context {
|
public class MockContext extends Context {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user