Konsist: add rule obout test class name, and fix existing issue

This commit is contained in:
Benoit Marty 2023-10-12 10:04:42 +02:00 committed by Benoit Marty
parent 8f8a5746e5
commit 7389748f3e
11 changed files with 20 additions and 10 deletions

View file

@ -19,7 +19,7 @@ package io.element.android.libraries.matrix.api.auth
import com.google.common.truth.Truth.assertThat
import org.junit.Test
class AuthErrorCodeTests {
class AuthErrorCodeTest {
@Test
fun `errorCode finds UNKNOWN code`() {

View file

@ -23,7 +23,7 @@ import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
@RunWith(RobolectricTestRunner::class)
class MatrixToConverterTests {
class MatrixToConverterTest {
@Test
fun `converting a matrix-to url does nothing`() {

View file

@ -23,7 +23,7 @@ import io.element.android.tests.testutils.assertThrowsInDebug
import io.element.android.tests.testutils.isInDebug
import org.junit.Test
class PermalinkBuilderTests {
class PermalinkBuilderTest {
fun `building a permalink for an invalid user id throws when verifying the id`() {
assertThrowsInDebug {

View file

@ -22,7 +22,7 @@ import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
@RunWith(RobolectricTestRunner::class)
class PermalinkParserTests {
class PermalinkParserTest {
@Test
fun `parsing an invalid url returns a fallback link`() {