Skip to content

Commit

Permalink
style: rename tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shouwn committed Nov 13, 2023
1 parent 6970af2 commit a6e24dd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class PathsTest : WithAssertions {
}

@Test
fun `path() with an entity`() {
fun `path() with an entity and a property`() {
// when
val actual = Paths.path(
entity1,
Expand Down Expand Up @@ -84,7 +84,7 @@ class PathsTest : WithAssertions {
}

@Test
fun `path() with a path`() {
fun `path() with a path and a property`() {
// when
val actual = Paths.path(
path1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class JakartaJpqlIntrospectorTest : WithAssertions {
}

@Test
fun `introspect() returns name of entity annotation, when entity annotation has name`() {
fun `introspect() returns the name of the entity annotation, when the entity annotation has name`() {
// given
val type = EntityClass1::class

Expand All @@ -23,7 +23,7 @@ class JakartaJpqlIntrospectorTest : WithAssertions {
}

@Test
fun `introspect() returns name of class, when entity annotation does not have name`() {
fun `introspect() returns the name of the class, when the entity annotation does not have name`() {
// given
val type = EntityClass2::class

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class JavaxJpqlIntrospectorTest : WithAssertions {
}

@Test
fun `introspect() returns name of entity annotation, when entity annotation has name`() {
fun `introspect() returns the name of the entity annotation, when the entity annotation has name`() {
// given
val type = EntityClass1::class

Expand All @@ -23,7 +23,7 @@ class JavaxJpqlIntrospectorTest : WithAssertions {
}

@Test
fun `introspect() returns name of class, when entity annotation does not have name`() {
fun `introspect() returns the name of the class, when the entity annotation does not have name`() {
// given
val type = EntityClass2::class

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class KotlinStyleJpqlPropertyIntrospectorTest : WithAssertions {
private val sut = KotlinStyleJpqlPropertyIntrospector()

@Test
fun `introspect() returns property name, when property is KProperty1`() {
fun `introspect() returns the property name, when the property is KProperty1`() {
// given
val property = EntityClass1::property1

Expand All @@ -21,7 +21,7 @@ class KotlinStyleJpqlPropertyIntrospectorTest : WithAssertions {
}

@Test
fun `introspect() returns property name with prefix removed, when getter name starts with get`() {
fun `introspect() returns the property name without prefix, when the getter name starts with get`() {
// given
val property = EntityClass1::getProperty2

Expand All @@ -33,7 +33,7 @@ class KotlinStyleJpqlPropertyIntrospectorTest : WithAssertions {
}

@Test
fun `introspect() returns property name as is, when getter name starts with is`() {
fun `introspect() returns the property name with is, when the getter name starts with is`() {
// given
val property = EntityClass1::isProperty3

Expand All @@ -45,7 +45,7 @@ class KotlinStyleJpqlPropertyIntrospectorTest : WithAssertions {
}

@Test
fun `introspect() returns property name as is, when getter name does not start with get or is`() {
fun `introspect() returns the getter name, when the getter name does not start with get or is`() {
// given
val property = EntityClass1::someProperty

Expand All @@ -57,7 +57,7 @@ class KotlinStyleJpqlPropertyIntrospectorTest : WithAssertions {
}

@Test
fun `introspect() returns null, when property is not KProperty1 or KFunction1`() {
fun `introspect() returns null, when the property is not KProperty1 or KFunction1`() {
// given
val property = mockkClass(KProperty0::class)

Expand Down

0 comments on commit a6e24dd

Please sign in to comment.