aboutsummaryrefslogtreecommitdiff
path: root/core/src/androidTest/kotlin/ca/allanwang/kau
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-02-23 15:34:59 -0800
committerAllan Wang <me@allanwang.ca>2020-02-23 15:34:59 -0800
commit5038b93102949bb127b6cb9cb26809490739b3fa (patch)
tree1c0793625b9d05c98b4d0abfccd35ffa90819094 /core/src/androidTest/kotlin/ca/allanwang/kau
parent3e7f62f89bc4e95cfae7394463e3fd503777011f (diff)
downloadkau-5038b93102949bb127b6cb9cb26809490739b3fa.tar.gz
kau-5038b93102949bb127b6cb9cb26809490739b3fa.tar.bz2
kau-5038b93102949bb127b6cb9cb26809490739b3fa.zip
Apply spotless
Diffstat (limited to 'core/src/androidTest/kotlin/ca/allanwang/kau')
-rw-r--r--core/src/androidTest/kotlin/ca/allanwang/kau/Utils.kt17
-rw-r--r--core/src/androidTest/kotlin/ca/allanwang/kau/kpref/KPrefTest.kt2
2 files changed, 17 insertions, 2 deletions
diff --git a/core/src/androidTest/kotlin/ca/allanwang/kau/Utils.kt b/core/src/androidTest/kotlin/ca/allanwang/kau/Utils.kt
index 33252d6..c9d4e31 100644
--- a/core/src/androidTest/kotlin/ca/allanwang/kau/Utils.kt
+++ b/core/src/androidTest/kotlin/ca/allanwang/kau/Utils.kt
@@ -1,7 +1,22 @@
+/*
+ * Copyright 2020 Allan Wang
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package ca.allanwang.kau
import android.content.Context
import androidx.test.platform.app.InstrumentationRegistry
val context: Context
- get() = InstrumentationRegistry.getInstrumentation().context \ No newline at end of file
+ get() = InstrumentationRegistry.getInstrumentation().context
diff --git a/core/src/androidTest/kotlin/ca/allanwang/kau/kpref/KPrefTest.kt b/core/src/androidTest/kotlin/ca/allanwang/kau/kpref/KPrefTest.kt
index 222f0f5..70558df 100644
--- a/core/src/androidTest/kotlin/ca/allanwang/kau/kpref/KPrefTest.kt
+++ b/core/src/androidTest/kotlin/ca/allanwang/kau/kpref/KPrefTest.kt
@@ -20,10 +20,10 @@ import android.content.SharedPreferences
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.MediumTest
import ca.allanwang.kau.context
+import kotlin.test.assertEquals
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
-import kotlin.test.assertEquals
/**
* Created by Allan Wang on 2017-08-01.