Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 15 of 15 for TestOption (0.04 seconds)

  1. android/guava-tests/test/com/google/common/io/TestCharSink.java

     *
     * @author Colin Decker
     */
    @NullUnmarked
    public class TestCharSink extends CharSink implements TestStreamSupplier {
    
      private final TestByteSink byteSink;
    
      public TestCharSink(TestOption... options) {
        this.byteSink = new TestByteSink(options);
      }
    
      public String getString() {
        return new String(byteSink.getBytes(), UTF_8);
      }
    
      @Override
      public boolean wasStreamOpened() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.1K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/io/CloseablesTest.java

        TestInputStream in =
            new TestInputStream(new ByteArrayInputStream(new byte[1]), TestOption.CLOSE_THROWS);
        Closeables.closeQuietly(in);
        assertTrue(in.closed());
      }
    
      public void testCloseQuietly_readerWithEatenException() throws IOException {
        TestReader in = new TestReader(TestOption.CLOSE_THROWS);
        Closeables.closeQuietly(in);
        assertTrue(in.closed());
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  3. api/maven-api-core/src/test/java/org/apache/maven/api/JavaPathTypeTest.java

            return expected.replace("/", File.separator).replace(":", File.pathSeparator);
        }
    
        /**
         * Tests the formatting of an option without module name.
         */
        @Test
        public void testOption() {
            String[] formatted = JavaPathType.MODULES.option(paths());
            assertEquals(2, formatted.length);
            assertEquals("--module-path", formatted[0]);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Nov 13 14:20:26 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/io/TestReader.java

    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * @author Colin Decker
     */
    @NullUnmarked
    public class TestReader extends FilterReader {
    
      private final TestInputStream in;
    
      public TestReader(TestOption... options) throws IOException {
        this(new TestInputStream(new ByteArrayInputStream(new byte[10]), options));
      }
    
      public TestReader(TestInputStream in) {
        super(new InputStreamReader(checkNotNull(in), UTF_8));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/io/TestReader.java

    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * @author Colin Decker
     */
    @NullUnmarked
    public class TestReader extends FilterReader {
    
      private final TestInputStream in;
    
      public TestReader(TestOption... options) throws IOException {
        this(new TestInputStream(new ByteArrayInputStream(new byte[10]), options));
      }
    
      public TestReader(TestInputStream in) {
        super(new InputStreamReader(checkNotNull(in), UTF_8));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 1.4K bytes
    - Click Count (0)
Back to Top