Update test names to kotlin style

Test: StackScrollAlgorithmTest
Change-Id: I89a6df6f538ef0dd2dd46045dbb18ad6f7299130
This commit is contained in:
Lyn Han
2022-04-15 23:03:22 -04:00
parent 8a4c3cc16a
commit 72a8595e8f

View File

@@ -47,7 +47,7 @@ class StackScrollAlgorithmTest : SysuiTestCase() {
}
@Test
fun testUpTranslationSetToDefaultValue() {
fun resetViewStates_defaultHun_yTranslationIsInset() {
whenever(notificationRow.isPinned).thenReturn(true)
whenever(notificationRow.isHeadsUp).thenReturn(true)
@@ -57,7 +57,7 @@ class StackScrollAlgorithmTest : SysuiTestCase() {
}
@Test
fun testHeadsUpTranslationChangesBasedOnStackMargin() {
fun resetViewStates_stackMargin_changesHunYTranslation() {
whenever(notificationRow.isPinned).thenReturn(true)
whenever(notificationRow.isHeadsUp).thenReturn(true)
val minHeadsUpTranslation = context.resources
@@ -72,7 +72,7 @@ class StackScrollAlgorithmTest : SysuiTestCase() {
}
@Test
fun resetViewStates_childIsEmptyShadeView_viewIsCenteredVertically() {
fun resetViewStates_emptyShadeView_isCenteredVertically() {
stackScrollAlgorithm.initView(context)
val emptyShadeView = EmptyShadeView(context, /* attrs= */ null).apply {
layout(/* l= */ 0, /* t= */ 0, /* r= */ 100, /* b= */ 100)