PMD: Re-enable on test files
This used to be the case, which is why only minimal changes were required to bring it back. This also makes it take the same files that checkstyle does, which is more consistent.
This commit is contained in:
parent
2074718391
commit
a484c03816
@ -218,7 +218,7 @@ task pmd(type: Pmd, dependsOn: assembleDebug) {
|
|||||||
'java-migrating',
|
'java-migrating',
|
||||||
//'java-unnecessary', // too nitpicky with parenthesis
|
//'java-unnecessary', // too nitpicky with parenthesis
|
||||||
]
|
]
|
||||||
source 'src/main/java'
|
source 'src/main/java', 'src/test/java', 'src/androidTest/java'
|
||||||
include '**/*.java'
|
include '**/*.java'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,6 +27,9 @@ import android.os.Build;
|
|||||||
import android.test.mock.MockContentResolver;
|
import android.test.mock.MockContentResolver;
|
||||||
import android.test.mock.MockContext;
|
import android.test.mock.MockContext;
|
||||||
|
|
||||||
|
import org.junit.After;
|
||||||
|
import org.junit.Before;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -132,6 +135,7 @@ public abstract class ProviderTestCase2MockContext<T extends ContentProvider> ex
|
|||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@Before
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
|
|
||||||
@ -165,6 +169,7 @@ public abstract class ProviderTestCase2MockContext<T extends ContentProvider> ex
|
|||||||
* {@link android.content.ContentProvider} represented by mProvider.
|
* {@link android.content.ContentProvider} represented by mProvider.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@After
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
shutdownProvider();
|
shutdownProvider();
|
||||||
super.tearDown();
|
super.tearDown();
|
||||||
|
@ -18,7 +18,6 @@ import static org.junit.Assert.fail;
|
|||||||
|
|
||||||
@RunWith(AndroidJUnit4.class)
|
@RunWith(AndroidJUnit4.class)
|
||||||
public class RepoUpdaterTest {
|
public class RepoUpdaterTest {
|
||||||
private static final String TAG = "RepoUpdaterTest";
|
|
||||||
|
|
||||||
private Context context;
|
private Context context;
|
||||||
private RepoUpdater repoUpdater;
|
private RepoUpdater repoUpdater;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user