diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 59bff2b27..26a8b0db4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* SchibstedSpain/barista-maintainers +* AdevintaSpain/barista-maintainers diff --git a/README.md b/README.md index 407edb28e..229fa833a 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Barista makes developing UI test faster, easier and more predictable. Built on t Import Barista as a testing dependency: ```gradle -androidTestImplementation('com.schibsted.spain:barista:3.9.0') { +androidTestImplementation('com.adevinta.android:barista:3.9.0') { exclude group: 'org.jetbrains.kotlin' // Only if you already use Kotlin in your project } ``` @@ -472,7 +472,7 @@ The rule assumes some sane defaults: - Clear files ### Writing tests in Kotlin? -[Check this link](https://github.com/SchibstedSpain/Barista/issues/219) to know how to use `@Rule` in Kotlin. +[Check this link](https://github.com/AdevintaSpain/Barista/issues/219) to know how to use `@Rule` in Kotlin. # Magic that Barista does for you @@ -483,7 +483,7 @@ In order to speed up testing, Barista keeps in mind some considerations. # Contributing -We welcome contributions! If you found a bug or have a feature request, feel free to [open an issue](https://github.com/SchibstedSpain/Barista/issues/new) to discuss it. Remember that bugs reported with a reproducible test are more likely to be investigated and fixed. You can also submit a Pull Request. +We welcome contributions! If you found a bug or have a feature request, feel free to [open an issue](https://github.com/AdevintaSpain/Barista/issues/new) to discuss it. Remember that bugs reported with a reproducible test are more likely to be investigated and fixed. You can also submit a Pull Request. ## Formatting We use our company's IntelliJ code style for the project, which is very similar to the official Kotlin Android code style. When submitting code please make sure you use the proper format. You can install the code style into Android Studio by running the script in `./config/androidstudio/install-codestyle.sh`. Then restart Android Studio and pick the "BaristaAndroid" schema in preferences. diff --git a/config/androidstudio/install-codestyle.sh b/config/androidstudio/install-codestyle.sh index dfc63b275..b55baa244 100755 --- a/config/androidstudio/install-codestyle.sh +++ b/config/androidstudio/install-codestyle.sh @@ -1,16 +1,19 @@ #!/bin/bash # Based on Square's codestyle installer (https://github.com/square/java-code-styles/blob/master/install.sh) -echo "Installing Schibsted IntelliJ configs..." +echo "Installing Barista IntelliJ configs..." CONFIGS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" for i in $HOME/Library/Preferences/IntelliJIdea* \ $HOME/Library/Preferences/IdeaIC* \ $HOME/Library/Preferences/AndroidStudio* \ + $HOME/Library/Application\ Support/JetBrains/IntelliJIdea* \ $HOME/.IntelliJIdea*/config \ $HOME/.IdeaIC*/config \ - $HOME/.AndroidStudio*/config + $HOME/.AndroidStudio*/config \ + $HOME/Library/Application\ Support/Google/AndroidStudio* \ + $HOME/Library/Application\ Support/JetBrains/IdeaIC* do if [[ -d $i ]]; then # create codestyle folders @@ -22,4 +25,4 @@ done echo "Done." echo "" -echo "Restart IntelliJ and/or AndroidStudio, go to Preferences, Editor, Code Style, and select 'SchibstedAndroid-InfoJobs' as scheme." +echo "Restart IntelliJ and/or AndroidStudio, go to Preferences, Editor, Code Style, and select 'BaristaAndroid' as scheme." diff --git a/library/src/androidTest/java/com/schibsted/spain/barista/internal/util/BitmapComparatorTest.kt b/library/src/androidTest/java/com/adevinta/android/barista/internal/util/BitmapComparatorTest.kt similarity index 92% rename from library/src/androidTest/java/com/schibsted/spain/barista/internal/util/BitmapComparatorTest.kt rename to library/src/androidTest/java/com/adevinta/android/barista/internal/util/BitmapComparatorTest.kt index ce97873a8..5ad891cfa 100644 --- a/library/src/androidTest/java/com/schibsted/spain/barista/internal/util/BitmapComparatorTest.kt +++ b/library/src/androidTest/java/com/adevinta/android/barista/internal/util/BitmapComparatorTest.kt @@ -1,9 +1,9 @@ -package com.schibsted.spain.barista.internal.util +package com.adevinta.android.barista.internal.util import android.content.Context import android.graphics.BitmapFactory import androidx.test.core.app.ApplicationProvider -import com.schibsted.spain.barista.test.R +import com.adevinta.android.barista.test.R import org.junit.Assert.assertFalse import org.junit.Assert.assertTrue import org.junit.Test diff --git a/library/src/main/AndroidManifest.xml b/library/src/main/AndroidManifest.xml index 52c129a56..17694213c 100644 --- a/library/src/main/AndroidManifest.xml +++ b/library/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaAssertions.kt similarity index 83% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaAssertions.kt index dc4d6b24f..ddca4a337 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaAssertions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import androidx.test.espresso.Espresso.onView import androidx.test.espresso.NoActivityResumedException @@ -6,10 +6,10 @@ import androidx.test.espresso.action.ViewActions import androidx.test.espresso.matcher.ViewMatchers import androidx.test.espresso.matcher.ViewMatchers.isRoot import android.view.View -import com.schibsted.spain.barista.internal.assertAnyView -import com.schibsted.spain.barista.internal.failurehandler.RethrowingFailureHandler -import com.schibsted.spain.barista.internal.matcher.BooleanMatcher -import com.schibsted.spain.barista.internal.util.resourceMatcher +import com.adevinta.android.barista.internal.assertAnyView +import com.adevinta.android.barista.internal.failurehandler.RethrowingFailureHandler +import com.adevinta.android.barista.internal.matcher.BooleanMatcher +import com.adevinta.android.barista.internal.util.resourceMatcher import org.hamcrest.Matcher import org.junit.Assert.fail diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaAssistiveTextAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaAssistiveTextAssertions.kt similarity index 93% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaAssistiveTextAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaAssistiveTextAssertions.kt index 5a1463b0a..9e00bdb68 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaAssistiveTextAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaAssistiveTextAssertions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import android.view.View import androidx.annotation.IdRes @@ -6,7 +6,7 @@ import androidx.annotation.StringRes import androidx.test.espresso.matcher.ViewMatchers import androidx.test.platform.app.InstrumentationRegistry import com.google.android.material.textfield.TextInputLayout -import com.schibsted.spain.barista.internal.assertAny +import com.adevinta.android.barista.internal.assertAny import org.hamcrest.Description import org.hamcrest.Matcher import org.hamcrest.TypeSafeMatcher diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaBackgroundAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaBackgroundAssertions.kt similarity index 53% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaBackgroundAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaBackgroundAssertions.kt index 0945ed7f5..18a2049dc 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaBackgroundAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaBackgroundAssertions.kt @@ -1,12 +1,12 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import androidx.annotation.DrawableRes import androidx.annotation.IdRes -import com.schibsted.spain.barista.internal.assertAny -import com.schibsted.spain.barista.internal.matcher.BackgroundMatcher.Companion.withAnyBackground -import com.schibsted.spain.barista.internal.matcher.BackgroundMatcher.Companion.withBackground -import com.schibsted.spain.barista.internal.matcher.BackgroundMatcher.Companion.withoutBackground -import com.schibsted.spain.barista.internal.util.resourceMatcher +import com.adevinta.android.barista.internal.assertAny +import com.adevinta.android.barista.internal.matcher.BackgroundMatcher.Companion.withAnyBackground +import com.adevinta.android.barista.internal.matcher.BackgroundMatcher.Companion.withBackground +import com.adevinta.android.barista.internal.matcher.BackgroundMatcher.Companion.withoutBackground +import com.adevinta.android.barista.internal.util.resourceMatcher object BaristaBackgroundAssertions { diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaCheckedAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaCheckedAssertions.kt similarity index 78% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaCheckedAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaCheckedAssertions.kt index fc54ce696..7a08fba8f 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaCheckedAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaCheckedAssertions.kt @@ -1,9 +1,9 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import androidx.test.espresso.matcher.ViewMatchers.isChecked import androidx.test.espresso.matcher.ViewMatchers.withText -import com.schibsted.spain.barista.internal.assertAny -import com.schibsted.spain.barista.internal.util.resourceMatcher +import com.adevinta.android.barista.internal.assertAny +import com.adevinta.android.barista.internal.util.resourceMatcher import org.hamcrest.Matchers.not object BaristaCheckedAssertions { diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaChipAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaChipAssertions.kt similarity index 70% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaChipAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaChipAssertions.kt index 19c12eb37..ca946062a 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaChipAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaChipAssertions.kt @@ -1,9 +1,9 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import android.view.View import androidx.annotation.IdRes import com.google.android.material.chip.ChipGroup -import com.schibsted.spain.barista.assertion.BaristaAssertions.assertAny +import com.adevinta.android.barista.assertion.BaristaAssertions.assertAny object BaristaChipAssertions { diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaClickableAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaClickableAssertions.kt similarity index 76% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaClickableAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaClickableAssertions.kt index 3eb2ad551..4d8142466 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaClickableAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaClickableAssertions.kt @@ -1,30 +1,30 @@ -package com.schibsted.spain.barista.assertion - -import androidx.test.espresso.matcher.ViewMatchers.isClickable -import androidx.test.espresso.matcher.ViewMatchers.withText -import com.schibsted.spain.barista.internal.assertAny -import com.schibsted.spain.barista.internal.util.resourceMatcher -import org.hamcrest.Matchers.not - -object BaristaClickableAssertions { - - @JvmStatic - fun assertClickable(resId: Int) { - resId.resourceMatcher().assertAny(isClickable()) - } - - @JvmStatic - fun assertClickable(text: String) { - withText(text).assertAny(isClickable()) - } - - @JvmStatic - fun assertNotClickable(resId: Int) { - resId.resourceMatcher().assertAny(not(isClickable())) - } - - @JvmStatic - fun assertNotClickable(text: String) { - withText(text).assertAny(not(isClickable())) - } +package com.adevinta.android.barista.assertion + +import androidx.test.espresso.matcher.ViewMatchers.isClickable +import androidx.test.espresso.matcher.ViewMatchers.withText +import com.adevinta.android.barista.internal.assertAny +import com.adevinta.android.barista.internal.util.resourceMatcher +import org.hamcrest.Matchers.not + +object BaristaClickableAssertions { + + @JvmStatic + fun assertClickable(resId: Int) { + resId.resourceMatcher().assertAny(isClickable()) + } + + @JvmStatic + fun assertClickable(text: String) { + withText(text).assertAny(isClickable()) + } + + @JvmStatic + fun assertNotClickable(resId: Int) { + resId.resourceMatcher().assertAny(not(isClickable())) + } + + @JvmStatic + fun assertNotClickable(text: String) { + withText(text).assertAny(not(isClickable())) + } } \ No newline at end of file diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaContentDescriptionAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaContentDescriptionAssertions.kt similarity index 94% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaContentDescriptionAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaContentDescriptionAssertions.kt index 28656636c..79f46925f 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaContentDescriptionAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaContentDescriptionAssertions.kt @@ -1,11 +1,11 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import android.view.View import androidx.annotation.IdRes import androidx.annotation.StringRes import androidx.test.espresso.matcher.ViewMatchers import androidx.test.platform.app.InstrumentationRegistry -import com.schibsted.spain.barista.internal.assertAny +import com.adevinta.android.barista.internal.assertAny import org.hamcrest.Description import org.hamcrest.Matcher import org.hamcrest.TypeSafeMatcher diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaDrawerAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaDrawerAssertions.kt similarity index 96% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaDrawerAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaDrawerAssertions.kt index 1ad5d6995..6339fa735 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaDrawerAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaDrawerAssertions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import androidx.annotation.IdRes import androidx.test.espresso.Espresso.onView diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaEnabledAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaEnabledAssertions.kt similarity index 78% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaEnabledAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaEnabledAssertions.kt index c77d00a0f..68e904242 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaEnabledAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaEnabledAssertions.kt @@ -1,9 +1,9 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import androidx.test.espresso.matcher.ViewMatchers.isEnabled import androidx.test.espresso.matcher.ViewMatchers.withText -import com.schibsted.spain.barista.internal.assertAny -import com.schibsted.spain.barista.internal.util.resourceMatcher +import com.adevinta.android.barista.internal.assertAny +import com.adevinta.android.barista.internal.util.resourceMatcher import org.hamcrest.Matchers.not object BaristaEnabledAssertions { diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaErrorAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaErrorAssertions.kt similarity index 90% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaErrorAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaErrorAssertions.kt index 84d48e1b8..9d49fb1d1 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaErrorAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaErrorAssertions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import android.content.Context import android.view.View @@ -8,7 +8,7 @@ import androidx.annotation.StringRes import androidx.test.core.app.ApplicationProvider import androidx.test.espresso.matcher.ViewMatchers import com.google.android.material.textfield.TextInputLayout -import com.schibsted.spain.barista.internal.assertAny +import com.adevinta.android.barista.internal.assertAny import org.hamcrest.Description import org.hamcrest.Matcher import org.hamcrest.TypeSafeMatcher @@ -19,7 +19,7 @@ object BaristaErrorAssertions { message = "Use assertErrorDisplayed(id, text)", replaceWith = ReplaceWith( "assertErrorDisplayed(viewId, text)", - "com.schibsted.spain.barista.assertion.BaristaErrorAssertions.assertErrorDisplayed" + "com.adevinta.android.barista.assertion.BaristaErrorAssertions.assertErrorDisplayed" ) ) @JvmStatic @@ -31,7 +31,7 @@ object BaristaErrorAssertions { message = "Use assertErrorDisplayed(id, text)", replaceWith = ReplaceWith( "assertErrorDisplayed(viewId, text)", - "com.schibsted.spain.barista.assertion.BaristaErrorAssertions.assertErrorDisplayed" + "com.adevinta.android.barista.assertion.BaristaErrorAssertions.assertErrorDisplayed" ) ) @JvmStatic diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaFocusedAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaFocusedAssertions.kt similarity index 79% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaFocusedAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaFocusedAssertions.kt index f144d9517..46b86ae33 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaFocusedAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaFocusedAssertions.kt @@ -1,10 +1,10 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import androidx.annotation.IdRes import androidx.test.espresso.matcher.ViewMatchers.hasFocus import androidx.test.espresso.matcher.ViewMatchers.withText -import com.schibsted.spain.barista.internal.assertAny -import com.schibsted.spain.barista.internal.util.resourceMatcher +import com.adevinta.android.barista.internal.assertAny +import com.adevinta.android.barista.internal.util.resourceMatcher import org.hamcrest.Matchers.not object BaristaFocusedAssertions { diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaHintAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaHintAssertions.kt similarity index 94% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaHintAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaHintAssertions.kt index cf7fe4252..96c8b6b88 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaHintAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaHintAssertions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import android.content.Context import androidx.annotation.IdRes @@ -10,7 +10,7 @@ import android.view.View import android.widget.EditText import android.widget.FrameLayout import androidx.test.core.app.ApplicationProvider -import com.schibsted.spain.barista.internal.assertAny +import com.adevinta.android.barista.internal.assertAny import org.hamcrest.Description import org.hamcrest.Matcher import org.hamcrest.TypeSafeMatcher diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaImageViewAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaImageViewAssertions.kt similarity index 59% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaImageViewAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaImageViewAssertions.kt index 2087256f9..d272e5c6d 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaImageViewAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaImageViewAssertions.kt @@ -1,12 +1,12 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import androidx.annotation.DrawableRes import androidx.annotation.IdRes import androidx.test.espresso.matcher.ViewMatchers.withId -import com.schibsted.spain.barista.internal.assertAny -import com.schibsted.spain.barista.internal.matcher.DrawableMatcher.Companion.withAnyDrawable -import com.schibsted.spain.barista.internal.matcher.DrawableMatcher.Companion.withDrawable -import com.schibsted.spain.barista.internal.matcher.DrawableMatcher.Companion.withoutDrawable +import com.adevinta.android.barista.internal.assertAny +import com.adevinta.android.barista.internal.matcher.DrawableMatcher.Companion.withAnyDrawable +import com.adevinta.android.barista.internal.matcher.DrawableMatcher.Companion.withDrawable +import com.adevinta.android.barista.internal.matcher.DrawableMatcher.Companion.withoutDrawable object BaristaImageViewAssertions { diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaListAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaListAssertions.kt similarity index 90% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaListAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaListAssertions.kt index 003566e47..553f50be4 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaListAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaListAssertions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import androidx.annotation.IdRes import androidx.annotation.StringRes @@ -11,15 +11,15 @@ import androidx.recyclerview.widget.RecyclerView import android.view.View import android.widget.ListView import androidx.annotation.DrawableRes -import com.schibsted.spain.barista.interaction.BaristaListInteractions.findListViewMatcher -import com.schibsted.spain.barista.interaction.BaristaListInteractions.findRecyclerMatcher -import com.schibsted.spain.barista.interaction.BaristaListInteractions.scrollListToPosition -import com.schibsted.spain.barista.internal.failurehandler.SpyFailureHandler -import com.schibsted.spain.barista.internal.matcher.ListViewNotEmptyAssertion -import com.schibsted.spain.barista.internal.matcher.ListViewItemCountAssertion -import com.schibsted.spain.barista.internal.matcher.RecyclerViewNotEmptyAssertion -import com.schibsted.spain.barista.internal.matcher.RecyclerViewItemCountAssertion -import com.schibsted.spain.barista.internal.matcher.DrawableMatcher +import com.adevinta.android.barista.interaction.BaristaListInteractions.findListViewMatcher +import com.adevinta.android.barista.interaction.BaristaListInteractions.findRecyclerMatcher +import com.adevinta.android.barista.interaction.BaristaListInteractions.scrollListToPosition +import com.adevinta.android.barista.internal.failurehandler.SpyFailureHandler +import com.adevinta.android.barista.internal.matcher.ListViewNotEmptyAssertion +import com.adevinta.android.barista.internal.matcher.ListViewItemCountAssertion +import com.adevinta.android.barista.internal.matcher.RecyclerViewNotEmptyAssertion +import com.adevinta.android.barista.internal.matcher.RecyclerViewItemCountAssertion +import com.adevinta.android.barista.internal.matcher.DrawableMatcher import org.hamcrest.CoreMatchers import org.hamcrest.Description import org.hamcrest.Matcher diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaProgressBarAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaProgressBarAssertions.kt similarity index 62% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaProgressBarAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaProgressBarAssertions.kt index b36aee518..e56c912cd 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaProgressBarAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaProgressBarAssertions.kt @@ -1,12 +1,12 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import androidx.annotation.IdRes import androidx.test.espresso.Espresso.onView import androidx.test.espresso.assertion.ViewAssertions.matches -import com.schibsted.spain.barista.internal.matcher.DisplayedMatchers.displayedWithId -import com.schibsted.spain.barista.internal.matcher.ProgressBarMatchers.withMaxProgress -import com.schibsted.spain.barista.internal.matcher.ProgressBarMatchers.withMinProgress -import com.schibsted.spain.barista.internal.matcher.ProgressBarMatchers.withProgress +import com.adevinta.android.barista.internal.matcher.DisplayedMatchers.displayedWithId +import com.adevinta.android.barista.internal.matcher.ProgressBarMatchers.withMaxProgress +import com.adevinta.android.barista.internal.matcher.ProgressBarMatchers.withMinProgress +import com.adevinta.android.barista.internal.matcher.ProgressBarMatchers.withProgress object BaristaProgressBarAssertions { diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaRecyclerViewAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaRecyclerViewAssertions.kt similarity index 60% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaRecyclerViewAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaRecyclerViewAssertions.kt index 579c444d0..b2cd0eaff 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaRecyclerViewAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaRecyclerViewAssertions.kt @@ -1,9 +1,9 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import androidx.annotation.IdRes import androidx.test.espresso.Espresso.onView -import com.schibsted.spain.barista.internal.matcher.DisplayedMatchers.displayedWithId -import com.schibsted.spain.barista.internal.matcher.RecyclerViewItemCountAssertion +import com.adevinta.android.barista.internal.matcher.DisplayedMatchers.displayedWithId +import com.adevinta.android.barista.internal.matcher.RecyclerViewItemCountAssertion object BaristaRecyclerViewAssertions { diff --git a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaVisibilityAssertions.kt b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaVisibilityAssertions.kt similarity index 93% rename from library/src/main/java/com/schibsted/spain/barista/assertion/BaristaVisibilityAssertions.kt rename to library/src/main/java/com/adevinta/android/barista/assertion/BaristaVisibilityAssertions.kt index 6131b1d95..347389b0f 100644 --- a/library/src/main/java/com/schibsted/spain/barista/assertion/BaristaVisibilityAssertions.kt +++ b/library/src/main/java/com/adevinta/android/barista/assertion/BaristaVisibilityAssertions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.assertion +package com.adevinta.android.barista.assertion import android.view.View import androidx.annotation.AttrRes @@ -12,10 +12,10 @@ import androidx.test.espresso.matcher.ViewMatchers.isDisplayed import androidx.test.espresso.matcher.ViewMatchers.withId import androidx.test.espresso.matcher.ViewMatchers.withText import androidx.test.platform.app.InstrumentationRegistry -import com.schibsted.spain.barista.internal.assertAny -import com.schibsted.spain.barista.internal.matcher.TextColorMatcher -import com.schibsted.spain.barista.internal.matcher.TextStyleableColorMatcher -import com.schibsted.spain.barista.internal.util.resourceMatcher +import com.adevinta.android.barista.internal.assertAny +import com.adevinta.android.barista.internal.matcher.TextColorMatcher +import com.adevinta.android.barista.internal.matcher.TextStyleableColorMatcher +import com.adevinta.android.barista.internal.util.resourceMatcher import org.hamcrest.CoreMatchers.containsString import org.hamcrest.Matcher import org.hamcrest.Matchers.allOf diff --git a/library/src/main/java/com/schibsted/spain/barista/intents/BaristaIntentMatchers.kt b/library/src/main/java/com/adevinta/android/barista/intents/BaristaIntentMatchers.kt similarity index 96% rename from library/src/main/java/com/schibsted/spain/barista/intents/BaristaIntentMatchers.kt rename to library/src/main/java/com/adevinta/android/barista/intents/BaristaIntentMatchers.kt index d6c6f65c6..9ce016760 100644 --- a/library/src/main/java/com/schibsted/spain/barista/intents/BaristaIntentMatchers.kt +++ b/library/src/main/java/com/adevinta/android/barista/intents/BaristaIntentMatchers.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.intents +package com.adevinta.android.barista.intents import android.content.Context import android.content.Intent @@ -10,7 +10,7 @@ import android.net.Uri import android.provider.MediaStore import androidx.test.core.app.ApplicationProvider.getApplicationContext import androidx.test.espresso.core.internal.deps.guava.base.Preconditions.checkNotNull -import com.schibsted.spain.barista.internal.failurehandler.BaristaException +import com.adevinta.android.barista.internal.failurehandler.BaristaException import org.hamcrest.Description import org.hamcrest.Matcher import org.hamcrest.Matchers.`is` diff --git a/library/src/main/java/com/schibsted/spain/barista/intents/BaristaIntents.kt b/library/src/main/java/com/adevinta/android/barista/intents/BaristaIntents.kt similarity index 85% rename from library/src/main/java/com/schibsted/spain/barista/intents/BaristaIntents.kt rename to library/src/main/java/com/adevinta/android/barista/intents/BaristaIntents.kt index e5cb56c12..36aae552b 100644 --- a/library/src/main/java/com/schibsted/spain/barista/intents/BaristaIntents.kt +++ b/library/src/main/java/com/adevinta/android/barista/intents/BaristaIntents.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.intents +package com.adevinta.android.barista.intents import android.app.Activity import android.app.Instrumentation @@ -6,7 +6,7 @@ import android.content.Intent import android.os.Bundle import androidx.test.espresso.intent.Intents.intending -import com.schibsted.spain.barista.intents.BaristaIntentMatchers.captureImage +import com.adevinta.android.barista.intents.BaristaIntentMatchers.captureImage object BaristaIntents { diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaAutoCompleteTextViewInteractions.kt b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaAutoCompleteTextViewInteractions.kt similarity index 79% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaAutoCompleteTextViewInteractions.kt rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaAutoCompleteTextViewInteractions.kt index f6c6d57b8..8799e2bc2 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaAutoCompleteTextViewInteractions.kt +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaAutoCompleteTextViewInteractions.kt @@ -1,12 +1,12 @@ -package com.schibsted.spain.barista.interaction +package com.adevinta.android.barista.interaction import androidx.annotation.IdRes import androidx.test.espresso.matcher.ViewMatchers.isAssignableFrom import androidx.test.espresso.matcher.ViewMatchers.isDescendantOfA import androidx.test.espresso.matcher.ViewMatchers.withId import android.widget.EditText -import com.schibsted.spain.barista.internal.performAction -import com.schibsted.spain.barista.internal.viewaction.AutoCompleteViewActions.replaceAutoComplete +import com.adevinta.android.barista.internal.performAction +import com.adevinta.android.barista.internal.viewaction.AutoCompleteViewActions.replaceAutoComplete import org.hamcrest.Matchers.allOf import org.hamcrest.Matchers.anyOf diff --git a/library/src/main/java/com/adevinta/android/barista/interaction/BaristaChipInteractions.kt b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaChipInteractions.kt new file mode 100644 index 000000000..02c056ccc --- /dev/null +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaChipInteractions.kt @@ -0,0 +1,13 @@ +package com.adevinta.android.barista.interaction + +import com.adevinta.android.barista.internal.performAction +import com.adevinta.android.barista.internal.util.resourceMatcher +import com.adevinta.android.barista.internal.viewaction.ChipViewActions.removeChip + +object BaristaChipInteractions { + + @JvmStatic + fun closeChip(resId: Int) { + resId.resourceMatcher().performAction(removeChip()) + } +} diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaClickInteractions.kt b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaClickInteractions.kt similarity index 80% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaClickInteractions.kt rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaClickInteractions.kt index c0252858a..ec2b31297 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaClickInteractions.kt +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaClickInteractions.kt @@ -1,11 +1,11 @@ -package com.schibsted.spain.barista.interaction +package com.adevinta.android.barista.interaction import androidx.test.espresso.Espresso.pressBack import androidx.test.espresso.action.ViewActions.click import androidx.test.espresso.action.ViewActions.longClick import androidx.test.espresso.matcher.ViewMatchers.withText -import com.schibsted.spain.barista.internal.performAction -import com.schibsted.spain.barista.internal.util.resourceMatcher +import com.adevinta.android.barista.internal.performAction +import com.adevinta.android.barista.internal.util.resourceMatcher object BaristaClickInteractions { diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaDialogInteractions.java b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaDialogInteractions.java similarity index 69% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaDialogInteractions.java rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaDialogInteractions.java index 19a878b3a..adf4e7d20 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaDialogInteractions.java +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaDialogInteractions.java @@ -1,6 +1,6 @@ -package com.schibsted.spain.barista.interaction; +package com.adevinta.android.barista.interaction; -import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickOn; +import static com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn; public class BaristaDialogInteractions { diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaDrawerInteractions.kt b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaDrawerInteractions.kt similarity index 92% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaDrawerInteractions.kt rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaDrawerInteractions.kt index 820827335..81991cb68 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaDrawerInteractions.kt +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaDrawerInteractions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.interaction +package com.adevinta.android.barista.interaction import androidx.annotation.IdRes import androidx.test.espresso.contrib.DrawerActions.close @@ -7,7 +7,7 @@ import androidx.test.espresso.matcher.ViewMatchers.isAssignableFrom import androidx.test.espresso.matcher.ViewMatchers.withId import androidx.core.view.GravityCompat import androidx.drawerlayout.widget.DrawerLayout -import com.schibsted.spain.barista.internal.performAction +import com.adevinta.android.barista.internal.performAction object BaristaDrawerInteractions { diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaEditTextInteractions.kt b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaEditTextInteractions.kt similarity index 95% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaEditTextInteractions.kt rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaEditTextInteractions.kt index 8026a710d..d96cbf9e9 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaEditTextInteractions.kt +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaEditTextInteractions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.interaction +package com.adevinta.android.barista.interaction import androidx.annotation.IdRes import androidx.test.espresso.action.ViewActions.clearText @@ -8,7 +8,7 @@ import androidx.test.espresso.matcher.ViewMatchers.isAssignableFrom import androidx.test.espresso.matcher.ViewMatchers.isDescendantOfA import androidx.test.espresso.matcher.ViewMatchers.withId import android.widget.EditText -import com.schibsted.spain.barista.internal.performAction +import com.adevinta.android.barista.internal.performAction import org.hamcrest.Matchers.allOf import org.hamcrest.Matchers.anyOf diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaKeyboardInteractions.kt b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaKeyboardInteractions.kt similarity index 90% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaKeyboardInteractions.kt rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaKeyboardInteractions.kt index d54c9e38f..fdc0360c9 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaKeyboardInteractions.kt +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaKeyboardInteractions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.interaction +package com.adevinta.android.barista.interaction import androidx.annotation.IdRes import androidx.test.espresso.Espresso.onView @@ -9,7 +9,7 @@ import androidx.test.espresso.matcher.ViewMatchers.hasFocus import androidx.test.espresso.matcher.ViewMatchers.isRoot import androidx.test.espresso.matcher.ViewMatchers.withId import android.widget.EditText -import com.schibsted.spain.barista.internal.performAction +import com.adevinta.android.barista.internal.performAction import org.hamcrest.core.AllOf.allOf object BaristaKeyboardInteractions { diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaListInteractions.kt b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaListInteractions.kt similarity index 91% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaListInteractions.kt rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaListInteractions.kt index 0883409f2..63bfebe3c 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaListInteractions.kt +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaListInteractions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.interaction +package com.adevinta.android.barista.interaction import android.content.Context import androidx.annotation.IdRes @@ -20,11 +20,11 @@ import androidx.recyclerview.widget.RecyclerView.ViewHolder import android.view.View import android.widget.AbsListView import androidx.test.core.app.ApplicationProvider -import com.schibsted.spain.barista.internal.failurehandler.SpyFailureHandler -import com.schibsted.spain.barista.internal.failurehandler.description -import com.schibsted.spain.barista.internal.failurehandler.withFailureHandler -import com.schibsted.spain.barista.internal.viewaction.ClickChildAction.clickChildWithId -import com.schibsted.spain.barista.internal.viewaction.PerformClickAction.clickUsingPerformClick +import com.adevinta.android.barista.internal.failurehandler.SpyFailureHandler +import com.adevinta.android.barista.internal.failurehandler.description +import com.adevinta.android.barista.internal.failurehandler.withFailureHandler +import com.adevinta.android.barista.internal.viewaction.ClickChildAction.clickChildWithId +import com.adevinta.android.barista.internal.viewaction.PerformClickAction.clickUsingPerformClick import org.hamcrest.CoreMatchers.allOf import org.hamcrest.CoreMatchers.anyOf import org.hamcrest.CoreMatchers.anything diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaMenuClickInteractions.kt b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaMenuClickInteractions.kt similarity index 88% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaMenuClickInteractions.kt rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaMenuClickInteractions.kt index b388075a8..b923cd3b8 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaMenuClickInteractions.kt +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaMenuClickInteractions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.interaction +package com.adevinta.android.barista.interaction import android.content.Context import androidx.annotation.IdRes @@ -13,10 +13,10 @@ import androidx.test.espresso.matcher.ViewMatchers.withId import androidx.test.espresso.matcher.ViewMatchers.withText import android.view.View import androidx.test.core.app.ApplicationProvider -import com.schibsted.spain.barista.internal.failurehandler.SpyFailureHandler -import com.schibsted.spain.barista.internal.failurehandler.withFailureHandler -import com.schibsted.spain.barista.internal.matcher.DisplayedMatchers.displayedAnd -import com.schibsted.spain.barista.internal.matcher.HelperMatchers.menuIdMatcher +import com.adevinta.android.barista.internal.failurehandler.SpyFailureHandler +import com.adevinta.android.barista.internal.failurehandler.withFailureHandler +import com.adevinta.android.barista.internal.matcher.DisplayedMatchers.displayedAnd +import com.adevinta.android.barista.internal.matcher.HelperMatchers.menuIdMatcher import org.hamcrest.Matcher import org.hamcrest.Matchers.hasToString diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaPickerInteractions.java b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaPickerInteractions.java similarity index 86% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaPickerInteractions.java rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaPickerInteractions.java index 100a124c0..6291e4daa 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaPickerInteractions.java +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaPickerInteractions.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.interaction; +package com.adevinta.android.barista.interaction; import androidx.test.espresso.contrib.PickerActions; import android.widget.DatePicker; @@ -8,7 +8,7 @@ import static androidx.test.espresso.Espresso.onView; import static androidx.test.espresso.action.ViewActions.click; import static androidx.test.espresso.matcher.ViewMatchers.withClassName; -import static com.schibsted.spain.barista.internal.matcher.DisplayedMatchers.displayedWithId; +import static com.adevinta.android.barista.internal.matcher.DisplayedMatchers.displayedWithId; public class BaristaPickerInteractions { diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaRadioButtonInteractions.kt b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaRadioButtonInteractions.kt similarity index 82% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaRadioButtonInteractions.kt rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaRadioButtonInteractions.kt index af6dafb8d..ae4cad60f 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaRadioButtonInteractions.kt +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaRadioButtonInteractions.kt @@ -1,12 +1,12 @@ -package com.schibsted.spain.barista.interaction +package com.adevinta.android.barista.interaction import androidx.annotation.IdRes import androidx.test.espresso.action.ViewActions.click import androidx.test.espresso.matcher.ViewMatchers import androidx.test.espresso.matcher.ViewMatchers.withId import androidx.test.espresso.matcher.ViewMatchers.withText -import com.schibsted.spain.barista.internal.matcher.HelperMatchers.withParentId -import com.schibsted.spain.barista.internal.performAction +import com.adevinta.android.barista.internal.matcher.HelperMatchers.withParentId +import com.adevinta.android.barista.internal.performAction import org.hamcrest.Matchers.allOf object BaristaRadioButtonInteractions { diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaRatingBarViewInteractions.kt b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaRatingBarViewInteractions.kt similarity index 64% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaRatingBarViewInteractions.kt rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaRatingBarViewInteractions.kt index f3eb47d26..289d2ebf6 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaRatingBarViewInteractions.kt +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaRatingBarViewInteractions.kt @@ -1,11 +1,11 @@ -package com.schibsted.spain.barista.interaction +package com.adevinta.android.barista.interaction import androidx.annotation.IdRes import androidx.test.espresso.matcher.ViewMatchers.withId -import com.schibsted.spain.barista.internal.performAction -import com.schibsted.spain.barista.internal.viewaction.RatingBarActions.setRatingBarRatingTo -import com.schibsted.spain.barista.internal.viewaction.RatingBarActions.setRatingBarRatingToMax -import com.schibsted.spain.barista.internal.viewaction.RatingBarActions.setRatingBarRatingToMin +import com.adevinta.android.barista.internal.performAction +import com.adevinta.android.barista.internal.viewaction.RatingBarActions.setRatingBarRatingTo +import com.adevinta.android.barista.internal.viewaction.RatingBarActions.setRatingBarRatingToMax +import com.adevinta.android.barista.internal.viewaction.RatingBarActions.setRatingBarRatingToMin object BaristaRatingBarInteractions { diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaScrollInteractions.kt b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaScrollInteractions.kt similarity index 85% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaScrollInteractions.kt rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaScrollInteractions.kt index 3d59982aa..8dedd2db3 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaScrollInteractions.kt +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaScrollInteractions.kt @@ -1,13 +1,13 @@ -package com.schibsted.spain.barista.interaction +package com.adevinta.android.barista.interaction import android.view.View import androidx.test.espresso.Espresso.onView import androidx.test.espresso.PerformException import androidx.test.espresso.matcher.ViewMatchers.withText -import com.schibsted.spain.barista.internal.failurehandler.SpyFailureHandler -import com.schibsted.spain.barista.internal.failurehandler.description -import com.schibsted.spain.barista.internal.util.resourceMatcher -import com.schibsted.spain.barista.internal.viewaction.NestedEnabledScrollToAction.nestedScrollToAction +import com.adevinta.android.barista.internal.failurehandler.SpyFailureHandler +import com.adevinta.android.barista.internal.failurehandler.description +import com.adevinta.android.barista.internal.util.resourceMatcher +import com.adevinta.android.barista.internal.viewaction.NestedEnabledScrollToAction.nestedScrollToAction import org.hamcrest.Matcher /** diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaSeekBarViewInteractions.kt b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaSeekBarViewInteractions.kt similarity index 57% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaSeekBarViewInteractions.kt rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaSeekBarViewInteractions.kt index 163719350..dc1286168 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaSeekBarViewInteractions.kt +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaSeekBarViewInteractions.kt @@ -1,11 +1,11 @@ -package com.schibsted.spain.barista.interaction +package com.adevinta.android.barista.interaction import androidx.annotation.IdRes import androidx.test.espresso.matcher.ViewMatchers.withId -import com.schibsted.spain.barista.internal.performAction -import com.schibsted.spain.barista.internal.viewaction.SeekBarActions.setSeekBarProgressTo -import com.schibsted.spain.barista.internal.viewaction.SeekBarActions.setSeekBarProgressToMax -import com.schibsted.spain.barista.internal.viewaction.SeekBarActions.setSeekBarProgressToMin +import com.adevinta.android.barista.internal.performAction +import com.adevinta.android.barista.internal.viewaction.SeekBarActions.setSeekBarProgressTo +import com.adevinta.android.barista.internal.viewaction.SeekBarActions.setSeekBarProgressToMax +import com.adevinta.android.barista.internal.viewaction.SeekBarActions.setSeekBarProgressToMin object BaristaSeekBarInteractions { @JvmStatic diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaSleepInteractions.java b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaSleepInteractions.java similarity index 85% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaSleepInteractions.java rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaSleepInteractions.java index 1c5169b71..13297dfc4 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaSleepInteractions.java +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaSleepInteractions.java @@ -1,6 +1,6 @@ -package com.schibsted.spain.barista.interaction; +package com.adevinta.android.barista.interaction; -import com.schibsted.spain.barista.internal.viewaction.SleepViewAction; +import com.adevinta.android.barista.internal.viewaction.SleepViewAction; import java.util.concurrent.TimeUnit; import static androidx.test.espresso.Espresso.onView; diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaSpinnerInteractions.kt b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaSpinnerInteractions.kt similarity index 90% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaSpinnerInteractions.kt rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaSpinnerInteractions.kt index dc61bf061..a2ed6e5ab 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaSpinnerInteractions.kt +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaSpinnerInteractions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.interaction +package com.adevinta.android.barista.interaction import androidx.annotation.IdRes import androidx.test.espresso.Espresso.onData @@ -6,7 +6,7 @@ import androidx.test.espresso.action.ViewActions import androidx.test.espresso.matcher.ViewMatchers.isAssignableFrom import androidx.test.espresso.matcher.ViewMatchers.isDisplayed import android.widget.AdapterView -import com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickOn +import com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn import org.hamcrest.Matchers.`is` import org.hamcrest.Matchers.allOf import org.hamcrest.Matchers.anything diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaSwipeRefreshInteractions.kt b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaSwipeRefreshInteractions.kt similarity index 79% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaSwipeRefreshInteractions.kt rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaSwipeRefreshInteractions.kt index dbc3093c3..48c880450 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaSwipeRefreshInteractions.kt +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaSwipeRefreshInteractions.kt @@ -1,11 +1,11 @@ -package com.schibsted.spain.barista.interaction +package com.adevinta.android.barista.interaction import androidx.annotation.IdRes import androidx.test.espresso.Espresso.onView import androidx.test.espresso.matcher.ViewMatchers.isAssignableFrom import androidx.test.espresso.matcher.ViewMatchers.withId import androidx.swiperefreshlayout.widget.SwipeRefreshLayout -import com.schibsted.spain.barista.internal.viewaction.SwipeRefreshActions.pullToRefresh +import com.adevinta.android.barista.internal.viewaction.SwipeRefreshActions.pullToRefresh object BaristaSwipeRefreshInteractions { diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaViewPagerInteractions.kt b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaViewPagerInteractions.kt similarity index 80% rename from library/src/main/java/com/schibsted/spain/barista/interaction/BaristaViewPagerInteractions.kt rename to library/src/main/java/com/adevinta/android/barista/interaction/BaristaViewPagerInteractions.kt index b18e181f0..482b1e695 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaViewPagerInteractions.kt +++ b/library/src/main/java/com/adevinta/android/barista/interaction/BaristaViewPagerInteractions.kt @@ -1,17 +1,17 @@ -package com.schibsted.spain.barista.interaction +package com.adevinta.android.barista.interaction import androidx.annotation.IdRes import androidx.test.espresso.Espresso.onView import androidx.test.espresso.NoMatchingViewException import androidx.viewpager.widget.ViewPager import androidx.viewpager2.widget.ViewPager2 -import com.schibsted.spain.barista.internal.failurehandler.SpyFailureHandler -import com.schibsted.spain.barista.internal.matcher.DisplayedMatchers.displayedAssignableFrom -import com.schibsted.spain.barista.internal.matcher.DisplayedMatchers.displayedWithIdAndClass -import com.schibsted.spain.barista.internal.viewaction.SwipeActions.swipeLeft -import com.schibsted.spain.barista.internal.viewaction.SwipeActions.swipeRight -import com.schibsted.spain.barista.internal.viewaction.SwipeActions.swipeViewPager2Backward -import com.schibsted.spain.barista.internal.viewaction.SwipeActions.swipeViewPager2Forward +import com.adevinta.android.barista.internal.failurehandler.SpyFailureHandler +import com.adevinta.android.barista.internal.matcher.DisplayedMatchers.displayedAssignableFrom +import com.adevinta.android.barista.internal.matcher.DisplayedMatchers.displayedWithIdAndClass +import com.adevinta.android.barista.internal.viewaction.SwipeActions.swipeLeft +import com.adevinta.android.barista.internal.viewaction.SwipeActions.swipeRight +import com.adevinta.android.barista.internal.viewaction.SwipeActions.swipeViewPager2Backward +import com.adevinta.android.barista.internal.viewaction.SwipeActions.swipeViewPager2Forward object BaristaViewPagerInteractions { diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/PermissionGranter.kt b/library/src/main/java/com/adevinta/android/barista/interaction/PermissionGranter.kt similarity index 96% rename from library/src/main/java/com/schibsted/spain/barista/interaction/PermissionGranter.kt rename to library/src/main/java/com/adevinta/android/barista/interaction/PermissionGranter.kt index e5c574fbd..f570d8eb8 100644 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/PermissionGranter.kt +++ b/library/src/main/java/com/adevinta/android/barista/interaction/PermissionGranter.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.interaction +package com.adevinta.android.barista.interaction import android.content.Context import android.content.pm.PackageManager @@ -9,7 +9,7 @@ import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation import androidx.test.uiautomator.UiDevice import androidx.test.uiautomator.UiObjectNotFoundException import androidx.test.uiautomator.UiSelector -import com.schibsted.spain.barista.interaction.BaristaSleepInteractions.sleepThread +import com.adevinta.android.barista.interaction.BaristaSleepInteractions.sleepThread object PermissionGranter { diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/AssertAny.kt b/library/src/main/java/com/adevinta/android/barista/internal/AssertAny.kt similarity index 88% rename from library/src/main/java/com/schibsted/spain/barista/internal/AssertAny.kt rename to library/src/main/java/com/adevinta/android/barista/internal/AssertAny.kt index 754941b0f..a33d3d4bf 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/AssertAny.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/AssertAny.kt @@ -1,13 +1,13 @@ -package com.schibsted.spain.barista.internal +package com.adevinta.android.barista.internal import androidx.test.espresso.AmbiguousViewMatcherException import androidx.test.espresso.Espresso.onView import androidx.test.espresso.NoMatchingViewException import androidx.test.espresso.assertion.ViewAssertions import android.view.View -import com.schibsted.spain.barista.internal.failurehandler.SpyFailureHandler -import com.schibsted.spain.barista.internal.failurehandler.description -import com.schibsted.spain.barista.internal.matcher.HelperMatchers.firstViewOf +import com.adevinta.android.barista.internal.failurehandler.SpyFailureHandler +import com.adevinta.android.barista.internal.failurehandler.description +import com.adevinta.android.barista.internal.matcher.HelperMatchers.firstViewOf import org.hamcrest.Matcher import org.hamcrest.Matchers.allOf diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/PerformAction.kt b/library/src/main/java/com/adevinta/android/barista/internal/PerformAction.kt similarity index 88% rename from library/src/main/java/com/schibsted/spain/barista/internal/PerformAction.kt rename to library/src/main/java/com/adevinta/android/barista/internal/PerformAction.kt index 21570421a..65864e3b9 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/PerformAction.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/PerformAction.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal +package com.adevinta.android.barista.internal import androidx.test.espresso.Espresso.onView import androidx.test.espresso.ViewAction @@ -11,10 +11,10 @@ import android.view.View import android.widget.AbsListView import android.widget.HorizontalScrollView import android.widget.ScrollView -import com.schibsted.spain.barista.internal.failurehandler.SpyFailureHandler -import com.schibsted.spain.barista.internal.failurehandler.description -import com.schibsted.spain.barista.internal.matcher.DisplayedMatchers.displayedAnd -import com.schibsted.spain.barista.internal.viewaction.NestedEnabledScrollToAction.nestedScrollToAction +import com.adevinta.android.barista.internal.failurehandler.SpyFailureHandler +import com.adevinta.android.barista.internal.failurehandler.description +import com.adevinta.android.barista.internal.matcher.DisplayedMatchers.displayedAnd +import com.adevinta.android.barista.internal.viewaction.NestedEnabledScrollToAction.nestedScrollToAction import org.hamcrest.Matcher import org.hamcrest.Matchers.allOf import org.hamcrest.Matchers.anyOf diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/BaristaException.kt b/library/src/main/java/com/adevinta/android/barista/internal/failurehandler/BaristaException.kt similarity index 60% rename from library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/BaristaException.kt rename to library/src/main/java/com/adevinta/android/barista/internal/failurehandler/BaristaException.kt index 9abfaeaa5..76673f6fd 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/BaristaException.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/failurehandler/BaristaException.kt @@ -1,3 +1,3 @@ -package com.schibsted.spain.barista.internal.failurehandler +package com.adevinta.android.barista.internal.failurehandler class BaristaException(message: String, cause: Throwable) : RuntimeException(message, cause) \ No newline at end of file diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/EspressoFailure.kt b/library/src/main/java/com/adevinta/android/barista/internal/failurehandler/EspressoFailure.kt similarity index 68% rename from library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/EspressoFailure.kt rename to library/src/main/java/com/adevinta/android/barista/internal/failurehandler/EspressoFailure.kt index 7f8a71734..c462304de 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/EspressoFailure.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/failurehandler/EspressoFailure.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.failurehandler +package com.adevinta.android.barista.internal.failurehandler import android.view.View import org.hamcrest.Matcher diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/EspressoFailureHandlerGetter.kt b/library/src/main/java/com/adevinta/android/barista/internal/failurehandler/EspressoFailureHandlerGetter.kt similarity index 100% rename from library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/EspressoFailureHandlerGetter.kt rename to library/src/main/java/com/adevinta/android/barista/internal/failurehandler/EspressoFailureHandlerGetter.kt diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/HelperFunctions.kt b/library/src/main/java/com/adevinta/android/barista/internal/failurehandler/HelperFunctions.kt similarity index 91% rename from library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/HelperFunctions.kt rename to library/src/main/java/com/adevinta/android/barista/internal/failurehandler/HelperFunctions.kt index fb3b74708..c1387a9be 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/HelperFunctions.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/failurehandler/HelperFunctions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.failurehandler +package com.adevinta.android.barista.internal.failurehandler import androidx.test.espresso.Espresso import androidx.test.espresso.FailureHandler diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/RethrowingFailureHandler.kt b/library/src/main/java/com/adevinta/android/barista/internal/failurehandler/RethrowingFailureHandler.kt similarity index 79% rename from library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/RethrowingFailureHandler.kt rename to library/src/main/java/com/adevinta/android/barista/internal/failurehandler/RethrowingFailureHandler.kt index 1d46fdba3..9e363f190 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/RethrowingFailureHandler.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/failurehandler/RethrowingFailureHandler.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.failurehandler +package com.adevinta.android.barista.internal.failurehandler import androidx.test.espresso.FailureHandler import android.view.View diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/SpyFailureHandler.kt b/library/src/main/java/com/adevinta/android/barista/internal/failurehandler/SpyFailureHandler.kt similarity index 94% rename from library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/SpyFailureHandler.kt rename to library/src/main/java/com/adevinta/android/barista/internal/failurehandler/SpyFailureHandler.kt index f4c1902b5..d614faddc 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/SpyFailureHandler.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/failurehandler/SpyFailureHandler.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.failurehandler +package com.adevinta.android.barista.internal.failurehandler import androidx.test.espresso.FailureHandler import androidx.test.espresso.getFailureHandler diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/BackgroundMatcher.kt b/library/src/main/java/com/adevinta/android/barista/internal/matcher/BackgroundMatcher.kt similarity index 91% rename from library/src/main/java/com/schibsted/spain/barista/internal/matcher/BackgroundMatcher.kt rename to library/src/main/java/com/adevinta/android/barista/internal/matcher/BackgroundMatcher.kt index 722b353ba..d48196482 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/BackgroundMatcher.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/matcher/BackgroundMatcher.kt @@ -1,10 +1,10 @@ -package com.schibsted.spain.barista.internal.matcher +package com.adevinta.android.barista.internal.matcher import android.graphics.drawable.ColorDrawable import androidx.annotation.DrawableRes import android.view.View -import com.schibsted.spain.barista.internal.util.BitmapComparator -import com.schibsted.spain.barista.internal.util.DrawableToBitmapConverter +import com.adevinta.android.barista.internal.util.BitmapComparator +import com.adevinta.android.barista.internal.util.DrawableToBitmapConverter import org.hamcrest.Description import org.hamcrest.TypeSafeMatcher diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/BooleanMatcher.kt b/library/src/main/java/com/adevinta/android/barista/internal/matcher/BooleanMatcher.kt similarity index 91% rename from library/src/main/java/com/schibsted/spain/barista/internal/matcher/BooleanMatcher.kt rename to library/src/main/java/com/adevinta/android/barista/internal/matcher/BooleanMatcher.kt index 37c0502cd..c4d7f58c7 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/BooleanMatcher.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/matcher/BooleanMatcher.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.matcher +package com.adevinta.android.barista.internal.matcher import android.view.View import org.hamcrest.Description diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/DisplayedMatchers.java b/library/src/main/java/com/adevinta/android/barista/internal/matcher/DisplayedMatchers.java similarity index 95% rename from library/src/main/java/com/schibsted/spain/barista/internal/matcher/DisplayedMatchers.java rename to library/src/main/java/com/adevinta/android/barista/internal/matcher/DisplayedMatchers.java index 25516348d..f7cfd94cc 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/DisplayedMatchers.java +++ b/library/src/main/java/com/adevinta/android/barista/internal/matcher/DisplayedMatchers.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.matcher; +package com.adevinta.android.barista.internal.matcher; import androidx.annotation.IdRes; import androidx.annotation.NonNull; diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/DrawableMatcher.kt b/library/src/main/java/com/adevinta/android/barista/internal/matcher/DrawableMatcher.kt similarity index 93% rename from library/src/main/java/com/schibsted/spain/barista/internal/matcher/DrawableMatcher.kt rename to library/src/main/java/com/adevinta/android/barista/internal/matcher/DrawableMatcher.kt index ad3ceed99..eb5878333 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/DrawableMatcher.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/matcher/DrawableMatcher.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.matcher +package com.adevinta.android.barista.internal.matcher import android.graphics.Bitmap import android.graphics.Color @@ -9,8 +9,8 @@ import androidx.annotation.DrawableRes import androidx.appcompat.content.res.AppCompatResources import androidx.core.graphics.drawable.DrawableCompat import com.google.android.material.button.MaterialButton -import com.schibsted.spain.barista.internal.util.BitmapComparator -import com.schibsted.spain.barista.internal.util.DrawableToBitmapConverter +import com.adevinta.android.barista.internal.util.BitmapComparator +import com.adevinta.android.barista.internal.util.DrawableToBitmapConverter import org.hamcrest.Description import org.hamcrest.TypeSafeMatcher diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/HelperMatchers.java b/library/src/main/java/com/adevinta/android/barista/internal/matcher/HelperMatchers.java similarity index 97% rename from library/src/main/java/com/schibsted/spain/barista/internal/matcher/HelperMatchers.java rename to library/src/main/java/com/adevinta/android/barista/internal/matcher/HelperMatchers.java index ac7a70466..64004079b 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/HelperMatchers.java +++ b/library/src/main/java/com/adevinta/android/barista/internal/matcher/HelperMatchers.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.matcher; +package com.adevinta.android.barista.internal.matcher; import androidx.annotation.IdRes; import androidx.test.espresso.matcher.BoundedMatcher; diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/ListViewItemCountAssertion.kt b/library/src/main/java/com/adevinta/android/barista/internal/matcher/ListViewItemCountAssertion.kt similarity index 92% rename from library/src/main/java/com/schibsted/spain/barista/internal/matcher/ListViewItemCountAssertion.kt rename to library/src/main/java/com/adevinta/android/barista/internal/matcher/ListViewItemCountAssertion.kt index b245818da..a80db2387 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/ListViewItemCountAssertion.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/matcher/ListViewItemCountAssertion.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.matcher +package com.adevinta.android.barista.internal.matcher import androidx.test.espresso.NoMatchingViewException import androidx.test.espresso.ViewAssertion diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/ListViewNotEmptyAssertion.kt b/library/src/main/java/com/adevinta/android/barista/internal/matcher/ListViewNotEmptyAssertion.kt similarity index 92% rename from library/src/main/java/com/schibsted/spain/barista/internal/matcher/ListViewNotEmptyAssertion.kt rename to library/src/main/java/com/adevinta/android/barista/internal/matcher/ListViewNotEmptyAssertion.kt index 38421c4e8..f074231fd 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/ListViewNotEmptyAssertion.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/matcher/ListViewNotEmptyAssertion.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.matcher +package com.adevinta.android.barista.internal.matcher import androidx.test.espresso.NoMatchingViewException import androidx.test.espresso.ViewAssertion diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/ProgressBarMatchers.kt b/library/src/main/java/com/adevinta/android/barista/internal/matcher/ProgressBarMatchers.kt similarity index 95% rename from library/src/main/java/com/schibsted/spain/barista/internal/matcher/ProgressBarMatchers.kt rename to library/src/main/java/com/adevinta/android/barista/internal/matcher/ProgressBarMatchers.kt index 8e1f1d1b8..133e2b5e6 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/ProgressBarMatchers.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/matcher/ProgressBarMatchers.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.matcher +package com.adevinta.android.barista.internal.matcher import androidx.test.espresso.matcher.BoundedMatcher import android.view.View diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/RecyclerViewItemCountAssertion.java b/library/src/main/java/com/adevinta/android/barista/internal/matcher/RecyclerViewItemCountAssertion.java similarity index 94% rename from library/src/main/java/com/schibsted/spain/barista/internal/matcher/RecyclerViewItemCountAssertion.java rename to library/src/main/java/com/adevinta/android/barista/internal/matcher/RecyclerViewItemCountAssertion.java index 45ec4dcfb..f75145b46 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/RecyclerViewItemCountAssertion.java +++ b/library/src/main/java/com/adevinta/android/barista/internal/matcher/RecyclerViewItemCountAssertion.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.matcher; +package com.adevinta.android.barista.internal.matcher; import androidx.test.espresso.NoMatchingViewException; import androidx.test.espresso.ViewAssertion; diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/RecyclerViewNotEmptyAssertion.kt b/library/src/main/java/com/adevinta/android/barista/internal/matcher/RecyclerViewNotEmptyAssertion.kt similarity index 92% rename from library/src/main/java/com/schibsted/spain/barista/internal/matcher/RecyclerViewNotEmptyAssertion.kt rename to library/src/main/java/com/adevinta/android/barista/internal/matcher/RecyclerViewNotEmptyAssertion.kt index 8b237a965..6ee6d149c 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/RecyclerViewNotEmptyAssertion.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/matcher/RecyclerViewNotEmptyAssertion.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.matcher +package com.adevinta.android.barista.internal.matcher import android.view.View import androidx.recyclerview.widget.RecyclerView diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/TextColorMatcher.kt b/library/src/main/java/com/adevinta/android/barista/internal/matcher/TextColorMatcher.kt similarity index 95% rename from library/src/main/java/com/schibsted/spain/barista/internal/matcher/TextColorMatcher.kt rename to library/src/main/java/com/adevinta/android/barista/internal/matcher/TextColorMatcher.kt index fe3627eb6..8068b9d61 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/TextColorMatcher.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/matcher/TextColorMatcher.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.matcher +package com.adevinta.android.barista.internal.matcher import android.content.Context import android.util.TypedValue @@ -6,8 +6,8 @@ import android.view.View import android.widget.TextView import androidx.core.content.ContextCompat import androidx.test.espresso.matcher.BoundedMatcher -import com.schibsted.spain.barista.internal.util.ColorResourceType -import com.schibsted.spain.barista.internal.util.colorResourceType +import com.adevinta.android.barista.internal.util.ColorResourceType +import com.adevinta.android.barista.internal.util.colorResourceType import org.hamcrest.Description class TextColorMatcher(private val expectedColor: Int) : BoundedMatcher(TextView::class.java) { diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/TextStyleableColorMatcher.kt b/library/src/main/java/com/adevinta/android/barista/internal/matcher/TextStyleableColorMatcher.kt similarity index 91% rename from library/src/main/java/com/schibsted/spain/barista/internal/matcher/TextStyleableColorMatcher.kt rename to library/src/main/java/com/adevinta/android/barista/internal/matcher/TextStyleableColorMatcher.kt index 904131f41..f7aff4ff5 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/matcher/TextStyleableColorMatcher.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/matcher/TextStyleableColorMatcher.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.matcher +package com.adevinta.android.barista.internal.matcher import android.content.res.ColorStateList import android.view.View import android.widget.TextView @@ -6,8 +6,8 @@ import androidx.annotation.AttrRes import androidx.annotation.StyleRes import androidx.annotation.StyleableRes import androidx.test.espresso.matcher.BoundedMatcher -import com.schibsted.spain.barista.internal.util.ColorResourceType -import com.schibsted.spain.barista.internal.util.colorResourceType +import com.adevinta.android.barista.internal.util.ColorResourceType +import com.adevinta.android.barista.internal.util.colorResourceType import org.hamcrest.Description class TextStyleableColorMatcher( diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/util/BitmapComparator.kt b/library/src/main/java/com/adevinta/android/barista/internal/util/BitmapComparator.kt similarity index 93% rename from library/src/main/java/com/schibsted/spain/barista/internal/util/BitmapComparator.kt rename to library/src/main/java/com/adevinta/android/barista/internal/util/BitmapComparator.kt index 0506f6961..1851a6514 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/util/BitmapComparator.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/util/BitmapComparator.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.util +package com.adevinta.android.barista.internal.util import android.graphics.Bitmap import java.util.Arrays diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/util/DrawableToBitmapConverter.kt b/library/src/main/java/com/adevinta/android/barista/internal/util/DrawableToBitmapConverter.kt similarity index 90% rename from library/src/main/java/com/schibsted/spain/barista/internal/util/DrawableToBitmapConverter.kt rename to library/src/main/java/com/adevinta/android/barista/internal/util/DrawableToBitmapConverter.kt index 1479ddd18..0133e34da 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/util/DrawableToBitmapConverter.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/util/DrawableToBitmapConverter.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.util +package com.adevinta.android.barista.internal.util import android.graphics.Bitmap import android.graphics.Canvas diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/util/ResourceType.kt b/library/src/main/java/com/adevinta/android/barista/internal/util/ResourceType.kt similarity index 96% rename from library/src/main/java/com/schibsted/spain/barista/internal/util/ResourceType.kt rename to library/src/main/java/com/adevinta/android/barista/internal/util/ResourceType.kt index 364174759..45309a0c9 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/util/ResourceType.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/util/ResourceType.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.util +package com.adevinta.android.barista.internal.util import android.content.Context import android.content.res.Resources diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/util/ViewTreeAnalyzer.java b/library/src/main/java/com/adevinta/android/barista/internal/util/ViewTreeAnalyzer.java similarity index 91% rename from library/src/main/java/com/schibsted/spain/barista/internal/util/ViewTreeAnalyzer.java rename to library/src/main/java/com/adevinta/android/barista/internal/util/ViewTreeAnalyzer.java index ee8bdb14c..3ec20453c 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/util/ViewTreeAnalyzer.java +++ b/library/src/main/java/com/adevinta/android/barista/internal/util/ViewTreeAnalyzer.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.util; +package com.adevinta.android.barista.internal.util; import android.view.View; import android.view.ViewGroup; diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/AutoCompleteViewActions.java b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/AutoCompleteViewActions.java similarity index 97% rename from library/src/main/java/com/schibsted/spain/barista/internal/viewaction/AutoCompleteViewActions.java rename to library/src/main/java/com/adevinta/android/barista/internal/viewaction/AutoCompleteViewActions.java index e035ffe9d..1e8fc7611 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/AutoCompleteViewActions.java +++ b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/AutoCompleteViewActions.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.viewaction; +package com.adevinta.android.barista.internal.viewaction; import androidx.test.espresso.UiController; import androidx.test.espresso.ViewAction; diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/ChipViewActions.kt b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/ChipViewActions.kt similarity index 93% rename from library/src/main/java/com/schibsted/spain/barista/internal/viewaction/ChipViewActions.kt rename to library/src/main/java/com/adevinta/android/barista/internal/viewaction/ChipViewActions.kt index d4e28cc9c..6efc166d7 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/ChipViewActions.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/ChipViewActions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.viewaction +package com.adevinta.android.barista.internal.viewaction import android.view.View import androidx.test.espresso.UiController diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/ClickChildAction.java b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/ClickChildAction.java similarity index 92% rename from library/src/main/java/com/schibsted/spain/barista/internal/viewaction/ClickChildAction.java rename to library/src/main/java/com/adevinta/android/barista/internal/viewaction/ClickChildAction.java index edb45b64e..d313c6d0c 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/ClickChildAction.java +++ b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/ClickChildAction.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.viewaction; +package com.adevinta.android.barista.internal.viewaction; import androidx.annotation.IdRes; import androidx.test.espresso.PerformException; @@ -7,8 +7,8 @@ import androidx.test.espresso.util.HumanReadables; import android.view.View; import android.widget.TextView; -import com.schibsted.spain.barista.internal.failurehandler.HelperFunctionsKt; -import com.schibsted.spain.barista.internal.util.ViewTreeAnalyzer; +import com.adevinta.android.barista.internal.failurehandler.HelperFunctionsKt; +import com.adevinta.android.barista.internal.util.ViewTreeAnalyzer; import org.hamcrest.Matcher; import static androidx.test.espresso.matcher.ViewMatchers.hasDescendant; diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/NestedEnabledScrollToAction.java b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/NestedEnabledScrollToAction.java similarity index 96% rename from library/src/main/java/com/schibsted/spain/barista/internal/viewaction/NestedEnabledScrollToAction.java rename to library/src/main/java/com/adevinta/android/barista/internal/viewaction/NestedEnabledScrollToAction.java index 0f4c81b86..87ce3639d 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/NestedEnabledScrollToAction.java +++ b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/NestedEnabledScrollToAction.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.viewaction; +package com.adevinta.android.barista.internal.viewaction; import androidx.test.espresso.UiController; import androidx.test.espresso.ViewAction; diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/PerformClickAction.java b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/PerformClickAction.java similarity index 95% rename from library/src/main/java/com/schibsted/spain/barista/internal/viewaction/PerformClickAction.java rename to library/src/main/java/com/adevinta/android/barista/internal/viewaction/PerformClickAction.java index 2e24a58e3..cd3e591f6 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/PerformClickAction.java +++ b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/PerformClickAction.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.viewaction; +package com.adevinta.android.barista.internal.viewaction; import androidx.test.espresso.UiController; import androidx.test.espresso.ViewAction; diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/RatingBarActions.kt b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/RatingBarActions.kt similarity index 96% rename from library/src/main/java/com/schibsted/spain/barista/internal/viewaction/RatingBarActions.kt rename to library/src/main/java/com/adevinta/android/barista/internal/viewaction/RatingBarActions.kt index 372a53c3b..d4bec6b50 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/RatingBarActions.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/RatingBarActions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.viewaction +package com.adevinta.android.barista.internal.viewaction import androidx.test.espresso.UiController import androidx.test.espresso.ViewAction diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/SeekBarActions.kt b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/SeekBarActions.kt similarity index 96% rename from library/src/main/java/com/schibsted/spain/barista/internal/viewaction/SeekBarActions.kt rename to library/src/main/java/com/adevinta/android/barista/internal/viewaction/SeekBarActions.kt index f271a59fe..681c95892 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/SeekBarActions.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/SeekBarActions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.viewaction +package com.adevinta.android.barista.internal.viewaction import androidx.test.espresso.UiController import androidx.test.espresso.ViewAction diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/SleepViewAction.java b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/SleepViewAction.java similarity index 92% rename from library/src/main/java/com/schibsted/spain/barista/internal/viewaction/SleepViewAction.java rename to library/src/main/java/com/adevinta/android/barista/internal/viewaction/SleepViewAction.java index 258f34836..552a507ef 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/SleepViewAction.java +++ b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/SleepViewAction.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.viewaction; +package com.adevinta.android.barista.internal.viewaction; import androidx.test.espresso.UiController; import androidx.test.espresso.ViewAction; diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/SwipeActions.kt b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/SwipeActions.kt similarity index 94% rename from library/src/main/java/com/schibsted/spain/barista/internal/viewaction/SwipeActions.kt rename to library/src/main/java/com/adevinta/android/barista/internal/viewaction/SwipeActions.kt index fed0133bc..484966421 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/SwipeActions.kt +++ b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/SwipeActions.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.viewaction +package com.adevinta.android.barista.internal.viewaction import android.view.View import android.view.ViewConfiguration @@ -19,10 +19,10 @@ import androidx.test.espresso.matcher.ViewMatchers.isAssignableFrom import androidx.test.espresso.matcher.ViewMatchers.isDescendantOfA import androidx.test.espresso.util.HumanReadables import androidx.viewpager2.widget.ViewPager2 -import com.schibsted.spain.barista.internal.viewaction.SwipeActions.swipeLeft -import com.schibsted.spain.barista.internal.viewaction.SwipeActions.swipeRight -import com.schibsted.spain.barista.internal.viewaction.ViewPager2SwipeAction.Direction.BACKWARD -import com.schibsted.spain.barista.internal.viewaction.ViewPager2SwipeAction.Direction.FORWARD +import com.adevinta.android.barista.internal.viewaction.SwipeActions.swipeLeft +import com.adevinta.android.barista.internal.viewaction.SwipeActions.swipeRight +import com.adevinta.android.barista.internal.viewaction.ViewPager2SwipeAction.Direction.BACKWARD +import com.adevinta.android.barista.internal.viewaction.ViewPager2SwipeAction.Direction.FORWARD import org.hamcrest.CoreMatchers.allOf import org.hamcrest.CoreMatchers.anyOf import org.hamcrest.Matcher diff --git a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/SwipeRefreshActions.java b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/SwipeRefreshActions.java similarity index 95% rename from library/src/main/java/com/schibsted/spain/barista/internal/viewaction/SwipeRefreshActions.java rename to library/src/main/java/com/adevinta/android/barista/internal/viewaction/SwipeRefreshActions.java index 95d51c31e..e7f72343e 100644 --- a/library/src/main/java/com/schibsted/spain/barista/internal/viewaction/SwipeRefreshActions.java +++ b/library/src/main/java/com/adevinta/android/barista/internal/viewaction/SwipeRefreshActions.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.internal.viewaction; +package com.adevinta.android.barista.internal.viewaction; import androidx.test.espresso.UiController; import androidx.test.espresso.ViewAction; diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/BaristaRule.kt b/library/src/main/java/com/adevinta/android/barista/rule/BaristaRule.kt similarity index 85% rename from library/src/main/java/com/schibsted/spain/barista/rule/BaristaRule.kt rename to library/src/main/java/com/adevinta/android/barista/rule/BaristaRule.kt index f3e8f7ae5..238475102 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/BaristaRule.kt +++ b/library/src/main/java/com/adevinta/android/barista/rule/BaristaRule.kt @@ -1,12 +1,12 @@ -package com.schibsted.spain.barista.rule +package com.adevinta.android.barista.rule import android.app.Activity import android.content.Intent import androidx.test.rule.ActivityTestRule -import com.schibsted.spain.barista.rule.cleardata.ClearDatabaseRule -import com.schibsted.spain.barista.rule.cleardata.ClearFilesRule -import com.schibsted.spain.barista.rule.cleardata.ClearPreferencesRule -import com.schibsted.spain.barista.rule.flaky.FlakyTestRule +import com.adevinta.android.barista.rule.cleardata.ClearDatabaseRule +import com.adevinta.android.barista.rule.cleardata.ClearFilesRule +import com.adevinta.android.barista.rule.cleardata.ClearPreferencesRule +import com.adevinta.android.barista.rule.flaky.FlakyTestRule import org.junit.rules.RuleChain import org.junit.rules.TestRule import org.junit.runner.Description diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/cleardata/ClearDatabaseRule.kt b/library/src/main/java/com/adevinta/android/barista/rule/cleardata/ClearDatabaseRule.kt similarity index 92% rename from library/src/main/java/com/schibsted/spain/barista/rule/cleardata/ClearDatabaseRule.kt rename to library/src/main/java/com/adevinta/android/barista/rule/cleardata/ClearDatabaseRule.kt index 8273becdf..5ba305853 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/cleardata/ClearDatabaseRule.kt +++ b/library/src/main/java/com/adevinta/android/barista/rule/cleardata/ClearDatabaseRule.kt @@ -1,6 +1,6 @@ -package com.schibsted.spain.barista.rule.cleardata +package com.adevinta.android.barista.rule.cleardata -import com.schibsted.spain.barista.rule.cleardata.internal.DatabaseOperations +import com.adevinta.android.barista.rule.cleardata.internal.DatabaseOperations import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/cleardata/ClearFilesRule.kt b/library/src/main/java/com/adevinta/android/barista/rule/cleardata/ClearFilesRule.kt similarity index 88% rename from library/src/main/java/com/schibsted/spain/barista/rule/cleardata/ClearFilesRule.kt rename to library/src/main/java/com/adevinta/android/barista/rule/cleardata/ClearFilesRule.kt index 338f2527f..905462493 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/cleardata/ClearFilesRule.kt +++ b/library/src/main/java/com/adevinta/android/barista/rule/cleardata/ClearFilesRule.kt @@ -1,6 +1,6 @@ -package com.schibsted.spain.barista.rule.cleardata +package com.adevinta.android.barista.rule.cleardata -import com.schibsted.spain.barista.rule.cleardata.internal.FileOperations +import com.adevinta.android.barista.rule.cleardata.internal.FileOperations import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/cleardata/ClearPreferencesRule.java b/library/src/main/java/com/adevinta/android/barista/rule/cleardata/ClearPreferencesRule.java similarity index 97% rename from library/src/main/java/com/schibsted/spain/barista/rule/cleardata/ClearPreferencesRule.java rename to library/src/main/java/com/adevinta/android/barista/rule/cleardata/ClearPreferencesRule.java index 9a46dbd05..08232eef7 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/cleardata/ClearPreferencesRule.java +++ b/library/src/main/java/com/adevinta/android/barista/rule/cleardata/ClearPreferencesRule.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.rule.cleardata; +package com.adevinta.android.barista.rule.cleardata; import android.content.Context; import android.content.SharedPreferences; diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/cleardata/internal/DatabaseOperations.kt b/library/src/main/java/com/adevinta/android/barista/rule/cleardata/internal/DatabaseOperations.kt similarity index 95% rename from library/src/main/java/com/schibsted/spain/barista/rule/cleardata/internal/DatabaseOperations.kt rename to library/src/main/java/com/adevinta/android/barista/rule/cleardata/internal/DatabaseOperations.kt index d14c7b003..11ce4ae91 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/cleardata/internal/DatabaseOperations.kt +++ b/library/src/main/java/com/adevinta/android/barista/rule/cleardata/internal/DatabaseOperations.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.rule.cleardata.internal +package com.adevinta.android.barista.rule.cleardata.internal import android.database.sqlite.SQLiteDatabase import androidx.test.platform.app.InstrumentationRegistry diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/cleardata/internal/FileOperations.kt b/library/src/main/java/com/adevinta/android/barista/rule/cleardata/internal/FileOperations.kt similarity index 91% rename from library/src/main/java/com/schibsted/spain/barista/rule/cleardata/internal/FileOperations.kt rename to library/src/main/java/com/adevinta/android/barista/rule/cleardata/internal/FileOperations.kt index beb74104f..1c5d63ef7 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/cleardata/internal/FileOperations.kt +++ b/library/src/main/java/com/adevinta/android/barista/rule/cleardata/internal/FileOperations.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.rule.cleardata.internal +package com.adevinta.android.barista.rule.cleardata.internal import android.content.Context import androidx.test.core.app.ApplicationProvider diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/AllowFlaky.java b/library/src/main/java/com/adevinta/android/barista/rule/flaky/AllowFlaky.java similarity index 92% rename from library/src/main/java/com/schibsted/spain/barista/rule/flaky/AllowFlaky.java rename to library/src/main/java/com/adevinta/android/barista/rule/flaky/AllowFlaky.java index 1c5f34e50..311a71a4c 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/AllowFlaky.java +++ b/library/src/main/java/com/adevinta/android/barista/rule/flaky/AllowFlaky.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.rule.flaky; +package com.adevinta.android.barista.rule.flaky; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/FlakyActivityTestRule.java b/library/src/main/java/com/adevinta/android/barista/rule/flaky/FlakyActivityTestRule.java similarity index 91% rename from library/src/main/java/com/schibsted/spain/barista/rule/flaky/FlakyActivityTestRule.java rename to library/src/main/java/com/adevinta/android/barista/rule/flaky/FlakyActivityTestRule.java index a24bf4e47..81dc5b328 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/FlakyActivityTestRule.java +++ b/library/src/main/java/com/adevinta/android/barista/rule/flaky/FlakyActivityTestRule.java @@ -1,9 +1,9 @@ -package com.schibsted.spain.barista.rule.flaky; +package com.adevinta.android.barista.rule.flaky; import android.app.Activity; import androidx.test.rule.ActivityTestRule; -import com.schibsted.spain.barista.rule.BaristaRule; -import com.schibsted.spain.barista.rule.flaky.internal.FlakyStatementBuilder; +import com.adevinta.android.barista.rule.BaristaRule; +import com.adevinta.android.barista.rule.flaky.internal.FlakyStatementBuilder; import org.junit.runner.Description; import org.junit.runners.model.Statement; diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/FlakyTestRule.kt b/library/src/main/java/com/adevinta/android/barista/rule/flaky/FlakyTestRule.kt similarity index 93% rename from library/src/main/java/com/schibsted/spain/barista/rule/flaky/FlakyTestRule.kt rename to library/src/main/java/com/adevinta/android/barista/rule/flaky/FlakyTestRule.kt index 335afbaab..eb653eed4 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/FlakyTestRule.kt +++ b/library/src/main/java/com/adevinta/android/barista/rule/flaky/FlakyTestRule.kt @@ -1,6 +1,6 @@ -package com.schibsted.spain.barista.rule.flaky +package com.adevinta.android.barista.rule.flaky -import com.schibsted.spain.barista.rule.flaky.internal.FlakyStatementBuilder +import com.adevinta.android.barista.rule.flaky.internal.FlakyStatementBuilder import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/Repeat.java b/library/src/main/java/com/adevinta/android/barista/rule/flaky/Repeat.java similarity index 91% rename from library/src/main/java/com/schibsted/spain/barista/rule/flaky/Repeat.java rename to library/src/main/java/com/adevinta/android/barista/rule/flaky/Repeat.java index 4f4210f0e..310f6f2c2 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/Repeat.java +++ b/library/src/main/java/com/adevinta/android/barista/rule/flaky/Repeat.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.rule.flaky; +package com.adevinta.android.barista.rule.flaky; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/internal/AllowFlakyStatement.java b/library/src/main/java/com/adevinta/android/barista/rule/flaky/internal/AllowFlakyStatement.java similarity index 86% rename from library/src/main/java/com/schibsted/spain/barista/rule/flaky/internal/AllowFlakyStatement.java rename to library/src/main/java/com/adevinta/android/barista/rule/flaky/internal/AllowFlakyStatement.java index 2c5987723..242469e6e 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/internal/AllowFlakyStatement.java +++ b/library/src/main/java/com/adevinta/android/barista/rule/flaky/internal/AllowFlakyStatement.java @@ -1,9 +1,9 @@ -package com.schibsted.spain.barista.rule.flaky.internal; +package com.adevinta.android.barista.rule.flaky.internal; import android.util.Log; import org.junit.runners.model.Statement; -import static com.schibsted.spain.barista.rule.flaky.internal.FlakyUtil.finishAllActivitiesOnUiThread; +import static com.adevinta.android.barista.rule.flaky.internal.FlakyUtil.finishAllActivitiesOnUiThread; public class AllowFlakyStatement extends Statement { diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/internal/FlakyStatementBuilder.java b/library/src/main/java/com/adevinta/android/barista/rule/flaky/internal/FlakyStatementBuilder.java similarity index 92% rename from library/src/main/java/com/schibsted/spain/barista/rule/flaky/internal/FlakyStatementBuilder.java rename to library/src/main/java/com/adevinta/android/barista/rule/flaky/internal/FlakyStatementBuilder.java index 1fd6d3fef..b4076cc97 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/internal/FlakyStatementBuilder.java +++ b/library/src/main/java/com/adevinta/android/barista/rule/flaky/internal/FlakyStatementBuilder.java @@ -1,7 +1,7 @@ -package com.schibsted.spain.barista.rule.flaky.internal; +package com.adevinta.android.barista.rule.flaky.internal; -import com.schibsted.spain.barista.rule.flaky.AllowFlaky; -import com.schibsted.spain.barista.rule.flaky.Repeat; +import com.adevinta.android.barista.rule.flaky.AllowFlaky; +import com.adevinta.android.barista.rule.flaky.Repeat; import org.junit.runner.Description; import org.junit.runners.model.Statement; diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/internal/FlakyUtil.java b/library/src/main/java/com/adevinta/android/barista/rule/flaky/internal/FlakyUtil.java similarity index 96% rename from library/src/main/java/com/schibsted/spain/barista/rule/flaky/internal/FlakyUtil.java rename to library/src/main/java/com/adevinta/android/barista/rule/flaky/internal/FlakyUtil.java index a45e88d4f..6080d4018 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/internal/FlakyUtil.java +++ b/library/src/main/java/com/adevinta/android/barista/rule/flaky/internal/FlakyUtil.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.rule.flaky.internal; +package com.adevinta.android.barista.rule.flaky.internal; import android.app.Activity; import androidx.test.InstrumentationRegistry; diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/internal/RepeatStatement.java b/library/src/main/java/com/adevinta/android/barista/rule/flaky/internal/RepeatStatement.java similarity index 93% rename from library/src/main/java/com/schibsted/spain/barista/rule/flaky/internal/RepeatStatement.java rename to library/src/main/java/com/adevinta/android/barista/rule/flaky/internal/RepeatStatement.java index cbbd6be2a..c3b613f84 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/flaky/internal/RepeatStatement.java +++ b/library/src/main/java/com/adevinta/android/barista/rule/flaky/internal/RepeatStatement.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.rule.flaky.internal; +package com.adevinta.android.barista.rule.flaky.internal; import android.util.Log; import org.junit.runners.model.Statement; diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/theme/DayNightRule.kt b/library/src/main/java/com/adevinta/android/barista/rule/theme/DayNightRule.kt similarity index 91% rename from library/src/main/java/com/schibsted/spain/barista/rule/theme/DayNightRule.kt rename to library/src/main/java/com/adevinta/android/barista/rule/theme/DayNightRule.kt index a09bee859..01df501f5 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/theme/DayNightRule.kt +++ b/library/src/main/java/com/adevinta/android/barista/rule/theme/DayNightRule.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.rule.theme +package com.adevinta.android.barista.rule.theme import androidx.appcompat.app.AppCompatDelegate import org.junit.rules.TestRule diff --git a/library/src/main/java/com/schibsted/spain/barista/rule/theme/DayNightStatement.kt b/library/src/main/java/com/adevinta/android/barista/rule/theme/DayNightStatement.kt similarity index 96% rename from library/src/main/java/com/schibsted/spain/barista/rule/theme/DayNightStatement.kt rename to library/src/main/java/com/adevinta/android/barista/rule/theme/DayNightStatement.kt index 173a7e1dd..f7812a737 100644 --- a/library/src/main/java/com/schibsted/spain/barista/rule/theme/DayNightStatement.kt +++ b/library/src/main/java/com/adevinta/android/barista/rule/theme/DayNightStatement.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.rule.theme +package com.adevinta.android.barista.rule.theme import android.os.Handler import android.os.Looper diff --git a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaChipInteractions.kt b/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaChipInteractions.kt deleted file mode 100644 index 2d3f62f1f..000000000 --- a/library/src/main/java/com/schibsted/spain/barista/interaction/BaristaChipInteractions.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.schibsted.spain.barista.interaction - -import com.schibsted.spain.barista.internal.performAction -import com.schibsted.spain.barista.internal.util.resourceMatcher -import com.schibsted.spain.barista.internal.viewaction.ChipViewActions.removeChip - -object BaristaChipInteractions { - - @JvmStatic - fun closeChip(resId: Int) { - resId.resourceMatcher().performAction(removeChip()) - } -} diff --git a/library/src/test/java/com/schibsted/spain/barista/cleardata/ClearDatabaseRuleTest.java b/library/src/test/java/com/adevinta/android/barista/cleardata/ClearDatabaseRuleTest.java similarity index 96% rename from library/src/test/java/com/schibsted/spain/barista/cleardata/ClearDatabaseRuleTest.java rename to library/src/test/java/com/adevinta/android/barista/cleardata/ClearDatabaseRuleTest.java index 2c2df2906..8a0a4d063 100644 --- a/library/src/test/java/com/schibsted/spain/barista/cleardata/ClearDatabaseRuleTest.java +++ b/library/src/test/java/com/adevinta/android/barista/cleardata/ClearDatabaseRuleTest.java @@ -1,8 +1,8 @@ -package com.schibsted.spain.barista.cleardata; +package com.adevinta.android.barista.cleardata; import android.database.sqlite.SQLiteDatabase; -import com.schibsted.spain.barista.rule.cleardata.ClearDatabaseRule; -import com.schibsted.spain.barista.rule.cleardata.internal.DatabaseOperations; +import com.adevinta.android.barista.rule.cleardata.ClearDatabaseRule; +import com.adevinta.android.barista.rule.cleardata.internal.DatabaseOperations; import java.io.File; import java.util.List; import junitparams.JUnitParamsRunner; diff --git a/library/src/test/java/com/schibsted/spain/barista/rule/cleardata/ClearFilesRuleTest.kt b/library/src/test/java/com/adevinta/android/barista/rule/cleardata/ClearFilesRuleTest.kt similarity index 91% rename from library/src/test/java/com/schibsted/spain/barista/rule/cleardata/ClearFilesRuleTest.kt rename to library/src/test/java/com/adevinta/android/barista/rule/cleardata/ClearFilesRuleTest.kt index 4c2dffdb3..24abc4be4 100644 --- a/library/src/test/java/com/schibsted/spain/barista/rule/cleardata/ClearFilesRuleTest.kt +++ b/library/src/test/java/com/adevinta/android/barista/rule/cleardata/ClearFilesRuleTest.kt @@ -1,6 +1,6 @@ -package com.schibsted.spain.barista.rule.cleardata +package com.adevinta.android.barista.rule.cleardata -import com.schibsted.spain.barista.rule.cleardata.internal.FileOperations +import com.adevinta.android.barista.rule.cleardata.internal.FileOperations import org.junit.Rule import org.junit.Test import org.junit.rules.TestRule diff --git a/library/src/test/java/com/schibsted/spain/barista/rule/flaky/FlakyStatementBuilderTest.java b/library/src/test/java/com/adevinta/android/barista/rule/flaky/FlakyStatementBuilderTest.java similarity index 94% rename from library/src/test/java/com/schibsted/spain/barista/rule/flaky/FlakyStatementBuilderTest.java rename to library/src/test/java/com/adevinta/android/barista/rule/flaky/FlakyStatementBuilderTest.java index 1e7816bae..d84c97590 100644 --- a/library/src/test/java/com/schibsted/spain/barista/rule/flaky/FlakyStatementBuilderTest.java +++ b/library/src/test/java/com/adevinta/android/barista/rule/flaky/FlakyStatementBuilderTest.java @@ -1,8 +1,8 @@ -package com.schibsted.spain.barista.rule.flaky; +package com.adevinta.android.barista.rule.flaky; -import com.schibsted.spain.barista.rule.flaky.internal.AllowFlakyStatement; -import com.schibsted.spain.barista.rule.flaky.internal.FlakyStatementBuilder; -import com.schibsted.spain.barista.rule.flaky.internal.RepeatStatement; +import com.adevinta.android.barista.rule.flaky.internal.AllowFlakyStatement; +import com.adevinta.android.barista.rule.flaky.internal.FlakyStatementBuilder; +import com.adevinta.android.barista.rule.flaky.internal.RepeatStatement; import java.lang.annotation.Annotation; import org.junit.Test; import org.junit.runner.Description; diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/AssertAnyTest.kt b/sample/src/androidTest/java/com/adevinta/android/barista/sample/AssertAnyTest.kt similarity index 88% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/AssertAnyTest.kt rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/AssertAnyTest.kt index 206d1e077..dd5271527 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/AssertAnyTest.kt +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/AssertAnyTest.kt @@ -1,14 +1,14 @@ -package com.schibsted.spain.barista.sample +package com.adevinta.android.barista.sample import androidx.test.espresso.matcher.ViewMatchers.withId import androidx.test.rule.ActivityTestRule import androidx.test.runner.AndroidJUnit4 import android.widget.EditText import android.widget.ImageView -import com.schibsted.spain.barista.assertion.BaristaAssertions.assertAny -import com.schibsted.spain.barista.interaction.BaristaEditTextInteractions.writeTo -import com.schibsted.spain.barista.internal.failurehandler.BaristaException -import com.schibsted.spain.barista.sample.util.SpyFailureHandlerRule +import com.adevinta.android.barista.assertion.BaristaAssertions.assertAny +import com.adevinta.android.barista.interaction.BaristaEditTextInteractions.writeTo +import com.adevinta.android.barista.internal.failurehandler.BaristaException +import com.adevinta.android.barista.sample.util.SpyFailureHandlerRule import org.assertj.core.api.Assertions.assertThat import org.assertj.core.api.ThrowableAssert.catchThrowable import org.junit.Rule diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/AssertionsTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/AssertionsTest.java similarity index 83% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/AssertionsTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/AssertionsTest.java index 5c201cbd7..39154c4c2 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/AssertionsTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/AssertionsTest.java @@ -1,34 +1,34 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.internal.failurehandler.BaristaException; -import com.schibsted.spain.barista.internal.util.BaristaResourceTypeException; +import com.adevinta.android.barista.internal.failurehandler.BaristaException; +import com.adevinta.android.barista.internal.util.BaristaResourceTypeException; import junit.framework.AssertionFailedError; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaAssertions.assertThatBackButtonClosesTheApp; -import static com.schibsted.spain.barista.assertion.BaristaBackgroundAssertions.assertHasAnyBackground; -import static com.schibsted.spain.barista.assertion.BaristaBackgroundAssertions.assertHasBackground; -import static com.schibsted.spain.barista.assertion.BaristaBackgroundAssertions.assertHasNoBackground; -import static com.schibsted.spain.barista.assertion.BaristaCheckedAssertions.assertChecked; -import static com.schibsted.spain.barista.assertion.BaristaCheckedAssertions.assertUnchecked; -import static com.schibsted.spain.barista.assertion.BaristaClickableAssertions.assertClickable; -import static com.schibsted.spain.barista.assertion.BaristaClickableAssertions.assertNotClickable; -import static com.schibsted.spain.barista.assertion.BaristaEnabledAssertions.assertDisabled; -import static com.schibsted.spain.barista.assertion.BaristaEnabledAssertions.assertEnabled; -import static com.schibsted.spain.barista.assertion.BaristaFocusedAssertions.assertFocused; -import static com.schibsted.spain.barista.assertion.BaristaFocusedAssertions.assertNotFocused; -import static com.schibsted.spain.barista.assertion.BaristaImageViewAssertions.assertHasAnyDrawable; -import static com.schibsted.spain.barista.assertion.BaristaImageViewAssertions.assertHasDrawable; -import static com.schibsted.spain.barista.assertion.BaristaImageViewAssertions.assertHasNoDrawable; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertContains; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertNotContains; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertNotDisplayed; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertNotExist; +import static com.adevinta.android.barista.assertion.BaristaAssertions.assertThatBackButtonClosesTheApp; +import static com.adevinta.android.barista.assertion.BaristaBackgroundAssertions.assertHasAnyBackground; +import static com.adevinta.android.barista.assertion.BaristaBackgroundAssertions.assertHasBackground; +import static com.adevinta.android.barista.assertion.BaristaBackgroundAssertions.assertHasNoBackground; +import static com.adevinta.android.barista.assertion.BaristaCheckedAssertions.assertChecked; +import static com.adevinta.android.barista.assertion.BaristaCheckedAssertions.assertUnchecked; +import static com.adevinta.android.barista.assertion.BaristaClickableAssertions.assertClickable; +import static com.adevinta.android.barista.assertion.BaristaClickableAssertions.assertNotClickable; +import static com.adevinta.android.barista.assertion.BaristaEnabledAssertions.assertDisabled; +import static com.adevinta.android.barista.assertion.BaristaEnabledAssertions.assertEnabled; +import static com.adevinta.android.barista.assertion.BaristaFocusedAssertions.assertFocused; +import static com.adevinta.android.barista.assertion.BaristaFocusedAssertions.assertNotFocused; +import static com.adevinta.android.barista.assertion.BaristaImageViewAssertions.assertHasAnyDrawable; +import static com.adevinta.android.barista.assertion.BaristaImageViewAssertions.assertHasDrawable; +import static com.adevinta.android.barista.assertion.BaristaImageViewAssertions.assertHasNoDrawable; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertContains; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertNotContains; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertNotDisplayed; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertNotExist; import static junit.framework.Assert.fail; @RunWith(AndroidJUnit4.class) diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/AutoCompleteTextViewTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/AutoCompleteTextViewTest.java similarity index 74% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/AutoCompleteTextViewTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/AutoCompleteTextViewTest.java index 84a695e34..85ac9c22b 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/AutoCompleteTextViewTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/AutoCompleteTextViewTest.java @@ -1,14 +1,14 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaAutoCompleteTextViewInteractions.writeToAutoComplete; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaAutoCompleteTextViewInteractions.writeToAutoComplete; @RunWith(AndroidJUnit4.class) public class AutoCompleteTextViewTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/BaristaRuleActivityTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/BaristaRuleActivityTest.java similarity index 86% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/BaristaRuleActivityTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/BaristaRuleActivityTest.java index 9b5323607..0d82d137c 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/BaristaRuleActivityTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/BaristaRuleActivityTest.java @@ -1,7 +1,7 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.rule.BaristaRule; +import com.adevinta.android.barista.rule.BaristaRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/CameraTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/CameraTest.java similarity index 59% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/CameraTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/CameraTest.java index b688986cb..43e5dacc8 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/CameraTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/CameraTest.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.espresso.intent.rule.IntentsTestRule; import androidx.test.runner.AndroidJUnit4; @@ -6,10 +6,10 @@ import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaImageViewAssertions.assertHasAnyDrawable; -import static com.schibsted.spain.barista.assertion.BaristaImageViewAssertions.assertHasNoDrawable; -import static com.schibsted.spain.barista.intents.BaristaIntents.mockAndroidCamera; -import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickOn; +import static com.adevinta.android.barista.assertion.BaristaImageViewAssertions.assertHasAnyDrawable; +import static com.adevinta.android.barista.assertion.BaristaImageViewAssertions.assertHasNoDrawable; +import static com.adevinta.android.barista.intents.BaristaIntents.mockAndroidCamera; +import static com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn; @RunWith(AndroidJUnit4.class) public class CameraTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ChipsTest.kt b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ChipsTest.kt similarity index 61% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ChipsTest.kt rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ChipsTest.kt index c2c3668a9..7fe47de79 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ChipsTest.kt +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ChipsTest.kt @@ -1,14 +1,14 @@ -package com.schibsted.spain.barista.sample +package com.adevinta.android.barista.sample import androidx.test.rule.ActivityTestRule -import com.schibsted.spain.barista.assertion.BaristaCheckedAssertions.assertChecked -import com.schibsted.spain.barista.assertion.BaristaCheckedAssertions.assertUnchecked -import com.schibsted.spain.barista.assertion.BaristaChipAssertions.assertAnyChipSelected -import com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed -import com.schibsted.spain.barista.interaction.BaristaChipInteractions.closeChip -import com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickOn -import com.schibsted.spain.barista.internal.failurehandler.BaristaException -import com.schibsted.spain.barista.sample.util.SpyFailureHandlerRule +import com.adevinta.android.barista.assertion.BaristaCheckedAssertions.assertChecked +import com.adevinta.android.barista.assertion.BaristaCheckedAssertions.assertUnchecked +import com.adevinta.android.barista.assertion.BaristaChipAssertions.assertAnyChipSelected +import com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed +import com.adevinta.android.barista.interaction.BaristaChipInteractions.closeChip +import com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn +import com.adevinta.android.barista.internal.failurehandler.BaristaException +import com.adevinta.android.barista.sample.util.SpyFailureHandlerRule import junit.framework.AssertionFailedError import org.assertj.core.api.Assertions.assertThat import org.assertj.core.api.ThrowableAssert.catchThrowable @@ -44,7 +44,7 @@ class ChipsTest { spyFailureHandlerRule.assertEspressoFailures(1) assertThat(thrown).isInstanceOf(BaristaException::class.java) - .hasMessage("View (with id: com.schibsted.spain.barista.sample:id/checkedChip) didn't match condition (not with checkbox state: is )") + .hasMessage("View (with id: com.adevinta.android.barista.sample:id/checkedChip) didn't match condition (not with checkbox state: is )") .hasCauseInstanceOf(AssertionFailedError::class.java) } @@ -64,7 +64,7 @@ class ChipsTest { spyFailureHandlerRule.assertEspressoFailures(1) assertThat(thrown).isInstanceOf(BaristaException::class.java) - .hasMessage("View (with id: com.schibsted.spain.barista.sample:id/singleSelectionChildGroup) didn't match condition (custom condition [use `assertionDescription` parameter on `assertAny` to setup descriptive message])") + .hasMessage("View (with id: com.adevinta.android.barista.sample:id/singleSelectionChildGroup) didn't match condition (custom condition [use `assertionDescription` parameter on `assertAny` to setup descriptive message])") .hasCauseInstanceOf(AssertionFailedError::class.java) } diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ClearDatabaseRuleTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ClearDatabaseRuleTest.java similarity index 78% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ClearDatabaseRuleTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ClearDatabaseRuleTest.java index f2a19a2a4..fc3d0a6b0 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ClearDatabaseRuleTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ClearDatabaseRuleTest.java @@ -1,12 +1,12 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; -import com.schibsted.spain.barista.rule.cleardata.ClearDatabaseRule; +import com.adevinta.android.barista.rule.cleardata.ClearDatabaseRule; import org.junit.Rule; import org.junit.Test; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickOn; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn; public class ClearDatabaseRuleTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ClearFilesRuleTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ClearFilesRuleTest.java similarity index 86% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ClearFilesRuleTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ClearFilesRuleTest.java index 6431384bb..308128722 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ClearFilesRuleTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ClearFilesRuleTest.java @@ -1,13 +1,13 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.content.Intent; import androidx.test.rule.ActivityTestRule; -import com.schibsted.spain.barista.rule.cleardata.ClearFilesRule; +import com.adevinta.android.barista.rule.cleardata.ClearFilesRule; import org.junit.Rule; import org.junit.Test; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickOn; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn; public class ClearFilesRuleTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ClearPreferencesRuleTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ClearPreferencesRuleTest.java similarity index 79% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ClearPreferencesRuleTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ClearPreferencesRuleTest.java index c83ff5979..7f918aa95 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ClearPreferencesRuleTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ClearPreferencesRuleTest.java @@ -1,12 +1,12 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; -import com.schibsted.spain.barista.rule.cleardata.ClearPreferencesRule; +import com.adevinta.android.barista.rule.cleardata.ClearPreferencesRule; import org.junit.Rule; import org.junit.Test; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickOn; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn; public class ClearPreferencesRuleTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ClickInsideViewPagerTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ClickInsideViewPagerTest.java similarity index 76% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ClickInsideViewPagerTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ClickInsideViewPagerTest.java index b98bd968a..7928d33b8 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ClickInsideViewPagerTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ClickInsideViewPagerTest.java @@ -1,14 +1,14 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickOn; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn; @RunWith(AndroidJUnit4.class) public class ClickInsideViewPagerTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ClickTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ClickTest.java similarity index 81% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ClickTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ClickTest.java index e5607f168..99a2c6c28 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ClickTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ClickTest.java @@ -1,15 +1,15 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickBack; -import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickOn; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaClickInteractions.clickBack; +import static com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn; @RunWith(AndroidJUnit4.class) public class ClickTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ColorResourceTypeTest.kt b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ColorResourceTypeTest.kt similarity index 81% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ColorResourceTypeTest.kt rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ColorResourceTypeTest.kt index 15f3b49c8..7186a46e2 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ColorResourceTypeTest.kt +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ColorResourceTypeTest.kt @@ -1,8 +1,8 @@ -package com.schibsted.spain.barista.sample +package com.adevinta.android.barista.sample import android.graphics.Color -import com.schibsted.spain.barista.internal.util.ColorResourceType -import com.schibsted.spain.barista.internal.util.colorResourceType +import com.adevinta.android.barista.internal.util.ColorResourceType +import com.adevinta.android.barista.internal.util.colorResourceType import junit.framework.Assert.assertEquals import org.junit.Test diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ColorsSecondaryTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ColorsSecondaryTest.java similarity index 79% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ColorsSecondaryTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ColorsSecondaryTest.java index bb2d87cb5..3b2b60aad 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ColorsSecondaryTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ColorsSecondaryTest.java @@ -1,15 +1,15 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.internal.failurehandler.BaristaException; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.internal.failurehandler.BaristaException; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertTextColorIs; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertTextColorIsNot; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertTextColorIs; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertTextColorIsNot; @RunWith(AndroidJUnit4.class) public class ColorsSecondaryTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ColorsTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ColorsTest.java similarity index 91% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ColorsTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ColorsTest.java index 5451d7c3c..6193a567e 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ColorsTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ColorsTest.java @@ -1,16 +1,16 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.graphics.Color; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.internal.failurehandler.BaristaException; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.internal.failurehandler.BaristaException; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertTextColorIs; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertTextColorIsNot; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertTextColorIs; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertTextColorIsNot; @RunWith(AndroidJUnit4.class) public class ColorsTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ContentDescriptionTest.kt b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ContentDescriptionTest.kt similarity index 76% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ContentDescriptionTest.kt rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ContentDescriptionTest.kt index ae2a5e0d7..5c174b26b 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ContentDescriptionTest.kt +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ContentDescriptionTest.kt @@ -1,10 +1,10 @@ -package com.schibsted.spain.barista.sample +package com.adevinta.android.barista.sample import androidx.test.rule.ActivityTestRule -import com.schibsted.spain.barista.assertion.BaristaContentDescriptionAssertions.assertContentDescription -import com.schibsted.spain.barista.assertion.BaristaContentDescriptionAssertions.assertHasContentDescription -import com.schibsted.spain.barista.internal.failurehandler.BaristaException -import com.schibsted.spain.barista.sample.util.SpyFailureHandlerRule +import com.adevinta.android.barista.assertion.BaristaContentDescriptionAssertions.assertContentDescription +import com.adevinta.android.barista.assertion.BaristaContentDescriptionAssertions.assertHasContentDescription +import com.adevinta.android.barista.internal.failurehandler.BaristaException +import com.adevinta.android.barista.sample.util.SpyFailureHandlerRule import org.assertj.core.api.Assertions.assertThat import org.assertj.core.api.Assertions.catchThrowable import org.junit.Rule @@ -35,7 +35,7 @@ class ContentDescriptionTest { spyFailureHandlerRule.assertEspressoFailures(1) assertThat(thrown).isInstanceOf(BaristaException::class.java) - .hasMessage("View (with id: com.schibsted.spain.barista.sample:id/imageGreen) " + + .hasMessage("View (with id: com.adevinta.android.barista.sample:id/imageGreen) " + "didn't match condition (with content description: Image color green)") } @@ -48,7 +48,7 @@ class ContentDescriptionTest { spyFailureHandlerRule.assertEspressoFailures(1) assertThat(thrown).isInstanceOf(BaristaException::class.java) - .hasMessage("View (with id: com.schibsted.spain.barista.sample:id/imageGreen) " + + .hasMessage("View (with id: com.adevinta.android.barista.sample:id/imageGreen) " + "didn't match condition (with content description)") } diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/DayNightTestRuleTest.kt b/sample/src/androidTest/java/com/adevinta/android/barista/sample/DayNightTestRuleTest.kt similarity index 88% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/DayNightTestRuleTest.kt rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/DayNightTestRuleTest.kt index 143ad833b..e4d98865d 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/DayNightTestRuleTest.kt +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/DayNightTestRuleTest.kt @@ -1,11 +1,11 @@ -package com.schibsted.spain.barista.sample +package com.adevinta.android.barista.sample import androidx.test.espresso.Espresso.onView import androidx.test.espresso.assertion.ViewAssertions.matches import androidx.test.espresso.matcher.ViewMatchers.isDisplayed import androidx.test.espresso.matcher.ViewMatchers.withId import androidx.test.rule.ActivityTestRule -import com.schibsted.spain.barista.rule.theme.DayNightRule +import com.adevinta.android.barista.rule.theme.DayNightRule import org.junit.Rule import org.junit.Test diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/DialogActivityTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/DialogActivityTest.java similarity index 57% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/DialogActivityTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/DialogActivityTest.java index e6db4e436..65628d2cf 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/DialogActivityTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/DialogActivityTest.java @@ -1,18 +1,18 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickOn; -import static com.schibsted.spain.barista.interaction.BaristaDialogInteractions.clickDialogNegativeButton; -import static com.schibsted.spain.barista.interaction.BaristaDialogInteractions.clickDialogNeutralButton; -import static com.schibsted.spain.barista.interaction.BaristaDialogInteractions.clickDialogPositiveButton; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn; +import static com.adevinta.android.barista.interaction.BaristaDialogInteractions.clickDialogNegativeButton; +import static com.adevinta.android.barista.interaction.BaristaDialogInteractions.clickDialogNeutralButton; +import static com.adevinta.android.barista.interaction.BaristaDialogInteractions.clickDialogPositiveButton; @RunWith(AndroidJUnit4.class) public class DialogActivityTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/DrawerActivityTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/DrawerActivityTest.java similarity index 54% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/DrawerActivityTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/DrawerActivityTest.java index 8366da0c0..bd38287ef 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/DrawerActivityTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/DrawerActivityTest.java @@ -1,23 +1,23 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; import androidx.core.view.GravityCompat; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaDrawerAssertions.assertDrawerIsClosed; -import static com.schibsted.spain.barista.assertion.BaristaDrawerAssertions.assertDrawerIsClosedWithGravity; -import static com.schibsted.spain.barista.assertion.BaristaDrawerAssertions.assertDrawerIsOpen; -import static com.schibsted.spain.barista.assertion.BaristaDrawerAssertions.assertDrawerIsOpenWithGravity; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertNotDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaDrawerInteractions.closeDrawer; -import static com.schibsted.spain.barista.interaction.BaristaDrawerInteractions.closeDrawerWithGravity; -import static com.schibsted.spain.barista.interaction.BaristaDrawerInteractions.openDrawer; -import static com.schibsted.spain.barista.interaction.BaristaDrawerInteractions.openDrawerWithGravity; +import static com.adevinta.android.barista.assertion.BaristaDrawerAssertions.assertDrawerIsClosed; +import static com.adevinta.android.barista.assertion.BaristaDrawerAssertions.assertDrawerIsClosedWithGravity; +import static com.adevinta.android.barista.assertion.BaristaDrawerAssertions.assertDrawerIsOpen; +import static com.adevinta.android.barista.assertion.BaristaDrawerAssertions.assertDrawerIsOpenWithGravity; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertNotDisplayed; +import static com.adevinta.android.barista.interaction.BaristaDrawerInteractions.closeDrawer; +import static com.adevinta.android.barista.interaction.BaristaDrawerInteractions.closeDrawerWithGravity; +import static com.adevinta.android.barista.interaction.BaristaDrawerInteractions.openDrawer; +import static com.adevinta.android.barista.interaction.BaristaDrawerInteractions.openDrawerWithGravity; @RunWith(AndroidJUnit4.class) public class DrawerActivityTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/EditTextTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/EditTextTest.java similarity index 75% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/EditTextTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/EditTextTest.java index 8cb856fae..ac400910b 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/EditTextTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/EditTextTest.java @@ -1,17 +1,17 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaHintAssertions.assertHint; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaEditTextInteractions.clearText; -import static com.schibsted.spain.barista.interaction.BaristaEditTextInteractions.typeTo; -import static com.schibsted.spain.barista.interaction.BaristaEditTextInteractions.writeTo; +import static com.adevinta.android.barista.assertion.BaristaHintAssertions.assertHint; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaEditTextInteractions.clearText; +import static com.adevinta.android.barista.interaction.BaristaEditTextInteractions.typeTo; +import static com.adevinta.android.barista.interaction.BaristaEditTextInteractions.writeTo; @RunWith(AndroidJUnit4.class) public class EditTextTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/FailureHandlerTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/FailureHandlerTest.java similarity index 87% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/FailureHandlerTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/FailureHandlerTest.java index c4474f705..e64391a04 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/FailureHandlerTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/FailureHandlerTest.java @@ -1,8 +1,8 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.espresso.Espresso; import androidx.test.rule.ActivityTestRule; -import com.schibsted.spain.barista.internal.failurehandler.SpyFailureHandler; +import com.adevinta.android.barista.internal.failurehandler.SpyFailureHandler; import org.junit.Before; import org.junit.Rule; import org.junit.Test; @@ -11,7 +11,7 @@ import static androidx.test.espresso.assertion.ViewAssertions.matches; import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; import static androidx.test.espresso.matcher.ViewMatchers.withText; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; import static org.junit.Assert.assertEquals; public class FailureHandlerTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/FlakyTestRuleTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/FlakyTestRuleTest.java similarity index 86% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/FlakyTestRuleTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/FlakyTestRuleTest.java index 0f3484397..c08de86fa 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/FlakyTestRuleTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/FlakyTestRuleTest.java @@ -1,9 +1,9 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; -import com.schibsted.spain.barista.rule.flaky.AllowFlaky; -import com.schibsted.spain.barista.rule.flaky.FlakyTestRule; -import com.schibsted.spain.barista.rule.flaky.Repeat; +import com.adevinta.android.barista.rule.flaky.AllowFlaky; +import com.adevinta.android.barista.rule.flaky.FlakyTestRule; +import com.adevinta.android.barista.rule.flaky.Repeat; import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/HelperTextTest.kt b/sample/src/androidTest/java/com/adevinta/android/barista/sample/HelperTextTest.kt similarity index 80% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/HelperTextTest.kt rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/HelperTextTest.kt index f2478c1c7..8914ef873 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/HelperTextTest.kt +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/HelperTextTest.kt @@ -1,8 +1,8 @@ -package com.schibsted.spain.barista.sample +package com.adevinta.android.barista.sample import androidx.test.rule.ActivityTestRule import androidx.test.runner.AndroidJUnit4 -import com.schibsted.spain.barista.assertion.BaristaAssistiveTextAssertions.assertAssistiveText +import com.adevinta.android.barista.assertion.BaristaAssistiveTextAssertions.assertAssistiveText import org.junit.Rule import org.junit.Test import org.junit.runner.RunWith diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/HintAndErrorTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/HintAndErrorTest.java similarity index 85% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/HintAndErrorTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/HintAndErrorTest.java index 0304d2989..9691bfe3d 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/HintAndErrorTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/HintAndErrorTest.java @@ -1,16 +1,16 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.internal.failurehandler.BaristaException; +import com.adevinta.android.barista.internal.failurehandler.BaristaException; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaErrorAssertions.assertErrorDisplayed; -import static com.schibsted.spain.barista.assertion.BaristaErrorAssertions.assertNoErrorDisplayed; -import static com.schibsted.spain.barista.assertion.BaristaHintAssertions.assertHint; -import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickOn; +import static com.adevinta.android.barista.assertion.BaristaErrorAssertions.assertErrorDisplayed; +import static com.adevinta.android.barista.assertion.BaristaErrorAssertions.assertNoErrorDisplayed; +import static com.adevinta.android.barista.assertion.BaristaHintAssertions.assertHint; +import static com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn; @RunWith(AndroidJUnit4.class) public class HintAndErrorTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/KeyboardTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/KeyboardTest.java similarity index 78% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/KeyboardTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/KeyboardTest.java index 825dd8309..e507c1602 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/KeyboardTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/KeyboardTest.java @@ -1,15 +1,15 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertNotExist; -import static com.schibsted.spain.barista.interaction.BaristaKeyboardInteractions.pressImeActionButton; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertNotExist; +import static com.adevinta.android.barista.interaction.BaristaKeyboardInteractions.pressImeActionButton; @RunWith(AndroidJUnit4.class) public class KeyboardTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ListViewAssertionTest.kt b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ListViewAssertionTest.kt similarity index 91% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ListViewAssertionTest.kt rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ListViewAssertionTest.kt index 789710eab..766e6fb39 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ListViewAssertionTest.kt +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ListViewAssertionTest.kt @@ -1,16 +1,16 @@ -package com.schibsted.spain.barista.sample +package com.adevinta.android.barista.sample import androidx.test.core.app.ApplicationProvider import androidx.test.espresso.assertion.ViewAssertions import androidx.test.espresso.matcher.ViewMatchers import androidx.test.rule.ActivityTestRule import androidx.test.runner.AndroidJUnit4 -import com.schibsted.spain.barista.assertion.BaristaListAssertions.assertCustomAssertionAtPosition -import com.schibsted.spain.barista.assertion.BaristaListAssertions.assertDisplayedAtPosition -import com.schibsted.spain.barista.assertion.BaristaListAssertions.assertDrawableDisplayedAtPosition -import com.schibsted.spain.barista.assertion.BaristaListAssertions.assertListItemCount -import com.schibsted.spain.barista.assertion.BaristaListAssertions.assertListNotEmpty -import com.schibsted.spain.barista.internal.failurehandler.BaristaException +import com.adevinta.android.barista.assertion.BaristaListAssertions.assertCustomAssertionAtPosition +import com.adevinta.android.barista.assertion.BaristaListAssertions.assertDisplayedAtPosition +import com.adevinta.android.barista.assertion.BaristaListAssertions.assertDrawableDisplayedAtPosition +import com.adevinta.android.barista.assertion.BaristaListAssertions.assertListItemCount +import com.adevinta.android.barista.assertion.BaristaListAssertions.assertListNotEmpty +import com.adevinta.android.barista.internal.failurehandler.BaristaException import junit.framework.AssertionFailedError import org.hamcrest.CoreMatchers import org.junit.Rule diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ListsChildClickTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ListsChildClickTest.java similarity index 91% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ListsChildClickTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ListsChildClickTest.java index cdd41df50..a7270c397 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ListsChildClickTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ListsChildClickTest.java @@ -1,11 +1,11 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.core.app.ApplicationProvider; import androidx.test.espresso.PerformException; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.internal.failurehandler.BaristaException; -import com.schibsted.spain.barista.sample.util.SpyFailureHandlerRule; +import com.adevinta.android.barista.internal.failurehandler.BaristaException; +import com.adevinta.android.barista.sample.util.SpyFailureHandlerRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; @@ -14,8 +14,8 @@ import static androidx.test.espresso.assertion.ViewAssertions.matches; import static androidx.test.espresso.matcher.ViewMatchers.withId; import static androidx.test.espresso.matcher.ViewMatchers.withText; -import static com.schibsted.spain.barista.interaction.BaristaListInteractions.clickListItemChild; -import static com.schibsted.spain.barista.sample.ListsActivity.IntentBuilder; +import static com.adevinta.android.barista.interaction.BaristaListInteractions.clickListItemChild; +import static com.adevinta.android.barista.sample.ListsActivity.IntentBuilder; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.catchThrowable; diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ListsClickTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ListsClickTest.java similarity index 92% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ListsClickTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ListsClickTest.java index db83088d4..8fdfd6fda 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ListsClickTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ListsClickTest.java @@ -1,10 +1,10 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.core.app.ApplicationProvider; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.internal.failurehandler.BaristaException; -import com.schibsted.spain.barista.sample.util.SpyFailureHandlerRule; +import com.adevinta.android.barista.internal.failurehandler.BaristaException; +import com.adevinta.android.barista.sample.util.SpyFailureHandlerRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; @@ -13,10 +13,10 @@ import static androidx.test.espresso.assertion.ViewAssertions.matches; import static androidx.test.espresso.matcher.ViewMatchers.withId; import static androidx.test.espresso.matcher.ViewMatchers.withText; -import static com.schibsted.spain.barista.interaction.BaristaListInteractions.clickListItem; -import static com.schibsted.spain.barista.sample.ListsActivity.getComplexListViewTextAt; -import static com.schibsted.spain.barista.sample.ListsActivity.getRecyclerViewTextAt; -import static com.schibsted.spain.barista.sample.ListsActivity.getSimpleListViewTextAt; +import static com.adevinta.android.barista.interaction.BaristaListInteractions.clickListItem; +import static com.adevinta.android.barista.sample.ListsActivity.getComplexListViewTextAt; +import static com.adevinta.android.barista.sample.ListsActivity.getRecyclerViewTextAt; +import static com.adevinta.android.barista.sample.ListsActivity.getSimpleListViewTextAt; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.catchThrowable; diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ListsScrollTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ListsScrollTest.java similarity index 75% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ListsScrollTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ListsScrollTest.java index f02de8955..5309929b0 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ListsScrollTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ListsScrollTest.java @@ -1,18 +1,18 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.core.app.ApplicationProvider; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertNotExist; -import static com.schibsted.spain.barista.interaction.BaristaListInteractions.scrollListToPosition; -import static com.schibsted.spain.barista.sample.ListsActivity.FRUITS; -import static com.schibsted.spain.barista.sample.ListsActivity.IntentBuilder; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertNotExist; +import static com.adevinta.android.barista.interaction.BaristaListInteractions.scrollListToPosition; +import static com.adevinta.android.barista.sample.ListsActivity.FRUITS; +import static com.adevinta.android.barista.sample.ListsActivity.IntentBuilder; @RunWith(AndroidJUnit4.class) public class ListsScrollTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/LongClickTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/LongClickTest.java similarity index 85% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/LongClickTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/LongClickTest.java index 028592b61..160c4653f 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/LongClickTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/LongClickTest.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; @@ -6,8 +6,8 @@ import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.longClickOn; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaClickInteractions.longClickOn; @RunWith(AndroidJUnit4.class) public class LongClickTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/MenuClickTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/MenuClickTest.java similarity index 79% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/MenuClickTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/MenuClickTest.java index d13c0652c..c680c2b09 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/MenuClickTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/MenuClickTest.java @@ -1,17 +1,17 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.filters.FlakyTest; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.internal.failurehandler.BaristaException; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.internal.failurehandler.BaristaException; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaMenuClickInteractions.clickMenu; -import static com.schibsted.spain.barista.interaction.BaristaMenuClickInteractions.openMenu; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaMenuClickInteractions.clickMenu; +import static com.adevinta.android.barista.interaction.BaristaMenuClickInteractions.openMenu; @RunWith(AndroidJUnit4.class) public class MenuClickTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/MenuSupportActionBarClickTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/MenuSupportActionBarClickTest.java similarity index 80% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/MenuSupportActionBarClickTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/MenuSupportActionBarClickTest.java index cf4b13eb3..37f0288e4 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/MenuSupportActionBarClickTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/MenuSupportActionBarClickTest.java @@ -1,14 +1,14 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaMenuClickInteractions.clickMenu; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaMenuClickInteractions.clickMenu; @RunWith(AndroidJUnit4.class) public class MenuSupportActionBarClickTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/NestedScrollClickTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/NestedScrollClickTest.java similarity index 71% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/NestedScrollClickTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/NestedScrollClickTest.java index c54a0121b..abd24e4e9 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/NestedScrollClickTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/NestedScrollClickTest.java @@ -1,14 +1,14 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickOn; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn; @RunWith(AndroidJUnit4.class) public class NestedScrollClickTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/NestedScrollViewTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/NestedScrollViewTest.java similarity index 71% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/NestedScrollViewTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/NestedScrollViewTest.java index 8af0bcb19..633b2333f 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/NestedScrollViewTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/NestedScrollViewTest.java @@ -1,15 +1,15 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertNotDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaScrollInteractions.scrollTo; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertNotDisplayed; +import static com.adevinta.android.barista.interaction.BaristaScrollInteractions.scrollTo; @RunWith(AndroidJUnit4.class) public class NestedScrollViewTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/PartiallyVisibleViewPagerTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/PartiallyVisibleViewPagerTest.java similarity index 71% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/PartiallyVisibleViewPagerTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/PartiallyVisibleViewPagerTest.java index 155e3025d..df9ea1e08 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/PartiallyVisibleViewPagerTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/PartiallyVisibleViewPagerTest.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; @@ -6,10 +6,10 @@ import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertNotDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerBack; -import static com.schibsted.spain.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerForward; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertNotDisplayed; +import static com.adevinta.android.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerBack; +import static com.adevinta.android.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerForward; @RunWith(AndroidJUnit4.class) public class PartiallyVisibleViewPagerTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/PermissionGranterTest.kt b/sample/src/androidTest/java/com/adevinta/android/barista/sample/PermissionGranterTest.kt similarity index 96% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/PermissionGranterTest.kt rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/PermissionGranterTest.kt index 198a267f8..c4824eade 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/PermissionGranterTest.kt +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/PermissionGranterTest.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample +package com.adevinta.android.barista.sample import android.Manifest import android.content.pm.PackageManager @@ -6,7 +6,7 @@ import android.os.Build import androidx.core.app.ActivityCompat import androidx.core.content.ContextCompat import androidx.test.core.app.ActivityScenario -import com.schibsted.spain.barista.interaction.PermissionGranter +import com.adevinta.android.barista.interaction.PermissionGranter import org.junit.Assert.assertEquals import org.junit.Assume.assumeTrue import org.junit.Before diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/PickersActivityTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/PickersActivityTest.java similarity index 59% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/PickersActivityTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/PickersActivityTest.java index 2c756a336..78598eb81 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/PickersActivityTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/PickersActivityTest.java @@ -1,16 +1,16 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickOn; -import static com.schibsted.spain.barista.interaction.BaristaPickerInteractions.setDateOnPicker; -import static com.schibsted.spain.barista.interaction.BaristaPickerInteractions.setTimeOnPicker; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn; +import static com.adevinta.android.barista.interaction.BaristaPickerInteractions.setDateOnPicker; +import static com.adevinta.android.barista.interaction.BaristaPickerInteractions.setTimeOnPicker; @RunWith(AndroidJUnit4.class) public class PickersActivityTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ProgressBarMatchersTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ProgressBarMatchersTest.java similarity index 78% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ProgressBarMatchersTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ProgressBarMatchersTest.java index 5560761fe..cb0c01442 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ProgressBarMatchersTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ProgressBarMatchersTest.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; @@ -7,9 +7,9 @@ import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaProgressBarAssertions.assertProgress; -import static com.schibsted.spain.barista.assertion.BaristaProgressBarAssertions.assertProgressIsMax; -import static com.schibsted.spain.barista.assertion.BaristaProgressBarAssertions.assertProgressIsMin; +import static com.adevinta.android.barista.assertion.BaristaProgressBarAssertions.assertProgress; +import static com.adevinta.android.barista.assertion.BaristaProgressBarAssertions.assertProgressIsMax; +import static com.adevinta.android.barista.assertion.BaristaProgressBarAssertions.assertProgressIsMin; @RunWith(AndroidJUnit4.class) public class ProgressBarMatchersTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/RadioButtonsReallyFarAwayTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/RadioButtonsReallyFarAwayTest.java similarity index 77% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/RadioButtonsReallyFarAwayTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/RadioButtonsReallyFarAwayTest.java index 80b723d00..88e1ac8ec 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/RadioButtonsReallyFarAwayTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/RadioButtonsReallyFarAwayTest.java @@ -1,16 +1,16 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertNotDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaRadioButtonInteractions.clickRadioButtonItem; -import static com.schibsted.spain.barista.interaction.BaristaRadioButtonInteractions.clickRadioButtonPosition; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertNotDisplayed; +import static com.adevinta.android.barista.interaction.BaristaRadioButtonInteractions.clickRadioButtonItem; +import static com.adevinta.android.barista.interaction.BaristaRadioButtonInteractions.clickRadioButtonPosition; @RunWith(AndroidJUnit4.class) public class RadioButtonsReallyFarAwayTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/RadioButtonsTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/RadioButtonsTest.java similarity index 76% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/RadioButtonsTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/RadioButtonsTest.java index 7fd8e539d..d44c7dc5f 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/RadioButtonsTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/RadioButtonsTest.java @@ -1,15 +1,15 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaRadioButtonInteractions.clickRadioButtonItem; -import static com.schibsted.spain.barista.interaction.BaristaRadioButtonInteractions.clickRadioButtonPosition; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaRadioButtonInteractions.clickRadioButtonItem; +import static com.adevinta.android.barista.interaction.BaristaRadioButtonInteractions.clickRadioButtonPosition; @RunWith(AndroidJUnit4.class) public class RadioButtonsTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/RecyclerViewInsideViewPagerTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/RecyclerViewInsideViewPagerTest.java similarity index 67% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/RecyclerViewInsideViewPagerTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/RecyclerViewInsideViewPagerTest.java index e7e922ff3..5cf4a081c 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/RecyclerViewInsideViewPagerTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/RecyclerViewInsideViewPagerTest.java @@ -1,16 +1,16 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaListInteractions.clickListItem; -import static com.schibsted.spain.barista.interaction.BaristaListInteractions.clickListItemChild; -import static com.schibsted.spain.barista.interaction.BaristaListInteractions.scrollListToPosition; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaListInteractions.clickListItem; +import static com.adevinta.android.barista.interaction.BaristaListInteractions.clickListItemChild; +import static com.adevinta.android.barista.interaction.BaristaListInteractions.scrollListToPosition; @RunWith(AndroidJUnit4.class) public class RecyclerViewInsideViewPagerTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ScrollsTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ScrollsTest.java similarity index 81% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ScrollsTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ScrollsTest.java index 3727de406..f0c410558 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ScrollsTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ScrollsTest.java @@ -1,18 +1,18 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.internal.failurehandler.BaristaException; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.internal.failurehandler.BaristaException; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import static androidx.test.espresso.matcher.ViewMatchers.withId; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertNotDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaScrollInteractions.safelyScrollTo; -import static com.schibsted.spain.barista.interaction.BaristaScrollInteractions.scrollTo; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertNotDisplayed; +import static com.adevinta.android.barista.interaction.BaristaScrollInteractions.safelyScrollTo; +import static com.adevinta.android.barista.interaction.BaristaScrollInteractions.scrollTo; @RunWith(AndroidJUnit4.class) public class ScrollsTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/SeekBarTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/SeekBarTest.java similarity index 60% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/SeekBarTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/SeekBarTest.java index 89657222c..b9f24694a 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/SeekBarTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/SeekBarTest.java @@ -1,19 +1,19 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaRatingBarInteractions.setRatingTo; -import static com.schibsted.spain.barista.interaction.BaristaRatingBarInteractions.setRatingToMax; -import static com.schibsted.spain.barista.interaction.BaristaRatingBarInteractions.setRatingToMin; -import static com.schibsted.spain.barista.interaction.BaristaSeekBarInteractions.setProgressTo; -import static com.schibsted.spain.barista.interaction.BaristaSeekBarInteractions.setProgressToMax; -import static com.schibsted.spain.barista.interaction.BaristaSeekBarInteractions.setProgressToMin; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaRatingBarInteractions.setRatingTo; +import static com.adevinta.android.barista.interaction.BaristaRatingBarInteractions.setRatingToMax; +import static com.adevinta.android.barista.interaction.BaristaRatingBarInteractions.setRatingToMin; +import static com.adevinta.android.barista.interaction.BaristaSeekBarInteractions.setProgressTo; +import static com.adevinta.android.barista.interaction.BaristaSeekBarInteractions.setProgressToMax; +import static com.adevinta.android.barista.interaction.BaristaSeekBarInteractions.setProgressToMin; @RunWith(AndroidJUnit4.class) public class SeekBarTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/SleepTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/SleepTest.java similarity index 85% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/SleepTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/SleepTest.java index 1980e7213..2219199fb 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/SleepTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/SleepTest.java @@ -1,9 +1,9 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.interaction.BaristaSleepInteractions; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.interaction.BaristaSleepInteractions; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import java.util.concurrent.TimeUnit; import org.junit.Rule; import org.junit.Test; diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/SpinnerTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/SpinnerTest.java similarity index 76% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/SpinnerTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/SpinnerTest.java index 332888ba0..120076454 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/SpinnerTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/SpinnerTest.java @@ -1,14 +1,14 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaSpinnerInteractions.clickSpinnerItem; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaSpinnerInteractions.clickSpinnerItem; @RunWith(AndroidJUnit4.class) public class SpinnerTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/SwipeRefreshTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/SwipeRefreshTest.java similarity index 72% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/SwipeRefreshTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/SwipeRefreshTest.java index 8eb0b4a9f..06d6ace51 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/SwipeRefreshTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/SwipeRefreshTest.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; @@ -6,8 +6,8 @@ import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaSwipeRefreshInteractions.refresh; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaSwipeRefreshInteractions.refresh; @RunWith(AndroidJUnit4.class) public class SwipeRefreshTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ViewPager2Test.kt b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ViewPager2Test.kt similarity index 88% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ViewPager2Test.kt rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ViewPager2Test.kt index e314932b7..a58de68d6 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ViewPager2Test.kt +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ViewPager2Test.kt @@ -1,12 +1,12 @@ -package com.schibsted.spain.barista.sample +package com.adevinta.android.barista.sample import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner import androidx.test.rule.ActivityTestRule -import com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed -import com.schibsted.spain.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerBack -import com.schibsted.spain.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerForward -import com.schibsted.spain.barista.sample.ViewPager2Activity.Orientation.HORIZONTAL -import com.schibsted.spain.barista.sample.ViewPager2Activity.Orientation.VERTICAL +import com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed +import com.adevinta.android.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerBack +import com.adevinta.android.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerForward +import com.adevinta.android.barista.sample.ViewPager2Activity.Orientation.HORIZONTAL +import com.adevinta.android.barista.sample.ViewPager2Activity.Orientation.VERTICAL import org.junit.Rule import org.junit.Test import org.junit.runner.RunWith diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ViewPagerTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ViewPagerTest.java similarity index 73% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ViewPagerTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ViewPagerTest.java index 56aec1ae6..3c128d20a 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ViewPagerTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ViewPagerTest.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; @@ -6,9 +6,9 @@ import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerBack; -import static com.schibsted.spain.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerForward; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerBack; +import static com.adevinta.android.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerForward; @RunWith(AndroidJUnit4.class) public class ViewPagerTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ViewPagerWithoutIdTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ViewPagerWithoutIdTest.java similarity index 72% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/ViewPagerWithoutIdTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/ViewPagerWithoutIdTest.java index 343d65e0b..c2ad34ceb 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/ViewPagerWithoutIdTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/ViewPagerWithoutIdTest.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; @@ -6,9 +6,9 @@ import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerBack; -import static com.schibsted.spain.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerForward; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerBack; +import static com.adevinta.android.barista.interaction.BaristaViewPagerInteractions.swipeViewPagerForward; @RunWith(AndroidJUnit4.class) public class ViewPagerWithoutIdTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/WrappedEditTextWriteTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/WrappedEditTextWriteTest.java similarity index 74% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/WrappedEditTextWriteTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/WrappedEditTextWriteTest.java index c8eabf5cd..2fb5a38b9 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/WrappedEditTextWriteTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/WrappedEditTextWriteTest.java @@ -1,15 +1,15 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.interaction.BaristaAutoCompleteTextViewInteractions.writeToAutoComplete; -import static com.schibsted.spain.barista.interaction.BaristaEditTextInteractions.writeTo; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.interaction.BaristaAutoCompleteTextViewInteractions.writeToAutoComplete; +import static com.adevinta.android.barista.interaction.BaristaEditTextInteractions.writeTo; @RunWith(AndroidJUnit4.class) public class WrappedEditTextWriteTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/WrappedViewClickTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/WrappedViewClickTest.java similarity index 78% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/WrappedViewClickTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/WrappedViewClickTest.java index dfe21e80a..ffc5a486e 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/WrappedViewClickTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/WrappedViewClickTest.java @@ -1,15 +1,15 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.test.rule.ActivityTestRule; -import com.schibsted.spain.barista.sample.util.FailureHandlerValidatorRule; +import com.adevinta.android.barista.sample.util.FailureHandlerValidatorRule; import org.junit.Rule; import org.junit.Test; import static androidx.test.espresso.Espresso.onView; import static androidx.test.espresso.action.ViewActions.click; import static androidx.test.espresso.matcher.ViewMatchers.withId; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.internal.viewaction.PerformClickAction.clickUsingPerformClick; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.internal.viewaction.PerformClickAction.clickUsingPerformClick; public class WrappedViewClickTest { diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/assertion/VisibilityAssertionsTest.java b/sample/src/androidTest/java/com/adevinta/android/barista/sample/assertion/VisibilityAssertionsTest.java similarity index 84% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/assertion/VisibilityAssertionsTest.java rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/assertion/VisibilityAssertionsTest.java index 221b60096..f37daf3f1 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/assertion/VisibilityAssertionsTest.java +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/assertion/VisibilityAssertionsTest.java @@ -1,19 +1,19 @@ -package com.schibsted.spain.barista.sample.assertion; +package com.adevinta.android.barista.sample.assertion; import androidx.test.rule.ActivityTestRule; import androidx.test.runner.AndroidJUnit4; -import com.schibsted.spain.barista.internal.failurehandler.BaristaException; -import com.schibsted.spain.barista.sample.R; -import com.schibsted.spain.barista.sample.SomeViewsWithDifferentVisibilitiesActivity; -import com.schibsted.spain.barista.sample.util.SpyFailureHandlerRule; +import com.adevinta.android.barista.internal.failurehandler.BaristaException; +import com.adevinta.android.barista.sample.R; +import com.adevinta.android.barista.sample.SomeViewsWithDifferentVisibilitiesActivity; +import com.adevinta.android.barista.sample.util.SpyFailureHandlerRule; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import static androidx.test.espresso.matcher.ViewMatchers.withTagValue; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertNotDisplayed; -import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertNotExist; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertDisplayed; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertNotDisplayed; +import static com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertNotExist; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.ThrowableAssert.catchThrowable; import static org.hamcrest.CoreMatchers.is; @@ -55,7 +55,7 @@ public void checkNotDisplayed_withGoneView() { public void checkDisplayedViews_failsWhenInvisible() { Throwable thrown1 = catchThrowable(() -> assertDisplayed(R.id.invisible_view)); assertThat(thrown1).isInstanceOf(BaristaException.class) - .hasMessage("View (with id: com.schibsted.spain.barista.sample:id/invisible_view) " + .hasMessage("View (with id: com.adevinta.android.barista.sample:id/invisible_view) " + "didn't match condition (is displayed on the screen to the user)"); Throwable thrown2 = catchThrowable(() -> assertDisplayed(R.string.im_invisible)); // test fails @@ -75,7 +75,7 @@ public void checkDisplayedViews_failsWhenInvisible() { public void checkDisplayed_failsWhenNotExists() { Throwable thrown = catchThrowable(() -> assertDisplayed(R.id.no)); assertThat(thrown).isInstanceOf(BaristaException.class) - .hasMessageContaining("No view matching (with id: com.schibsted.spain.barista.sample:id/no) was found"); + .hasMessageContaining("No view matching (with id: com.adevinta.android.barista.sample:id/no) was found"); Throwable thrown2 = catchThrowable(() -> assertDisplayed(R.string.not_exists)); assertThat(thrown2).isInstanceOf(BaristaException.class) @@ -100,13 +100,13 @@ public void checkDisplayedIdAndText() { public void checkDisplayedIdAndText_failsWhenTextIsNotTheExpected() { Throwable thrown = catchThrowable(() -> assertDisplayed(R.id.visible_view, R.string.not_exists)); assertThat(thrown).isInstanceOf(BaristaException.class) - .hasMessageMatching("View \\(with id: com.schibsted.spain.barista.sample:id/visible_view\\) didn't match condition " + .hasMessageMatching("View \\(with id: com.adevinta.android.barista.sample:id/visible_view\\) didn't match condition " + "\\(\\(is displayed on the screen to the user " + "and with string from resource id: <(\\d+)>\\[not_exists\\] value: Not exists\\)\\)"); Throwable thrown2 = catchThrowable(() -> assertDisplayed(R.id.visible_view, "This is not the text you are looking for")); assertThat(thrown2).isInstanceOf(BaristaException.class) - .hasMessage("View (with id: com.schibsted.spain.barista.sample:id/visible_view) didn't match condition " + .hasMessage("View (with id: com.adevinta.android.barista.sample:id/visible_view) didn't match condition " + "((is displayed on the screen to the user and with text: is \"This is not the text you are looking for\"))"); spyFailureHandlerRule.assertEspressoFailures(2); @@ -116,12 +116,12 @@ public void checkDisplayedIdAndText_failsWhenTextIsNotTheExpected() { public void checkDisplayedIdAndText_failsWhenInvisible() { Throwable thrown = catchThrowable(() -> assertDisplayed(R.id.invisible_view, R.string.im_invisible)); assertThat(thrown).isInstanceOf(BaristaException.class) - .hasMessageMatching("View \\(with id: com.schibsted.spain.barista.sample:id/invisible_view\\) didn't match condition " + .hasMessageMatching("View \\(with id: com.adevinta.android.barista.sample:id/invisible_view\\) didn't match condition " + "\\(\\(is displayed on the screen to the user and with string from resource id: <(\\d+)>\\)\\)"); Throwable thrown2 = catchThrowable(() -> assertDisplayed(R.id.invisible_view, "I'm invisible!")); assertThat(thrown2).isInstanceOf(BaristaException.class) - .hasMessage("View (with id: com.schibsted.spain.barista.sample:id/invisible_view) didn't match condition " + .hasMessage("View (with id: com.adevinta.android.barista.sample:id/invisible_view) didn't match condition " + "((is displayed on the screen to the user and with text: is \"I'm invisible!\"))"); spyFailureHandlerRule.assertEspressoFailures(2); @@ -131,11 +131,11 @@ public void checkDisplayedIdAndText_failsWhenInvisible() { public void checkDisplayedIdAndText_failsWhenViewDoesNotExist() { Throwable thrown = catchThrowable(() -> assertDisplayed(R.id.not_exists, R.string.im_invisible)); assertThat(thrown).isInstanceOf(BaristaException.class) - .hasMessage("No view matching (with id: com.schibsted.spain.barista.sample:id/not_exists) was found"); + .hasMessage("No view matching (with id: com.adevinta.android.barista.sample:id/not_exists) was found"); Throwable thrown2 = catchThrowable(() -> assertDisplayed(R.id.not_exists, "This is not the text you are looking for")); assertThat(thrown2).isInstanceOf(BaristaException.class) - .hasMessage("No view matching (with id: com.schibsted.spain.barista.sample:id/not_exists) was found"); + .hasMessage("No view matching (with id: com.adevinta.android.barista.sample:id/not_exists) was found"); spyFailureHandlerRule.assertEspressoFailures(2); } @@ -164,7 +164,7 @@ public void checkNotDisplayedIdAndText_failsWhenTextMatches() { spyFailureHandlerRule.assertEspressoFailures(1); assertThat(thrown).isInstanceOf(BaristaException.class) - .hasMessage("View (with id: com.schibsted.spain.barista.sample:id/visible_view) " + .hasMessage("View (with id: com.adevinta.android.barista.sample:id/visible_view) " + "didn't match condition (not (is displayed on the screen to the user and with text: is \"Hello world!\"))"); } @@ -174,7 +174,7 @@ public void checkNotDisplayed_failsWhenVisible() { spyFailureHandlerRule.assertEspressoFailures(1); assertThat(thrown).isInstanceOf(BaristaException.class) - .hasMessage("View (with id: com.schibsted.spain.barista.sample:id/visible_view) " + .hasMessage("View (with id: com.adevinta.android.barista.sample:id/visible_view) " + "didn't match condition (not is displayed on the screen to the user)"); } diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/util/FailureHandlerValidatorRule.kt b/sample/src/androidTest/java/com/adevinta/android/barista/sample/util/FailureHandlerValidatorRule.kt similarity index 90% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/util/FailureHandlerValidatorRule.kt rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/util/FailureHandlerValidatorRule.kt index e6867242d..5410aa643 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/util/FailureHandlerValidatorRule.kt +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/util/FailureHandlerValidatorRule.kt @@ -1,7 +1,7 @@ -package com.schibsted.spain.barista.sample.util +package com.adevinta.android.barista.sample.util import androidx.test.espresso.Espresso -import com.schibsted.spain.barista.internal.failurehandler.SpyFailureHandler +import com.adevinta.android.barista.internal.failurehandler.SpyFailureHandler import org.junit.Test import org.junit.rules.TestRule import org.junit.runner.Description diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/util/SpyFailureHandlerRule.kt b/sample/src/androidTest/java/com/adevinta/android/barista/sample/util/SpyFailureHandlerRule.kt similarity index 89% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/util/SpyFailureHandlerRule.kt rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/util/SpyFailureHandlerRule.kt index 62bcc3d44..44ca37b20 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/util/SpyFailureHandlerRule.kt +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/util/SpyFailureHandlerRule.kt @@ -1,7 +1,7 @@ -package com.schibsted.spain.barista.sample.util +package com.adevinta.android.barista.sample.util import androidx.test.espresso.Espresso -import com.schibsted.spain.barista.internal.failurehandler.SpyFailureHandler +import com.adevinta.android.barista.internal.failurehandler.SpyFailureHandler import org.assertj.core.api.Assertions.assertThat import org.junit.rules.TestRule import org.junit.runner.Description diff --git a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/util/SpyFailureHandlerRuleTest.kt b/sample/src/androidTest/java/com/adevinta/android/barista/sample/util/SpyFailureHandlerRuleTest.kt similarity index 92% rename from sample/src/androidTest/java/com/schibsted/spain/barista/sample/util/SpyFailureHandlerRuleTest.kt rename to sample/src/androidTest/java/com/adevinta/android/barista/sample/util/SpyFailureHandlerRuleTest.kt index 9b38f6c46..fa2bff919 100644 --- a/sample/src/androidTest/java/com/schibsted/spain/barista/sample/util/SpyFailureHandlerRuleTest.kt +++ b/sample/src/androidTest/java/com/adevinta/android/barista/sample/util/SpyFailureHandlerRuleTest.kt @@ -1,8 +1,8 @@ -package com.schibsted.spain.barista.sample.util +package com.adevinta.android.barista.sample.util import com.nhaarman.mockito_kotlin.given import com.nhaarman.mockito_kotlin.mock -import com.schibsted.spain.barista.internal.failurehandler.SpyFailureHandler +import com.adevinta.android.barista.internal.failurehandler.SpyFailureHandler import org.junit.Test import org.junit.runner.Description import org.junit.runners.model.Statement diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml index 44706ef6f..6e97b0642 100644 --- a/sample/src/main/AndroidManifest.xml +++ b/sample/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/AutoCompleteTextViewActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/AutoCompleteTextViewActivity.java similarity index 95% rename from sample/src/main/java/com/schibsted/spain/barista/sample/AutoCompleteTextViewActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/AutoCompleteTextViewActivity.java index 170b34b27..89db334bf 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/AutoCompleteTextViewActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/AutoCompleteTextViewActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/CameraActivity.kt b/sample/src/main/java/com/adevinta/android/barista/sample/CameraActivity.kt similarity index 97% rename from sample/src/main/java/com/schibsted/spain/barista/sample/CameraActivity.kt rename to sample/src/main/java/com/adevinta/android/barista/sample/CameraActivity.kt index 388a00d6f..2d3f27aa3 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/CameraActivity.kt +++ b/sample/src/main/java/com/adevinta/android/barista/sample/CameraActivity.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample +package com.adevinta.android.barista.sample import android.annotation.SuppressLint import android.content.Intent diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/CheckBoxActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/CheckBoxActivity.java similarity index 96% rename from sample/src/main/java/com/schibsted/spain/barista/sample/CheckBoxActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/CheckBoxActivity.java index 6c6fda0b6..48a0b4218 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/CheckBoxActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/CheckBoxActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/ChipsActivity.kt b/sample/src/main/java/com/adevinta/android/barista/sample/ChipsActivity.kt similarity index 92% rename from sample/src/main/java/com/schibsted/spain/barista/sample/ChipsActivity.kt rename to sample/src/main/java/com/adevinta/android/barista/sample/ChipsActivity.kt index fac0864cb..4e40e0818 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/ChipsActivity.kt +++ b/sample/src/main/java/com/adevinta/android/barista/sample/ChipsActivity.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample +package com.adevinta.android.barista.sample import android.os.Bundle import android.view.View diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/ColorsActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/ColorsActivity.java similarity index 88% rename from sample/src/main/java/com/schibsted/spain/barista/sample/ColorsActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/ColorsActivity.java index 9b34fee6e..b49089067 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/ColorsActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/ColorsActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.annotation.Nullable; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/ColorsSecondActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/ColorsSecondActivity.java similarity index 88% rename from sample/src/main/java/com/schibsted/spain/barista/sample/ColorsSecondActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/ColorsSecondActivity.java index 7ede2cd08..fe4015cb5 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/ColorsSecondActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/ColorsSecondActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.annotation.Nullable; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/ContentDescriptionActivity.kt b/sample/src/main/java/com/adevinta/android/barista/sample/ContentDescriptionActivity.kt similarity index 87% rename from sample/src/main/java/com/schibsted/spain/barista/sample/ContentDescriptionActivity.kt rename to sample/src/main/java/com/adevinta/android/barista/sample/ContentDescriptionActivity.kt index cf405e3a3..69e320d8e 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/ContentDescriptionActivity.kt +++ b/sample/src/main/java/com/adevinta/android/barista/sample/ContentDescriptionActivity.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample +package com.adevinta.android.barista.sample import android.os.Bundle import androidx.appcompat.app.AppCompatActivity diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/DatabaseActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/DatabaseActivity.java similarity index 97% rename from sample/src/main/java/com/schibsted/spain/barista/sample/DatabaseActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/DatabaseActivity.java index 806177570..6f413d185 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/DatabaseActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/DatabaseActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.app.Activity; import android.content.ContentValues; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/DialogActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/DialogActivity.java similarity index 97% rename from sample/src/main/java/com/schibsted/spain/barista/sample/DialogActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/DialogActivity.java index 66740f03b..8d9794906 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/DialogActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/DialogActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.content.DialogInterface; import android.os.Bundle; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/EditTextActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/EditTextActivity.java similarity index 86% rename from sample/src/main/java/com/schibsted/spain/barista/sample/EditTextActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/EditTextActivity.java index 83aaea03a..e7714b375 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/EditTextActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/EditTextActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/EmptyActivity.kt b/sample/src/main/java/com/adevinta/android/barista/sample/EmptyActivity.kt similarity index 67% rename from sample/src/main/java/com/schibsted/spain/barista/sample/EmptyActivity.kt rename to sample/src/main/java/com/adevinta/android/barista/sample/EmptyActivity.kt index 686bca7a2..47ce814d4 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/EmptyActivity.kt +++ b/sample/src/main/java/com/adevinta/android/barista/sample/EmptyActivity.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample +package com.adevinta.android.barista.sample import androidx.appcompat.app.AppCompatActivity diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/FileActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/FileActivity.java similarity index 98% rename from sample/src/main/java/com/schibsted/spain/barista/sample/FileActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/FileActivity.java index 83d6af3f8..441cfba9f 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/FileActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/FileActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.app.Activity; import android.os.Bundle; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/FlowFirstScreen.java b/sample/src/main/java/com/adevinta/android/barista/sample/FlowFirstScreen.java similarity index 97% rename from sample/src/main/java/com/schibsted/spain/barista/sample/FlowFirstScreen.java rename to sample/src/main/java/com/adevinta/android/barista/sample/FlowFirstScreen.java index bfe7057ea..741dc2b4c 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/FlowFirstScreen.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/FlowFirstScreen.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.content.Intent; import android.os.Bundle; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/FlowSecondScreen.java b/sample/src/main/java/com/adevinta/android/barista/sample/FlowSecondScreen.java similarity index 86% rename from sample/src/main/java/com/schibsted/spain/barista/sample/FlowSecondScreen.java rename to sample/src/main/java/com/adevinta/android/barista/sample/FlowSecondScreen.java index d0244727b..42a8e05d1 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/FlowSecondScreen.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/FlowSecondScreen.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/HelloWorldActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/HelloWorldActivity.java similarity index 95% rename from sample/src/main/java/com/schibsted/spain/barista/sample/HelloWorldActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/HelloWorldActivity.java index d097913e5..b38ecbc88 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/HelloWorldActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/HelloWorldActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import android.view.View; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/HintAndErrorActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/HintAndErrorActivity.java similarity index 96% rename from sample/src/main/java/com/schibsted/spain/barista/sample/HintAndErrorActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/HintAndErrorActivity.java index f5109b751..8cc13a427 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/HintAndErrorActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/HintAndErrorActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import android.widget.EditText; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/KeyboardActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/KeyboardActivity.java similarity index 97% rename from sample/src/main/java/com/schibsted/spain/barista/sample/KeyboardActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/KeyboardActivity.java index fd26faa57..2ebfcf450 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/KeyboardActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/KeyboardActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/LabelActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/LabelActivity.java similarity index 92% rename from sample/src/main/java/com/schibsted/spain/barista/sample/LabelActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/LabelActivity.java index c8ed648f5..2ff5e0b2d 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/LabelActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/LabelActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/ListsActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/ListsActivity.java similarity index 99% rename from sample/src/main/java/com/schibsted/spain/barista/sample/ListsActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/ListsActivity.java index 7af4792d8..86910569b 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/ListsActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/ListsActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.content.Context; import android.content.Intent; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/MenuActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/MenuActivity.java similarity index 96% rename from sample/src/main/java/com/schibsted/spain/barista/sample/MenuActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/MenuActivity.java index 8ac965577..f3e92c922 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/MenuActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/MenuActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/MenuSupportActionBarActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/MenuSupportActionBarActivity.java similarity index 96% rename from sample/src/main/java/com/schibsted/spain/barista/sample/MenuSupportActionBarActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/MenuSupportActionBarActivity.java index 18418560e..9ff3b1a5a 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/MenuSupportActionBarActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/MenuSupportActionBarActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/NavigationDrawerActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/NavigationDrawerActivity.java similarity index 96% rename from sample/src/main/java/com/schibsted/spain/barista/sample/NavigationDrawerActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/NavigationDrawerActivity.java index d3834af96..24f2da6b7 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/NavigationDrawerActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/NavigationDrawerActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.annotation.NonNull; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/NestedScrollViewActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/NestedScrollViewActivity.java similarity index 94% rename from sample/src/main/java/com/schibsted/spain/barista/sample/NestedScrollViewActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/NestedScrollViewActivity.java index 1495bdd57..a86ba661a 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/NestedScrollViewActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/NestedScrollViewActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.content.Intent; import android.os.Bundle; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/PartiallyVisibleViewPagerActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/PartiallyVisibleViewPagerActivity.java similarity index 96% rename from sample/src/main/java/com/schibsted/spain/barista/sample/PartiallyVisibleViewPagerActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/PartiallyVisibleViewPagerActivity.java index 22f4724fc..21b238fda 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/PartiallyVisibleViewPagerActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/PartiallyVisibleViewPagerActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.fragment.app.Fragment; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/PickersActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/PickersActivity.java similarity index 98% rename from sample/src/main/java/com/schibsted/spain/barista/sample/PickersActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/PickersActivity.java index a5a715e2b..65ca61360 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/PickersActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/PickersActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.app.DatePickerDialog; import android.app.Dialog; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/PreferencesActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/PreferencesActivity.java similarity index 96% rename from sample/src/main/java/com/schibsted/spain/barista/sample/PreferencesActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/PreferencesActivity.java index f367aefa7..7471cb79e 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/PreferencesActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/PreferencesActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.app.Activity; import android.content.SharedPreferences; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/RadioButtonsActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/RadioButtonsActivity.java similarity index 95% rename from sample/src/main/java/com/schibsted/spain/barista/sample/RadioButtonsActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/RadioButtonsActivity.java index f4b82c00f..5bc68ebbd 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/RadioButtonsActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/RadioButtonsActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.annotation.IdRes; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/RecyclerViewsInsideViewPagerActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/RecyclerViewsInsideViewPagerActivity.java similarity index 99% rename from sample/src/main/java/com/schibsted/spain/barista/sample/RecyclerViewsInsideViewPagerActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/RecyclerViewsInsideViewPagerActivity.java index 7e2c481b5..b9f07a696 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/RecyclerViewsInsideViewPagerActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/RecyclerViewsInsideViewPagerActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.app.Activity; import android.content.Intent; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/SeekBarActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/SeekBarActivity.java similarity index 96% rename from sample/src/main/java/com/schibsted/spain/barista/sample/SeekBarActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/SeekBarActivity.java index 461143b86..b67fad291 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/SeekBarActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/SeekBarActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/SomeSeekBarsWithDifferentProgressesActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/SomeSeekBarsWithDifferentProgressesActivity.java similarity index 88% rename from sample/src/main/java/com/schibsted/spain/barista/sample/SomeSeekBarsWithDifferentProgressesActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/SomeSeekBarsWithDifferentProgressesActivity.java index 637c60497..b96ad46ce 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/SomeSeekBarsWithDifferentProgressesActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/SomeSeekBarsWithDifferentProgressesActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/SomeViewsWithDifferentVisibilitiesActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/SomeViewsWithDifferentVisibilitiesActivity.java similarity index 92% rename from sample/src/main/java/com/schibsted/spain/barista/sample/SomeViewsWithDifferentVisibilitiesActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/SomeViewsWithDifferentVisibilitiesActivity.java index 5341bcdac..b4d87b855 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/SomeViewsWithDifferentVisibilitiesActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/SomeViewsWithDifferentVisibilitiesActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import android.widget.ImageView; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/SpinnerActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/SpinnerActivity.java similarity index 93% rename from sample/src/main/java/com/schibsted/spain/barista/sample/SpinnerActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/SpinnerActivity.java index 29949e4fb..6ddfbf81c 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/SpinnerActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/SpinnerActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/SwipeRefreshActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/SwipeRefreshActivity.java similarity index 94% rename from sample/src/main/java/com/schibsted/spain/barista/sample/SwipeRefreshActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/SwipeRefreshActivity.java index a0159cbd5..1392d5594 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/SwipeRefreshActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/SwipeRefreshActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/TextListViewAdapter.java b/sample/src/main/java/com/adevinta/android/barista/sample/TextListViewAdapter.java similarity index 98% rename from sample/src/main/java/com/schibsted/spain/barista/sample/TextListViewAdapter.java rename to sample/src/main/java/com/adevinta/android/barista/sample/TextListViewAdapter.java index ec4caa938..ec9a560ee 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/TextListViewAdapter.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/TextListViewAdapter.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.app.Activity; import android.content.Context; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/TextRecyclerViewAdapter.java b/sample/src/main/java/com/adevinta/android/barista/sample/TextRecyclerViewAdapter.java similarity index 93% rename from sample/src/main/java/com/schibsted/spain/barista/sample/TextRecyclerViewAdapter.java rename to sample/src/main/java/com/adevinta/android/barista/sample/TextRecyclerViewAdapter.java index 27e8e3b11..4a6ec7948 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/TextRecyclerViewAdapter.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/TextRecyclerViewAdapter.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import androidx.recyclerview.widget.RecyclerView; import android.view.LayoutInflater; @@ -6,7 +6,7 @@ import android.view.ViewGroup; import android.widget.TextView; -import static com.schibsted.spain.barista.sample.ListsActivity.getRecyclerViewTextAt; +import static com.adevinta.android.barista.sample.ListsActivity.getRecyclerViewTextAt; public class TextRecyclerViewAdapter extends RecyclerView.Adapter { private final String[] items; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/ViewPager2Activity.kt b/sample/src/main/java/com/adevinta/android/barista/sample/ViewPager2Activity.kt similarity index 84% rename from sample/src/main/java/com/schibsted/spain/barista/sample/ViewPager2Activity.kt rename to sample/src/main/java/com/adevinta/android/barista/sample/ViewPager2Activity.kt index 031a47329..0b9ef0e55 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/ViewPager2Activity.kt +++ b/sample/src/main/java/com/adevinta/android/barista/sample/ViewPager2Activity.kt @@ -1,12 +1,12 @@ -package com.schibsted.spain.barista.sample +package com.adevinta.android.barista.sample import android.os.Bundle import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentActivity import androidx.viewpager2.adapter.FragmentStateAdapter import androidx.viewpager2.widget.ViewPager2 -import com.schibsted.spain.barista.sample.ViewPager2Activity.Orientation.HORIZONTAL -import com.schibsted.spain.barista.sample.ViewPager2Activity.Orientation.VERTICAL +import com.adevinta.android.barista.sample.ViewPager2Activity.Orientation.HORIZONTAL +import com.adevinta.android.barista.sample.ViewPager2Activity.Orientation.VERTICAL import kotlinx.android.synthetic.main.activity_viewpager2.viewPager2 class ViewPager2Activity : FragmentActivity() { diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/ViewPagerButtonFragment.java b/sample/src/main/java/com/adevinta/android/barista/sample/ViewPagerButtonFragment.java similarity index 95% rename from sample/src/main/java/com/schibsted/spain/barista/sample/ViewPagerButtonFragment.java rename to sample/src/main/java/com/adevinta/android/barista/sample/ViewPagerButtonFragment.java index 7417c324f..8e6793264 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/ViewPagerButtonFragment.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/ViewPagerButtonFragment.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.fragment.app.Fragment; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/ViewPagerFirstFragment.java b/sample/src/main/java/com/adevinta/android/barista/sample/ViewPagerFirstFragment.java similarity index 92% rename from sample/src/main/java/com/schibsted/spain/barista/sample/ViewPagerFirstFragment.java rename to sample/src/main/java/com/adevinta/android/barista/sample/ViewPagerFirstFragment.java index a22f20c0f..6ec4feeb9 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/ViewPagerFirstFragment.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/ViewPagerFirstFragment.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.fragment.app.Fragment; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/ViewPagerSecondFragment.java b/sample/src/main/java/com/adevinta/android/barista/sample/ViewPagerSecondFragment.java similarity index 92% rename from sample/src/main/java/com/schibsted/spain/barista/sample/ViewPagerSecondFragment.java rename to sample/src/main/java/com/adevinta/android/barista/sample/ViewPagerSecondFragment.java index eb2e3f483..9ad08ebad 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/ViewPagerSecondFragment.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/ViewPagerSecondFragment.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.fragment.app.Fragment; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/ViewPagerWithFiveSamePagesActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/ViewPagerWithFiveSamePagesActivity.java similarity index 96% rename from sample/src/main/java/com/schibsted/spain/barista/sample/ViewPagerWithFiveSamePagesActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/ViewPagerWithFiveSamePagesActivity.java index 78d330138..e1310c67e 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/ViewPagerWithFiveSamePagesActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/ViewPagerWithFiveSamePagesActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.fragment.app.Fragment; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/ViewPagerWithTwoDifferentPagesActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/ViewPagerWithTwoDifferentPagesActivity.java similarity index 96% rename from sample/src/main/java/com/schibsted/spain/barista/sample/ViewPagerWithTwoDifferentPagesActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/ViewPagerWithTwoDifferentPagesActivity.java index 0ddb48097..6072d5b5a 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/ViewPagerWithTwoDifferentPagesActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/ViewPagerWithTwoDifferentPagesActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.os.Bundle; import androidx.fragment.app.Fragment; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/WrappedEditTextActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/WrappedEditTextActivity.java similarity index 99% rename from sample/src/main/java/com/schibsted/spain/barista/sample/WrappedEditTextActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/WrappedEditTextActivity.java index 965925e27..eeb2b8b55 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/WrappedEditTextActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/WrappedEditTextActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.content.Context; import android.database.Cursor; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/WrappedViewActivity.java b/sample/src/main/java/com/adevinta/android/barista/sample/WrappedViewActivity.java similarity index 91% rename from sample/src/main/java/com/schibsted/spain/barista/sample/WrappedViewActivity.java rename to sample/src/main/java/com/adevinta/android/barista/sample/WrappedViewActivity.java index 18c077b8d..f191a93ea 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/WrappedViewActivity.java +++ b/sample/src/main/java/com/adevinta/android/barista/sample/WrappedViewActivity.java @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample; +package com.adevinta.android.barista.sample; import android.app.Activity; import android.os.Bundle; diff --git a/sample/src/main/java/com/schibsted/spain/barista/sample/widget/SampleCustomView.kt b/sample/src/main/java/com/adevinta/android/barista/sample/widget/SampleCustomView.kt similarity index 91% rename from sample/src/main/java/com/schibsted/spain/barista/sample/widget/SampleCustomView.kt rename to sample/src/main/java/com/adevinta/android/barista/sample/widget/SampleCustomView.kt index 802f3f844..d7235363c 100644 --- a/sample/src/main/java/com/schibsted/spain/barista/sample/widget/SampleCustomView.kt +++ b/sample/src/main/java/com/adevinta/android/barista/sample/widget/SampleCustomView.kt @@ -1,4 +1,4 @@ -package com.schibsted.spain.barista.sample.widget; +package com.adevinta.android.barista.sample.widget; import android.content.Context import android.graphics.Color @@ -6,7 +6,7 @@ import android.util.AttributeSet import android.view.LayoutInflater import android.widget.LinearLayout import androidx.core.content.withStyledAttributes -import com.schibsted.spain.barista.sample.R +import com.adevinta.android.barista.sample.R import kotlinx.android.synthetic.main.sample_custom_view.view.customTextView class SampleCustomView @JvmOverloads diff --git a/sample/src/main/res/layout/activity_color.xml b/sample/src/main/res/layout/activity_color.xml index 891bd664a..a4109a1ff 100644 --- a/sample/src/main/res/layout/activity_color.xml +++ b/sample/src/main/res/layout/activity_color.xml @@ -62,7 +62,7 @@ android:textColor="@color/selector_default_disabled_checked" /> - -