reformat test code for latest ktlint release

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2023-12-05 15:37:47 +01:00
parent cc559d9d75
commit 3a6e18c07e
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
2 changed files with 9 additions and 10 deletions

View File

@ -20,9 +20,12 @@ class ShareUtilsIT {
return DateUtils.parseDate( return DateUtils.parseDate(
dateStr, Locale.US, dateStr, Locale.US,
HttpUtils.httpDateFormatStr, HttpUtils.httpDateFormatStr,
"EEE, dd MMM yyyy HH:mm:ss zzz", // RFC 822, updated by RFC 1123 with any TZ // RFC 822, updated by RFC 1123 with any TZ
"EEEE, dd-MMM-yy HH:mm:ss zzz", // RFC 850, obsoleted by RFC 1036 with any TZ. "EEE, dd MMM yyyy HH:mm:ss zzz",
"EEE MMM d HH:mm:ss yyyy", // ANSI C's asctime() format // RFC 850, obsoleted by RFC 1036 with any TZ.
"EEEE, dd-MMM-yy HH:mm:ss zzz",
// ANSI C's asctime() format
"EEE MMM d HH:mm:ss yyyy",
// Alternative formats. // Alternative formats.
"EEE, dd-MMM-yyyy HH:mm:ss z", "EEE, dd-MMM-yyyy HH:mm:ss z",
"EEE, dd-MMM-yyyy HH-mm-ss z", "EEE, dd-MMM-yyyy HH-mm-ss z",
@ -35,7 +38,7 @@ class ShareUtilsIT {
"EEE,dd-MMM-yy HH:mm:ss z", "EEE,dd-MMM-yy HH:mm:ss z",
"EEE,dd-MMM-yyyy HH:mm:ss z", "EEE,dd-MMM-yyyy HH:mm:ss z",
"EEE, dd-MM-yyyy HH:mm:ss z", "EEE, dd-MM-yyyy HH:mm:ss z",
/* RI bug 6641315 claims a cookie of this format was once served by www.yahoo.com */ // RI bug 6641315 claims a cookie of this format was once served by www.yahoo.com
"EEE MMM d yyyy HH:mm:ss z" "EEE MMM d yyyy HH:mm:ss z"
) )
} }

View File

@ -28,15 +28,11 @@ import io.reactivex.Observable
class FakeCallRecordingRepository : CallRecordingRepository { class FakeCallRecordingRepository : CallRecordingRepository {
override fun startRecording( override fun startRecording(roomToken: String): Observable<StartCallRecordingModel> {
roomToken: String
): Observable<StartCallRecordingModel> {
return Observable.just(StartCallRecordingModel(true)) return Observable.just(StartCallRecordingModel(true))
} }
override fun stopRecording( override fun stopRecording(roomToken: String): Observable<StopCallRecordingModel> {
roomToken: String
): Observable<StopCallRecordingModel> {
return Observable.just(StopCallRecordingModel(true)) return Observable.just(StopCallRecordingModel(true))
} }
} }