Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Chen (0.14 sec)

  1. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/MethodMetaDataTest.groovy

        def hasNoOverriddenMethodWhenNoSuperClass() {
            when:
            def m = method.overriddenMethod
    
            then:
            m == null
            _ * owner.superClass >> null
            _ * owner.interfaces >> []
        }
    
        def hasNoOverriddenMethodWhenMethodDoesNotOverrideMethodInSuperClass() {
            ClassMetaData superClassMetaData = Mock()
    
            when:
            def m = method.overriddenMethod
    
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 5.6K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/AcceptedApiChangesJsonFileManagerTest.groovy

            given:
            jsonFile << existingAcceptedApiChanges()
    
            when:
            jsonFileManager.emptyAcceptedApiChanges(jsonFile)
    
            then:
            jsonFile.text == nonExistentAcceptedApiChanges()
        }
    
        def "can clean non-existing API changes"() {
            given:
            jsonFile << nonExistentAcceptedApiChanges()
    
            when:
            jsonFileManager.emptyAcceptedApiChanges(jsonFile)
    
            then:
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Aug 17 08:32:56 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  3. build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy

        def canAddMetaData() {
            TestDomainObject value = new TestDomainObject('a')
    
            when:
            repository.put('class', value)
    
            then:
            repository.find('class') == value
            repository.get('class') == value
        }
    
        def findReturnsNullForUnknownClass() {
            expect:
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Sat Apr 06 02:21:33 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocPropertiesBuilderTest.groovy

    </section>
    ''')
    
            when:
            ClassDoc doc = withCategories {
                def doc = new ClassDoc('org.gradle.Class', content, document, classMetaData, null)
                doc.superClass = superDoc
                doc.interfaces << superType1
                doc.interfaces << superType2
                builder.build(doc)
                return doc
            }
    
            then:
            doc.classProperties.size() == 5
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 7.6K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/main/groovy/gradlebuild/EnrichedReportRenderer.groovy

         * useful regardless of this renderer's needs, since now there will be a link embedded in the report
         * to quickly open the changes file.  By then we can also regex that path out of the description
         * in order to create a changes {@link File} for further use in this class.
         *
         * @param data the report data containing a description to parse
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Feb 07 20:38:43 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  6. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/TypeMetaDataTest.groovy

            expect:
            type.rawType.signature == 'org.gradle.SomeType[][]'
        }
    
        def rawTypeForVarargsType() {
            when:
            type.setVarargs()
    
            then:
            type.rawType.signature == 'org.gradle.SomeType[]'
    
            when:
            type.arrayDimensions = 1
    
            then:
            type.rawType.signature == 'org.gradle.SomeType[][]'
        }
    
        def rawTypeForParameterizedArrayType() {
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 4.6K bytes
    - Viewed (0)
  7. build-logic/documentation/src/test/groovy/gradlebuild/docs/UserGuideTransformTaskTest.groovy

            String content = "test\ttest\ttest"
            when:
            def actual = UserGuideTransformTask.normalise(content)
    
            then:
            actual == "test    test    test"
        }
    
        def usesUnixLineEndings() {
            given:
            String content = "test\r\ntest\r\ntest"
            when:
            def actual = UserGuideTransformTask.normalise(content)
    
            then:
            actual == "test\ntest\ntest"
        }
    
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Tue Jul 27 19:28:51 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  8. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/BasicJavadocLexerTest.groovy

            when:
            lexer.pushText("<P></End>")
            lexer.visit(visitor)
    
            then:
            1 * visitor.onStartHtmlElement('p')
            1 * visitor.onStartHtmlElementComplete('p')
            1 * visitor.onEndHtmlElement('end')
            1 * visitor.onEnd()
            0 * visitor._
        }
    
        def parsesHtmlEntities() {
            when:
            lexer.pushText("before &amp; after")
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 6K bytes
    - Viewed (0)
  9. build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/UpdateReleasedVersionsIntegrationTest.groovy

            def newSnapshot = snapshot('6.6')
            def expectedFileContent = releasedVersionsFile.text.replace('20200702230251+0000', newSnapshot.buildTime)
    
            when:
            ******@****.***ReleasedVersionFile(releasedVersionsFile, newSnapshot) == ''
    
            then:
            releasedVersionsFile.text == expectedFileContent
        }
    
        ReleasedVersion releasedVersion(String version, long date = System.currentTimeMillis()) {
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Aug 17 08:32:56 GMT 2021
    - 2.4K bytes
    - Viewed (0)
  10. build-logic/documentation/src/test/groovy/gradlebuild/docs/FindBrokenInternalLinksTest.groovy

    === Dead Section Links
    This section doesn't exist: <<missing_section>>
    Also see this one, which is another dead link: <<other_missing_section>>
            """
    
            when:
            run('checkDeadInternalLinks').buildAndFail()
    
            then:
            assertFoundDeadSectionLinks(sampleDoc, "missing_section", "other_missing_section")
        }
    
        def "validates present section links"() {
            given:
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Mon Nov 28 22:01:54 GMT 2022
    - 7.8K bytes
    - Viewed (0)
Back to top