Fix IgnoreWithoutReason code lint errors

This commit is contained in:
TacoTheDank 2021-07-22 16:49:29 -04:00
parent ba34bea746
commit fdaf5394d9
2 changed files with 1 additions and 37 deletions

View File

@ -20,7 +20,7 @@ import static java.util.Collections.singletonList;
/**
* Test class for GpodnetService
*/
@Ignore
@Ignore("Needs valid credentials to run")
@RunWith(AndroidJUnit4.class)
public class GPodnetServiceTest {

View File

@ -1,36 +0,0 @@
package de.test.antennapod.ui;
import android.content.Intent;
import androidx.test.filters.MediumTest;
import androidx.test.rule.ActivityTestRule;
import de.danoeh.antennapod.R;
import de.danoeh.antennapod.activity.VideoplayerActivity;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.assertion.ViewAssertions.matches;
import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed;
import static androidx.test.espresso.matcher.ViewMatchers.withId;
/**
* Test class for VideoplayerActivity
*/
@MediumTest
@Ignore
public class VideoplayerActivityTest {
@Rule
public ActivityTestRule<VideoplayerActivity> activityTestRule = new ActivityTestRule<>(VideoplayerActivity.class, false, false);
/**
* Test if activity can be started.
*/
@Test
public void testStartActivity() throws Exception {
activityTestRule.launchActivity(new Intent());
onView(withId(R.id.videoPlayerContainer)).check(matches(isDisplayed()));
}
}