nheyek/SDP-2018

View on GitHub
app/src/androidTest/java/ch/epfl/sweng/studyup/QuestionsTest/AddQuestionActivityTest.java

Summary

Maintainability
A
1 hr
Test Coverage

Method setAndAddQuestion has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void setAndAddQuestion() throws Throwable {
        //Select Course
        onView(withId(R.id.choice_course_button)).perform(scrollTo()).perform(click());
        UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
        UiObject button = uiDevice.findObject(new UiSelector().text(SWENG.toString()));

    There are no issues that match your filters.

    Category
    Status