Newer
Older
CitrusClient / app / src / androidTest / java / com / example / citrusclient / CalendarTest.java
t-watanabe on 8 Oct 853 bytes カレンダーの機能修正
package com.example.citrusclient;

import static androidx.compose.ui.semantics.SemanticsPropertiesKt.onClick;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.action.ViewActions.click;
import static androidx.test.espresso.matcher.ViewMatchers.withId;

import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.core.app.ActivityScenario;

import com.example.citrusclient.views.TestActivity;

import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(AndroidJUnit4.class)
public class CalendarTest {

    @Test
    public void testCalendar(){
        try(ActivityScenario<TestActivity> scenario = ActivityScenario.launch(TestActivity.class)){
            onView(withId(R.id.otherRbBoth)).perform(click());
            System.out.println("helel");
        }
    }
}