Skip to content

Commit

Permalink
test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
amerharb committed Sep 26, 2023
1 parent dbedecd commit f430cda
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions at-date-console/src/test/kotlin/com/amerharb/atdate/MainTest.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.amerharb.atdate

// import java.awt.datatransfer.DataFlavor
// import java.awt.Toolkit
// import java.awt.datatransfer.StringSelection
import java.awt.Toolkit
import java.awt.datatransfer.StringSelection
import java.io.ByteArrayOutputStream
import java.io.InputStream
import java.io.PrintStream
Expand Down Expand Up @@ -291,7 +291,7 @@ class MainTest {

@Test
fun testCopyResult() {
// clearClipboard()
clearClipboard()
// val systemInMock = InputStreamMock("0xa0\nc\nq")
// System.setIn(systemInMock)
// main(emptyArray())
Expand Down Expand Up @@ -320,7 +320,7 @@ class InputStreamMock(input: String) : InputStream() {
// return clipboard.getData(DataFlavor.stringFlavor) as String
// }
//
// fun clearClipboard() {
// val clipboard = Toolkit.getDefaultToolkit().systemClipboard
// clipboard.setContents(StringSelection(""), null)
// }
fun clearClipboard() {
val clipboard = Toolkit.getDefaultToolkit().systemClipboard
clipboard.setContents(StringSelection(""), null)
}

0 comments on commit f430cda

Please sign in to comment.