Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 176 for ByteArrayInputStream (1.21 sec)

  1. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DaemonClientTest.groovy

        final ProcessEnvironment processEnvironment = Mock()
        final GlobalUserInputReceiver userInput = Stub()
        final DaemonClient client = new DaemonClient(connector, outputEventListener, compatibilitySpec, new ByteArrayInputStream(new byte[0]), userInput, idGenerator, processEnvironment)
    
        def "executes action"() {
            def resultMessage = Stub(BuildActionResult)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:54:56 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. platforms/extensibility/test-kit/src/test/groovy/org/gradle/testkit/runner/internal/DefaultGradleRunnerTest.groovy

        }
    
        def "standard input is passed on to executor"() {
            given:
            def standardInput = new ByteArrayInputStream()
            def gradleUserHomeDir = testDirectoryProvider.createDir('some/dir')
    
            when:
            createRunnerWithWorkingDirAndArgument()
                .withStandardInput(standardInput)
                .build()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

    import com.google.common.reflect.ClassPath.ClassInfo;
    import com.google.common.reflect.ClassPath.ResourceInfo;
    import com.google.common.testing.EqualsTester;
    import com.google.common.testing.NullPointerTester;
    import java.io.ByteArrayInputStream;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.FilePermission;
    import java.io.IOException;
    import java.io.InputStream;
    import java.net.MalformedURLException;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 26 14:02:27 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  4. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/IsolatableSerializerRegistryTest.groovy

            encoder.flush()
        }
    
        Isolatable<?>[] deserialize() {
            def isolatables = []
            def decoder = new KryoBackedDecoder(new ByteArrayInputStream(outputStream.toByteArray()));
            int size = decoder.readInt()
            size.times {
                isolatables.add(serializer.readIsolatable(decoder))
            }
            return isolatables as Isolatable<?>[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 14:30:36 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

    import assertk.assertions.containsExactly
    import assertk.assertions.isEqualTo
    import assertk.assertions.isFalse
    import assertk.assertions.isInstanceOf
    import assertk.assertions.isTrue
    import java.io.ByteArrayInputStream
    import java.security.cert.CertificateFactory
    import java.security.cert.X509Certificate
    import javax.net.ssl.SSLSession
    import javax.security.auth.x500.X500Principal
    import okhttp3.FakeSSLSession
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ConcurrentToolingApiIntegrationSpec.groovy

                concurrent.start {
                    withConnectionInDir("build$idx") { connection ->
                        def model = connection.model(GradleProject.class)
                        model.standardInput = new ByteArrayInputStream("project $idx".toString().bytes)
                        def project = model.get()
                        assert project.description == "project $idx"
                    }
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/internal/xml/XmlTransformerTest.groovy

        }
    
        private void looksLike(String expected, byte[] actual) {
            DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new ByteArrayInputStream(actual))
            assert removeTrailingWhitespace(new String(actual, "utf-8")) == removeTrailingWhitespace(TextUtil.toPlatformLineSeparators("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + expected))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 15 08:16:06 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractorTest.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.crawler.extractor.impl;
    
    import java.io.ByteArrayInputStream;
    import java.io.InputStream;
    import java.io.UnsupportedEncodingException;
    import java.util.HashMap;
    import java.util.Map;
    
    import org.codelibs.core.io.CloseableUtil;
    import org.codelibs.core.io.ResourceUtil;
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  9. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/AbstractCodecTest.groovy

        }
    
        abstract void decodeFrom(InputStream inputStream, Closure<Decoder> closure)
    
        void decode(byte[] bytes, Closure<Decoder> closure) {
            decodeFrom(new ByteArrayInputStream(bytes), closure)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  10. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/MetaInfAwareClasspathResourceHasherTest.groovy

                <T> T withInputStream(IoFunction<InputStream, T> action) throws IOException {
                    if (exception) {
                        throw exception
                    }
                    return action.apply(new ByteArrayInputStream(bos.toByteArray()))
                }
    
                @Override
                int size() {
                    return bos.size()
                }
    
                @Override
                boolean canReopen() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 16.9K bytes
    - Viewed (0)
Back to top