-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from mazurio/123
1.3.0
- Loading branch information
Showing
254 changed files
with
7,179 additions
and
3,957 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
app/src/androidTest/kotlin/com/bodyweight/fitness/MainActivityTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
package com.bodyweight.fitness | ||
|
||
import android.support.test.espresso.Espresso.onView | ||
import android.support.test.espresso.action.ViewActions.click | ||
import android.support.test.espresso.assertion.ViewAssertions.matches | ||
import android.support.test.espresso.matcher.ViewMatchers | ||
import android.support.test.espresso.matcher.ViewMatchers.* | ||
import android.test.ActivityInstrumentationTestCase2 | ||
|
||
import com.bodyweight.fitness.ui.MainActivity | ||
|
||
class MainActivityTest : ActivityInstrumentationTestCase2<MainActivity>(MainActivity::class.java) { | ||
override fun setUp() { | ||
super.setUp() | ||
|
||
activity | ||
} | ||
|
||
fun testExerciseSetup() { | ||
onView(withId(R.id.toolbar_exercise_title)) | ||
.check(matches(withText("Shoulder Rolls"))) | ||
onView(withId(R.id.toolbar_section_title)) | ||
.check(matches(withText("Dynamic Stretches"))) | ||
onView(withId(R.id.toolbar_exercise_description)) | ||
.check(matches(withText("1x(5-10)"))) | ||
|
||
onView(withId(R.id.prev_exercise_button)) | ||
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.INVISIBLE))); | ||
onView(withId(R.id.next_exercise_button)) | ||
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE))); | ||
|
||
onView(withId(R.id.next_exercise_button)).perform(click()) | ||
|
||
onView(withId(R.id.toolbar_exercise_title)) | ||
.check(matches(withText("Scapular Shrugs"))) | ||
onView(withId(R.id.toolbar_section_title)) | ||
.check(matches(withText("Dynamic Stretches"))) | ||
onView(withId(R.id.toolbar_exercise_description)) | ||
.check(matches(withText("1x(5-10)"))) | ||
|
||
onView(withId(R.id.prev_exercise_button)) | ||
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE))); | ||
onView(withId(R.id.next_exercise_button)) | ||
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE))); | ||
|
||
onView(withId(R.id.next_exercise_button)).perform(click()) | ||
onView(withId(R.id.next_exercise_button)).perform(click()) | ||
onView(withId(R.id.next_exercise_button)).perform(click()) | ||
onView(withId(R.id.next_exercise_button)).perform(click()) | ||
onView(withId(R.id.next_exercise_button)).perform(click()) | ||
|
||
onView(withId(R.id.toolbar_exercise_title)) | ||
.check(matches(withText("Front and Side Leg Swings"))) | ||
onView(withId(R.id.toolbar_section_title)) | ||
.check(matches(withText("Dynamic Stretches"))) | ||
onView(withId(R.id.toolbar_exercise_description)) | ||
.check(matches(withText("1x(5-10)"))) | ||
|
||
onView(withId(R.id.prev_exercise_button)) | ||
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE))); | ||
onView(withId(R.id.next_exercise_button)) | ||
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tion/CacheDirectoryCreationException.java → ...tion/CacheDirectoryCreationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
app/src/main/java/com/bodyweight/fitness/model/Category.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.