Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 226 for Apply (0.02 sec)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/Apply.java

    import org.apache.maven.api.di.Named;
    import org.apache.maven.api.di.Singleton;
    import org.apache.maven.cling.invoker.mvnup.UpgradeContext;
    
    /**
     * The "apply" goal implementation.
     */
    @Named("apply")
    @Singleton
    public class Apply extends AbstractUpgradeGoal {
    
        @Inject
        public Apply(StrategyOrchestrator orchestrator) {
            super(orchestrator);
        }
    
        @Override
        protected boolean shouldSaveModifications() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ApplyTest.java

    /**
     * Unit tests for the {@link Apply} goal class.
     * Tests the Apply-specific functionality including file modification behavior.
     */
    @DisplayName("Apply")
    class ApplyTest {
    
        private Apply applyGoal;
        private StrategyOrchestrator mockOrchestrator;
    
        @BeforeEach
        void setUp() {
            mockOrchestrator = mock(StrategyOrchestrator.class);
            applyGoal = new Apply(mockOrchestrator);
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 10:39:17 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/RecordedResponse.kt

        apply {
          assertThat(response!!.code).isEqualTo(expectedCode)
        }
    
      fun assertSuccessful() =
        apply {
          assertThat(failure).isNull()
          assertThat(response!!.isSuccessful).isTrue()
        }
    
      fun assertNotSuccessful() =
        apply {
          assertThat(response!!.isSuccessful).isFalse()
        }
    
      fun assertHeader(
        name: String,
        vararg values: String?,
      ) = apply {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

            else -> "Mock Response"
          }
        return apply { status = "HTTP/1.1 $code $reason" }
      }
    
      fun clearHeaders() =
        apply {
          headersBuilder = Headers.Builder()
        }
    
      fun addHeader(header: String) =
        apply {
          headersBuilder.add(header)
        }
    
      fun addHeader(
        name: String,
        value: Any,
      ) = apply {
        headersBuilder.add(name, value.toString())
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 7.1K bytes
    - Viewed (1)
  5. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        T instance = generator.newFreshProxy(interfaceType);
        new EqualsTester()
            .addEqualityGroup(wrapperFunction.apply(instance), wrapperFunction.apply(instance))
            .addEqualityGroup(wrapperFunction.apply(generator.newFreshProxy(interfaceType)))
            // TODO: add an overload to EqualsTester to print custom error message?
            .testEquals();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RetryConnectionTest.kt

        assertThat(retryTlsHandshake(exception)).isFalse()
      }
    
      @Test fun nonRetryableSSLHandshakeException() {
        val exception =
          SSLHandshakeException("Certificate handshake exception").apply {
            initCause(CertificateException())
          }
        assertThat(retryTlsHandshake(exception)).isFalse()
      }
    
      @Test fun retryableSSLHandshakeException() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-CacheControlCommon.kt

      )
    
    internal fun CacheControl.Builder.commonNoCache() =
      apply {
        this.noCache = true
      }
    
    internal fun CacheControl.Builder.commonNoStore() =
      apply {
        this.noStore = true
      }
    
    internal fun CacheControl.Builder.commonOnlyIfCached() =
      apply {
        this.onlyIfCached = true
      }
    
    internal fun CacheControl.Builder.commonNoTransform() =
      apply {
        this.noTransform = true
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  8. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeWorkflowIntegrationTest.java

                        TestUtils.createMockContext(tempDir, TestUtils.createOptionsWithModelVersion("4.1.0"));
    
                // Execute apply goal
                int result = applyGoal.execute(context);
    
                // Verify success
                assertEquals(0, result, "Apply should succeed");
    
                // Verify POM was upgraded
                String upgradedPom = Files.readString(pomFile);
                assertTrue(
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. mockwebserver-junit5/src/test/java/mockwebserver3/junit5/StartStopTest.kt

      @StartStop val serverA =
        MockWebServer().apply {
          dispatcher = dispatcherA
        }
    
      private val dispatcherB = ClosableDispatcher()
    
      @StartStop val serverB =
        MockWebServer().apply {
          dispatcher = dispatcherB
        }
    
      /** This one won't start because it isn't annotated. */
      private val dispatcherC = ClosableDispatcher()
      val serverC =
        MockWebServer().apply {
          dispatcher = dispatcherC
        }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 11:13:17 UTC 2025
    - 3.3K bytes
    - Viewed (1)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/internal/duplex/MockSocketHandler.kt

      ) = apply {
        actions += { stream ->
          stream.sink.writeUtf8(s)
          stream.sink.flush()
          responseSent.countDown()
        }
      }
    
      fun exhaustResponse() =
        apply {
          actions += { stream -> stream.sink.close() }
        }
    
      fun sleep(
        duration: Long,
        unit: TimeUnit,
      ) = apply {
        actions += { Thread.sleep(unit.toMillis(duration)) }
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 3.3K bytes
    - Viewed (0)
Back to top