From 4f66592e1da9591e8cb1738dc8fff9d75150744c Mon Sep 17 00:00:00 2001 From: Uriah Shaul Mandel <43012268+UriahShaulMandel@users.noreply.github.com> Date: Tue, 13 Aug 2019 16:50:53 +0300 Subject: [PATCH] Delete ContactsActivityScreenshot.java --- .../ContactsActivityScreenshot.java | 56 ------------------- 1 file changed, 56 deletions(-) delete mode 100644 app/src/androidTest/java/com/bald/uriah/baldphone/screenshots/ContactsActivityScreenshot.java diff --git a/app/src/androidTest/java/com/bald/uriah/baldphone/screenshots/ContactsActivityScreenshot.java b/app/src/androidTest/java/com/bald/uriah/baldphone/screenshots/ContactsActivityScreenshot.java deleted file mode 100644 index 13a84ca4..00000000 --- a/app/src/androidTest/java/com/bald/uriah/baldphone/screenshots/ContactsActivityScreenshot.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package com.bald.uriah.baldphone.screenshots; - -import android.content.Context; -import android.content.Intent; - -import androidx.test.filters.LargeTest; -import androidx.test.runner.AndroidJUnit4; - -import com.bald.uriah.baldphone.R; -import com.bald.uriah.baldphone.activities.contacts.ContactsActivity; -import com.tomash.androidcontacts.contactgetter.main.ContactDataFactory; -import com.tomash.androidcontacts.contactgetter.main.contactsSaver.ContactsSaverBuilder; - -import org.junit.runner.RunWith; - -import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation; - -@LargeTest -@RunWith(AndroidJUnit4.class) -public class ContactsActivityScreenshot extends BaseScreenshotTakerTest { - - public void test() { - final Context context = getInstrumentation().getTargetContext(); - final String[] names = context.getResources().getStringArray(R.array.names_for_screenshots); - for (final String name : names) { - new ContactsSaverBuilder(mActivityTestRule.getActivity()).saveContact(ContactDataFactory.createEmpty().setCompositeName(name)); - } - - mActivityTestRule.launchActivity(new Intent()); - - } - - @Override - protected Class activity() { - return ContactsActivity.class; - } -}