File tree Expand file tree Collapse file tree 4 files changed +4
-18
lines changed
androidTest/java/ro/tav/pavgame/presentation/view Expand file tree Collapse file tree 4 files changed +4
-18
lines changed Original file line number Diff line number Diff line change 34
34
35
35
@ LargeTest
36
36
@ RunWith ( AndroidJUnit4 .class )
37
- public class LoginActivityTest3 {
37
+ public class GameLose4Test {
38
38
39
39
@ Rule
40
40
public ActivityTestRule < LoginActivity > mActivityTestRule = new ActivityTestRule <>( LoginActivity .class );
Original file line number Diff line number Diff line change 34
34
35
35
@ LargeTest
36
36
@ RunWith ( AndroidJUnit4 .class )
37
- public class GameWin4 {
37
+ public class GameWin4Test {
38
38
39
39
@ Rule
40
40
public ActivityTestRule < LoginActivity > mActivityTestRule = new ActivityTestRule <>( LoginActivity .class );
Original file line number Diff line number Diff line change 35
35
36
36
@ LargeTest
37
37
@ RunWith ( AndroidJUnit4 .class )
38
- public class LoginActivityTest {
38
+ public class RecycleViewTest {
39
39
40
40
@ Rule
41
41
public ActivityTestRule < LoginActivity > mActivityTestRule = new ActivityTestRule <>( LoginActivity .class );
@@ -80,7 +80,7 @@ public void loginActivityTest() {
80
80
floatingActionButton .perform ( click () );
81
81
82
82
ViewInteraction appCompatTextView = onView (
83
- allOf ( withId ( R .id .textview_name ), withText ( "myTest " ),
83
+ allOf ( withId ( R .id .textview_name ), withText ( "tavi.imaginatie@yahoo.com " ),
84
84
childAtPosition (
85
85
childAtPosition (
86
86
withId ( R .id .cardViewResults ),
Original file line number Diff line number Diff line change 16
16
import ro .tav .pavgame .data .localDB .AppDatabase ;
17
17
import ro .tav .pavgame .data .localDB .GameDao ;
18
18
import ro .tav .pavgame .domain .GameRemoteRepository ;
19
- import ro .tav .pavgame .domain .GameUseCase ;
20
19
21
20
@ RunWith ( RobolectricTestRunner .class )
22
-
23
- //@RunWith( AndroidJUnit4.class )
24
21
public class jUnitTests {
25
22
26
23
Context context ;
@@ -66,15 +63,4 @@ public void test2() {
66
63
}
67
64
db .close ();
68
65
}
69
-
70
- @ Test //TODO
71
- public void test3 () {
72
- // GameLocalRepository gameLocalRepository = new GameLocalRepository( ApplicationProvider.getApplicationContext() );
73
- // gameLocalRepository.insertGame( mGame );
74
- // List < GameEntity > l = gameLocalRepository.getSpecificGamesbyUserNameStatic( "myTest" );
75
- GameUseCase gameUseCase = new GameUseCase ( ApplicationProvider .getApplicationContext () );
76
- gameUseCase .insertGame ( mGame );
77
- List < GameEntity > l = gameUseCase .getSpecificGamesbyUserNameStatic ( "myTest" );
78
- assert !l .isEmpty ();
79
- }
80
66
}
You can’t perform that action at this time.
0 commit comments