-
Notifications
You must be signed in to change notification settings - Fork 2
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 #287 from Zeavee/final-branch
Final Branch
- Loading branch information
Showing
207 changed files
with
3,949 additions
and
3,775 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<lint> | ||
<issue id="InvalidPackage"> | ||
<ignore path="*/io.grpc/grpc-core/*"/> | ||
<issue id="IconXmlAndPng"> | ||
<ignore path="src/main/res/drawable-hdpi/ic_action_mail.png" /> | ||
</issue> | ||
</lint> | ||
</lint> |
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
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
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
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
59 changes: 31 additions & 28 deletions
59
...pfl/sdp/logic/RulesActivityPage1Test.java → ...epfl/sdp/game/RulesActivityPage1Test.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
package ch.epfl.sdp.logic; | ||
|
||
import org.junit.Rule; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import androidx.test.espresso.intent.rule.IntentsTestRule; | ||
import androidx.test.ext.junit.runners.AndroidJUnit4; | ||
import androidx.test.rule.ActivityTestRule; | ||
import ch.epfl.sdp.R; | ||
|
||
import static androidx.test.espresso.Espresso.onView; | ||
import static androidx.test.espresso.action.ViewActions.click; | ||
import static androidx.test.espresso.intent.Intents.intended; | ||
import static androidx.test.espresso.intent.matcher.IntentMatchers.hasComponent; | ||
import static androidx.test.espresso.matcher.ViewMatchers.withId; | ||
|
||
@RunWith(AndroidJUnit4.class) | ||
public class RulesActivityPage1Test { | ||
@Rule | ||
public ActivityTestRule<RulesActivityPage1> mActivityRule = new IntentsTestRule<>(RulesActivityPage1.class); | ||
|
||
@Test | ||
public void btnPage2Click_OpensRulesActivityPage2() { | ||
onView(withId(R.id.btnPage2)).perform(click()); | ||
intended(hasComponent(RulesActivityPage2.class.getName())); | ||
} | ||
} | ||
package ch.epfl.sdp.game; | ||
|
||
import androidx.test.espresso.intent.rule.IntentsTestRule; | ||
import androidx.test.ext.junit.runners.AndroidJUnit4; | ||
import androidx.test.rule.ActivityTestRule; | ||
|
||
import org.junit.Rule; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import ch.epfl.sdp.R; | ||
import ch.epfl.sdp.ui.game.RulesActivityPage1; | ||
import ch.epfl.sdp.ui.game.RulesActivityPage2; | ||
|
||
import static androidx.test.espresso.Espresso.onView; | ||
import static androidx.test.espresso.action.ViewActions.click; | ||
import static androidx.test.espresso.intent.Intents.intended; | ||
import static androidx.test.espresso.intent.matcher.IntentMatchers.hasComponent; | ||
import static androidx.test.espresso.matcher.ViewMatchers.withId; | ||
|
||
@RunWith(AndroidJUnit4.class) | ||
public class RulesActivityPage1Test { | ||
@Rule | ||
public ActivityTestRule<RulesActivityPage1> mActivityRule = new IntentsTestRule<>(RulesActivityPage1.class); | ||
|
||
@Test | ||
public void btnPage2Click_OpensRulesActivityPage2() { | ||
onView(withId(R.id.btnPage2)).perform(click()); | ||
intended(hasComponent(RulesActivityPage2.class.getName())); | ||
} | ||
} |
Oops, something went wrong.