Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 4,543 for ApplyG (0.31 sec)

  1. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        assertFalse(isNumber.apply(null));
      }
    
      @GwtIncompatible // Predicates.instanceOf
      public void testIsInstanceOf_interface() {
        Predicate<@Nullable Object> isComparable = Predicates.instanceOf(Comparable.class);
    
        assertTrue(isComparable.apply(1));
        assertTrue(isComparable.apply(2.0f));
        assertTrue(isComparable.apply(""));
        assertFalse(isComparable.apply(null));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  2. platforms/ide/ide/src/integTest/groovy/org/gradle/plugins/ide/eclipse/EclipseClasspathIntegrationTest.groovy

    subprojects {
        apply plugin: 'java'
        apply plugin: 'eclipse'
    
        repositories {
            maven { url "${mavenRepo.uri}" }
        }
    }
    
    configure(project(":a")){
        dependencies {
            implementation 'someGroup:someOtherArtifact:1.0'
    
            implementation project(':b')
        }
    }
    
    configure(project(":b")){
        apply plugin: 'java-library'
        dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 36.8K bytes
    - Viewed (0)
  3. platforms/ide/ide/src/testFixtures/groovy/org/gradle/plugins/ide/fixtures/AbstractMultiBuildIdeIntegrationTest.groovy

                    allprojects {
                        apply plugin: '${pluginId}'
                        apply plugin: '${libraryPluginId}'
                    }
                    dependencies { implementation 'org.test:p1:1.2' }
                """
            }
            def buildB = multiProjectBuild("buildB", ["p1", "p2"]) {
                buildFile << """
                    allprojects {
                        apply plugin: '${pluginId}'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 4.9K 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: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/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: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. platforms/ide/ide-plugins/src/integTest/groovy/org/gradle/plugins/ide/idea/IdeaModuleIntegrationTest.groovy

                customImlFolder {}
                excludeMePlease {}
                customModuleContentRoot {}
                src { main { java {} } }
            }
    
            //when
            runTask 'idea', '''
    apply plugin: "java"
    apply plugin: "idea"
    
    configurations {
      provided
      compileClasspath.extendsFrom(provided)
    }
    
    idea {
        pathVariables CUSTOM_VARIABLE: file('customModuleContentRoot').parentFile
    
        module {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 24.4K bytes
    - Viewed (0)
  7. platforms/ide/ide-plugins/src/test/groovy/org/gradle/plugins/ide/idea/model/IdeaProjectTest.groovy

            when:
            project.apply plugin: IdeaPlugin
            childProject.apply plugin: IdeaPlugin
            anotherChildProject.apply plugin: IdeaPlugin
            project.apply(plugin: JavaPlugin)
            childProject.apply(plugin: JavaPlugin)
            anotherChildProject.apply(plugin: JavaPlugin)
    
            and:
            project.targetCompatibility = JavaVersion.VERSION_1_5
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 01 11:07:39 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

    fun Response.Builder.commonRequest(request: Request) =
      apply {
        this.request = request
      }
    
    fun Response.Builder.commonProtocol(protocol: Protocol) =
      apply {
        this.protocol = protocol
      }
    
    fun Response.Builder.commonCode(code: Int) =
      apply {
        this.code = code
      }
    
    fun Response.Builder.commonMessage(message: String) =
      apply {
        this.message = message
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/plugins/DefaultPluginContainerTest.groovy

            plugins.empty
    
            when:
            container.apply(pluginClass)
    
            then:
            plugins == []
        }
    
        def "calls apply on target for type only"() {
            when:
            container.apply(plugin1Class)
    
            then:
            1 * target.applyImperative(null, { plugin1Class.isInstance(it) })
        }
    
        def "calls apply on target for id"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/r30/ToolingApiEclipseModelClasspathContainerCrossVersionSpec.groovy

            then:
            project.classpathContainers.isEmpty()
        }
    
        def "Project has some classpath containers"() {
            buildFile <<
            """apply plugin: 'java'
               apply plugin: 'eclipse'
               eclipse {
                   classpath {
                       containers 'containerPath1', 'containerPath2'
                   }
               }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top