Skip to content

Commit

Permalink
Code cleanup and JDK update
Browse files Browse the repository at this point in the history
  • Loading branch information
NikM3 committed Apr 23, 2023
1 parent 4310fe9 commit 422637f
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 102 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ dependencies {

// Testing dependencies
implementation 'androidx.arch.core:core-testing:2.2.0'
implementation 'androidx.test:monitor:1.6.1'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
/*
* Created by Team Symphony on 4/23/23, 3:46 AM
* Copyright (c) 2023 . All rights reserved.
* Last modified 4/23/23, 3:46 AM
*/

package com.symphony.mrfit.ui
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.test.core.app.ActivityScenario
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.rules.activityScenarioRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.rule.ActivityTestRule
import org.junit.After
import org.junit.Assert.*
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.assertEquals




@RunWith(AndroidJUnit4::class)
Expand Down
13 changes: 2 additions & 11 deletions app/src/androidTest/java/com/symphony/mrfit/ui/ExerciseTest.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Created by Team Symphony on 4/22/23, 6:21 AM
* Created by Team Symphony on 4/23/23, 3:46 AM
* Copyright (c) 2023 . All rights reserved.
* Last modified 4/22/23, 6:05 AM
* Last modified 4/23/23, 3:46 AM
*/

package com.symphony.mrfit.ui
Expand All @@ -11,22 +11,13 @@ import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.ext.junit.rules.activityScenarioRule
import androidx.test.filters.LargeTest
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import com.symphony.mrfit.R
import org.hamcrest.CoreMatchers.not
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4ClassRunner::class)
@LargeTest
class ExerciseTest {

@Before
fun setUp() {
}

@get:Rule
var activityScenarioRule = activityScenarioRule<ExerciseActivity>()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Created by Team Symphony on 4/22/23, 6:21 AM
* Created by Team Symphony on 4/23/23, 3:46 AM
* Copyright (c) 2023 . All rights reserved.
* Last modified 4/22/23, 6:05 AM
* Last modified 4/23/23, 3:11 AM
*/

package com.symphony.mrfit.ui
Expand All @@ -15,6 +15,7 @@ import org.junit.Rule
import org.junit.Test

class GoalsActivityTest {

@get:Rule
var activityScenarioRule = activityScenarioRule<GoalsActivity>()

Expand Down
14 changes: 2 additions & 12 deletions app/src/androidTest/java/com/symphony/mrfit/ui/HomeActivityTest.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Created by Team Symphony on 4/22/23, 6:21 AM
* Created by Team Symphony on 4/23/23, 3:46 AM
* Copyright (c) 2023 . All rights reserved.
* Last modified 4/22/23, 6:05 AM
* Last modified 4/23/23, 3:46 AM
*/

package com.symphony.mrfit.ui
Expand All @@ -11,23 +11,13 @@ import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.ext.junit.rules.activityScenarioRule
import androidx.test.filters.LargeTest
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import com.symphony.mrfit.R
import org.hamcrest.core.IsNot.not
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4ClassRunner::class)
@LargeTest
class HomeActivityTest {

@Before
fun setUp() {
}

@get:Rule
var activityScenarioRule = activityScenarioRule<HomeActivity>()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
/*
* Created by Team Symphony on 4/22/23, 6:21 AM
* Created by Team Symphony on 4/23/23, 3:46 AM
* Copyright (c) 2023 . All rights reserved.
* Last modified 4/22/23, 6:05 AM
* Last modified 4/23/23, 3:46 AM
*/

package com.symphony.mrfit.ui

import androidx.test.espresso.Espresso
import androidx.test.espresso.action.ViewActions.*
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.action.ViewActions.closeSoftKeyboard
import androidx.test.espresso.action.ViewActions.typeText
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.ext.junit.rules.activityScenarioRule
import androidx.test.filters.LargeTest
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import com.symphony.mrfit.R
import org.junit.Assert.*
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4ClassRunner::class)
@LargeTest
class LoginActivityTest {

@get:Rule
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
/*
* Created by Team Symphony on 4/23/23, 3:46 AM
* Copyright (c) 2023 . All rights reserved.
* Last modified 4/23/23, 3:46 AM
*/

package com.symphony.mrfit.ui

import androidx.test.espresso.Espresso
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions
import androidx.test.espresso.assertion.ViewAssertions
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.ext.junit.rules.activityScenarioRule
import com.symphony.mrfit.R
import org.junit.Assert.*
import org.junit.Rule

import org.junit.Test

class RegisterActivityTest {

@get:Rule
var activityScenarioRule = activityScenarioRule<RegisterActivity>()



/*tests if register works*/
@Test
fun checkValidRegister() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Created by Team Symphony on 4/22/23, 6:21 AM
* Created by Team Symphony on 4/23/23, 3:46 AM
* Copyright (c) 2023 . All rights reserved.
* Last modified 4/22/23, 6:05 AM
* Last modified 4/23/23, 3:46 AM
*/

package com.symphony.mrfit.ui
Expand All @@ -11,22 +11,13 @@ import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.ext.junit.rules.activityScenarioRule
import androidx.test.filters.LargeTest
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import com.symphony.mrfit.R
import org.hamcrest.CoreMatchers.not
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4ClassRunner::class)
@LargeTest
class TemplateSelectionActivityTest {

@Before
fun setUp() {
}

@get:Rule
var activityScenarioRule = activityScenarioRule<RoutineSelectionActivity>()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Created by Team Symphony on 4/22/23, 6:21 AM
* Created by Team Symphony on 4/23/23, 3:46 AM
* Copyright (c) 2023 . All rights reserved.
* Last modified 4/22/23, 6:05 AM
* Last modified 4/23/23, 3:46 AM
*/

package com.symphony.mrfit.ui
Expand All @@ -12,23 +12,13 @@ import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.ext.junit.rules.activityScenarioRule
import androidx.test.filters.LargeTest
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import com.symphony.mrfit.R
import org.hamcrest.CoreMatchers.not
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4ClassRunner::class)
@LargeTest
class UserProfileActivityTest {

@Before
fun setUp() {
}

@get:Rule
var activityScenarioRule = activityScenarioRule<UserProfileActivity>()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Created by Team Symphony on 4/22/23, 6:21 AM
* Created by Team Symphony on 4/23/23, 3:46 AM
* Copyright (c) 2023 . All rights reserved.
* Last modified 4/22/23, 6:05 AM
* Last modified 4/23/23, 3:46 AM
*/

package com.symphony.mrfit.ui
Expand All @@ -13,23 +13,13 @@ import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.ext.junit.rules.activityScenarioRule
import androidx.test.filters.LargeTest
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import com.symphony.mrfit.R
import org.hamcrest.CoreMatchers.not
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4ClassRunner::class)
@LargeTest
class WorkoutRoutineActivityTest {

@Before
fun setUp() {
}

@get:Rule
var activityScenarioRule = activityScenarioRule<WorkoutRoutineActivity>(
intent = Intent(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Created by Team Symphony on 4/22/23, 6:21 AM
* Created by Team Symphony on 4/23/23, 3:46 AM
* Copyright (c) 2023 . All rights reserved.
* Last modified 4/22/23, 6:05 AM
* Last modified 4/23/23, 3:46 AM
*/

package com.symphony.mrfit.ui
Expand All @@ -13,22 +13,12 @@ import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.ext.junit.rules.activityScenarioRule
import androidx.test.filters.LargeTest
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import com.symphony.mrfit.R
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4ClassRunner::class)
@LargeTest
class WorkoutTemplateActivityTest {

@Before
fun setUp() {
}

@get:Rule
var activityScenarioRule = activityScenarioRule<WorkoutTemplateActivity>(
intent = Intent(
Expand Down

0 comments on commit 422637f

Please sign in to comment.