[remote-driver] Update license tests to use new license dialog (IJPL-148224)

GitOrigin-RevId: 5fff781d6345ded1c2a929e5c76f801663f85366
This commit is contained in:
Dmitry.Yudin
2024-10-23 12:12:00 +00:00
committed by intellij-monorepo-bot
parent 86b8761a74
commit dec45327f8
@@ -0,0 +1,15 @@
package com.intellij.driver.sdk.application
import com.intellij.driver.client.Driver
import com.intellij.driver.client.Remote
import java.time.LocalDate
import java.time.ZoneId
import java.util.Date
@Remote("com.intellij.util.text.DateFormatUtil")
interface DateFormatUtil {
fun formatDate(date: Date): String
}
fun Driver.formatLicenseDate(date: LocalDate) = utility(DateFormatUtil::class)
.formatDate(Date.from(date.atStartOfDay(ZoneId.systemDefault()).toInstant()))