Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for tempDir (0.23 sec)

  1. okhttp/src/test/java/okhttp3/RequestBodyTest.kt

    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.io.TempDir
    
    class RequestBodyTest {
      private lateinit var filePath: okio.Path
    
      @BeforeEach
      fun setup(
        @TempDir tempDir: Path,
      ) {
        filePath = tempDir.toOkioPath() / "file.txt"
      }
    
      @Test
      fun testFileDescriptor() {
        assertOnFileDescriptor { fd ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (1)
  2. build-logic-commons/basics/src/test/kotlin/gradlebuild/basics/tasks/PackageListGeneratorIntegrationTest.kt

     * limitations under the License.
     */
    
    package gradlebuild.basics.tasks
    
    import org.junit.jupiter.api.Assertions.assertEquals
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.io.TempDir
    import java.nio.file.FileVisitResult
    import java.nio.file.Files
    import java.nio.file.Path
    import java.nio.file.SimpleFileVisitor
    import java.nio.file.attribute.BasicFileAttributes
    import java.util.jar.JarEntry
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/cache2/FileOperatorTest.kt

    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.io.TempDir
    
    class FileOperatorTest {
      @TempDir
      var tempDir: File? = null
      private var file: File? = null
      private var randomAccessFile: RandomAccessFile? = null
    
      @BeforeEach
      fun setUp() {
        file = File(tempDir, "test")
        randomAccessFile = RandomAccessFile(file, "rw")
      }
    
      @AfterEach
      fun tearDown() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.io.TempDir
    
    @Tag("Slowish")
    class RelayTest {
      @TempDir
      var tempDir: File? = null
      private val executor = Executors.newCachedThreadPool(threadFactory("RelayTest"))
      private val metadata: ByteString = "great metadata!".encodeUtf8()
      private lateinit var file: File
    
      @BeforeEach
      fun setUp() {
        file = File(tempDir, "test")
      }
    
      @AfterEach
      fun tearDown() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest.kt

    import org.gradle.util.internal.TextUtil
    import org.junit.jupiter.api.Assertions
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.io.TempDir
    import java.io.File
    import java.io.StringWriter
    
    
    abstract class AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest {
        @TempDir
        lateinit var projectDir: File
        lateinit var acceptedApiChangesFile: File
    
        @BeforeEach
        fun setUp() {
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Nov 28 21:09:42 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  6. api/go1.15.txt

    pkg sync, method (*Map) LoadAndDelete(interface{}) (interface{}, bool)
    pkg testing, method (*B) TempDir() string
    pkg testing, method (*T) Deadline() (time.Time, bool)
    pkg testing, method (*T) TempDir() string
    pkg testing, type TB interface, TempDir() string
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Jul 17 02:15:01 GMT 2020
    - 7.6K bytes
    - Viewed (0)
  7. build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt

    import org.junit.jupiter.api.io.TempDir
    import java.io.File
    
    
    @EnabledIfEnvironmentVariable(named = "CI", matches = ".*", disabledReason = "Tests rely on setup conditional on CI in gradlebuild.ci-reporting plugin running first, these test should only run if CI env var is present (it's value doesn't matter)")
    class TestFilesCleanupServiceTest {
        @TempDir
        lateinit var projectDir: File
    
        private
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Jun 14 12:35:52 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

    import org.junit.jupiter.api.io.TempDir
    import org.opentest4j.TestAbortedException
    
    /** Android's URLConnectionTest, ported to exercise OkHttp's Call API.  */
    @Tag("Slow")
    class URLConnectionTest {
      @RegisterExtension
      val platform = PlatformRule()
    
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      @TempDir
      lateinit var tempDir: File
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  9. api/go1.19.txt

    pkg io/ioutil, func NopCloser //deprecated #42026
    pkg io/ioutil, func ReadAll //deprecated #42026
    pkg io/ioutil, func ReadDir //deprecated #42026
    pkg io/ioutil, func ReadFile //deprecated #42026
    pkg io/ioutil, func TempDir //deprecated #42026
    pkg io/ioutil, func TempFile //deprecated #42026
    pkg io/ioutil, func WriteFile //deprecated #42026
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 17.9K bytes
    - Viewed (1)
  10. ci/official/containers/linux_arm64/devel.usertools/code_check_full.bats

      comm -2 -3 $BATS_TEST_TMPDIR/expected_licenses $BATS_TEST_TMPDIR/actual_licenses | grep -v -f $BATS_TEST_TMPDIR/allowed_to_be_missing > $BATS_TEST_TMPDIR/actual_missing_licenses || true
    
      if [[ -s $BATS_TEST_TMPDIR/actual_extra_licenses ]]; then
        echo "Please remove the following extra licenses from $LICENSES_TARGET:"
        cat $BATS_TEST_TMPDIR/actual_extra_licenses
      fi
    
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 12.7K bytes
    - Viewed (0)
Back to top