File tree Expand file tree Collapse file tree
src/test/java/it/niedermann/owncloud/notes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 */
99
1010apply plugin : ' com.android.application'
11- apply plugin : ' org.jetbrains.kotlin.android'
1211
1312android {
1413 namespace = ' it.niedermann.owncloud.notes'
1514
1615 defaultConfig {
1716 applicationId " it.niedermann.owncloud.notes"
18- minSdk 24
17+ minSdk 28
1918 compileSdk = 36
2019 targetSdk 36
2120 versionCode 340100050
@@ -30,12 +29,14 @@ android {
3029
3130 compileOptions {
3231 coreLibraryDesugaringEnabled = true
33- sourceCompatibility JavaVersion . VERSION_17
34- targetCompatibility JavaVersion . VERSION_17
32+ sourceCompatibility JavaVersion . VERSION_21
33+ targetCompatibility JavaVersion . VERSION_21
3534 }
3635
37- kotlinOptions {
38- jvmTarget = ' 17'
36+ kotlin {
37+ jvmToolchain {
38+ languageVersion. set(JavaLanguageVersion . of(21 ))
39+ }
3940 }
4041
4142 buildFeatures {
Original file line number Diff line number Diff line change 2323import org .junit .Test ;
2424import org .junit .runner .RunWith ;
2525import org .robolectric .RobolectricTestRunner ;
26+ import org .robolectric .annotation .Config ;
2627
2728import java .lang .reflect .InvocationTargetException ;
2829import java .lang .reflect .Method ;
3435import it .niedermann .owncloud .notes .shared .model .ENavigationCategoryType ;
3536
3637@ RunWith (RobolectricTestRunner .class )
38+ @ Config (sdk = 36 )
3739public class MainViewModelTest {
3840
3941 @ Rule
Original file line number Diff line number Diff line change 2424import org .junit .Test ;
2525import org .junit .runner .RunWith ;
2626import org .robolectric .RobolectricTestRunner ;
27+ import org .robolectric .annotation .Config ;
2728
2829import java .util .Arrays ;
2930
3031import it .niedermann .owncloud .notes .main .items .ItemAdapter ;
3132
3233@ RunWith (RobolectricTestRunner .class )
34+ @ Config (sdk = 36 )
3335public class GridItemDecorationTest {
3436
3537 private final ItemAdapter itemAdapter = mock (ItemAdapter .class );
Original file line number Diff line number Diff line change 1313import org .junit .Test ;
1414import org .junit .runner .RunWith ;
1515import org .robolectric .RobolectricTestRunner ;
16+ import org .robolectric .annotation .Config ;
1617
1718import java .util .Calendar ;
1819import java .util .List ;
2122import it .niedermann .owncloud .notes .persistence .entity .Note ;
2223
2324@ RunWith (RobolectricTestRunner .class )
25+ @ Config (sdk = 36 )
2426public class SlotterUtilTest {
2527
2628 @ Test
Original file line number Diff line number Diff line change 2020import org .junit .Test ;
2121import org .junit .runner .RunWith ;
2222import org .robolectric .RobolectricTestRunner ;
23+ import org .robolectric .annotation .Config ;
2324
2425import it .niedermann .owncloud .notes .persistence .entity .Account ;
2526import it .niedermann .owncloud .notes .shared .model .Capabilities ;
2627
2728@ RunWith (RobolectricTestRunner .class )
29+ @ Config (sdk = 36 )
2830public class AccountDaoTest {
2931
3032 @ Rule
Original file line number Diff line number Diff line change 1616import org .junit .Test ;
1717import org .junit .runner .RunWith ;
1818import org .robolectric .RobolectricTestRunner ;
19+ import org .robolectric .annotation .Config ;
1920
2021import it .niedermann .owncloud .notes .persistence .sync .NotesAPI ;
2122import it .niedermann .owncloud .notes .persistence .sync .OcsAPI ;
2627import static org .junit .Assert .assertSame ;
2728
2829@ RunWith (RobolectricTestRunner .class )
30+ @ Config (sdk = 36 )
2931public class ApiProviderTest {
3032
3133 @ Rule
Original file line number Diff line number Diff line change 1919import org .junit .Test ;
2020import org .junit .runner .RunWith ;
2121import org .robolectric .RobolectricTestRunner ;
22+ import org .robolectric .annotation .Config ;
2223
2324import java .io .IOException ;
2425import java .util .Map ;
3940import static org .mockito .Mockito .when ;
4041
4142@ RunWith (RobolectricTestRunner .class )
43+ @ Config (sdk = 36 )
4244public class CapabilitiesClientTest {
4345
4446 @ Rule
Original file line number Diff line number Diff line change 1919import org .junit .Test ;
2020import org .junit .runner .RunWith ;
2121import org .robolectric .RobolectricTestRunner ;
22+ import org .robolectric .annotation .Config ;
2223
2324import java .util .Calendar ;
2425import java .util .List ;
3940import static org .junit .Assert .assertTrue ;
4041
4142@ RunWith (RobolectricTestRunner .class )
43+ @ Config (sdk = 36 )
4244public class NotesDaoTest {
4345
4446 @ Rule
Original file line number Diff line number Diff line change 6666import it .niedermann .owncloud .notes .shared .model .IResponseCallback ;
6767
6868@ RunWith (RobolectricTestRunner .class )
69+ @ Config (sdk = 36 )
6970public class NotesRepositoryTest {
7071
7172 @ Rule
Original file line number Diff line number Diff line change 3030import org .junit .Test ;
3131import org .junit .runner .RunWith ;
3232import org .robolectric .RobolectricTestRunner ;
33+ import org .robolectric .annotation .Config ;
3334
3435import java .io .IOException ;
3536import java .util .Arrays ;
4445
4546@ SuppressWarnings ("CallToThreadRun" )
4647@ RunWith (RobolectricTestRunner .class )
48+ @ Config (sdk = 36 )
4749public class NotesServerSyncTaskTest {
4850
4951 @ Rule
You can’t perform that action at this time.
0 commit comments