mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-13 15:52:01 +07:00
[remote-driver] Update license tests to use new license dialog (IJPL-148224)
(cherry picked from commit 5fff781d6345ded1c2a929e5c76f801663f85366) IJ-CR-148048 GitOrigin-RevId: 8e074f4990af5f548be8ec0add4d5237939f47c3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
da441b45a2
commit
12357b95f7
@@ -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