mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[remote-driver] Update license tests to use new license dialog (IJPL-148224)
GitOrigin-RevId: 5fff781d6345ded1c2a929e5c76f801663f85366
This commit is contained in:
committed by
intellij-monorepo-bot
parent
86b8761a74
commit
dec45327f8
+15
@@ -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()))
|
||||
Reference in New Issue
Block a user