Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Action (0.21 sec)

  1. build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy

            repository.put('class1', value1)
            repository.put('class2', value2)
            Action action = Mock()
    
            when:
            repository.each(action)
    
            then:
            1 * action.execute(value1)
            1 * action.execute(value2)
            0 * action._
        }
    
        def canPersistMetaData() {
            TestDomainObject value = new TestDomainObject('a')
    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)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/model/ClassDoc.groovy

        }
    
        private Element getSection(String title) {
            def sections = classSection.section.findAll {
                it.title[0] && it.title[0].text().trim() == title
            }
            if (sections.size() < 1) {
                throw new RuntimeException("Docbook content for $className does not contain a '$title' section.")
            }
            return sections[0]
        }
    
        Element getDescription() {
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 6.2K bytes
    - Viewed (0)
  3. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocPropertiesBuilderTest.groovy

            def content = parse('''
    <section>
        <section><title>Properties</title>
            <table>
                <thead><tr><td>Name</td></tr></thead>
                <tr><td>b</td></tr>
                <tr><td>a</td></tr>
            </table>
        </section>
        <section><title>Methods</title><table><thead><tr></tr></thead></table></section>
    </section>
    ''')
    
            when:
            ClassDoc doc = withCategories {
    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)
  4. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/JavadocConverterTest.groovy

    <h2>section1</h2>
    text1
    <h3>section 1.1</h3>
    text2
    <h2>section 2</h2>
    text3
    '''
    
            when:
            def result = parser.parse(classMetaData, listener)
    
            then:
            format(result.docbook) == '''<section><title>section1</title><para>
    text1
    </para><section><title>section 1.1</title><para>
    text2
    </para></section></section><section><title>section 2</title><para>
    text3</para></section>'''
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 14.2K bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/ExtractDslMetaDataTask.groovy

    import gradlebuild.docs.model.ClassMetaDataRepository
    import gradlebuild.docs.model.SimpleClassMetaDataRepository
    import groovy.time.TimeCategory
    import groovy.time.TimeDuration
    import org.gradle.api.Action
    import org.gradle.api.Transformer
    import org.gradle.api.file.FileTree
    import org.gradle.api.file.RegularFileProperty
    import org.gradle.api.logging.Logging
    import org.gradle.api.tasks.CacheableTask
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Mon Jan 08 12:45:57 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  6. build-logic/documentation/src/test/groovy/gradlebuild/docs/FindBrokenInternalLinksTest.groovy

        }
    
        def "validates present section links"() {
            given:
            sampleDoc << """
    [[prior_section]]
    Text
    
    === Valid Section Links
    This section comes earlier: <<prior_section>>
    This section comes later: <<subsequent_section>>
    
    [[subsequent_section]]
    More text
            """
    
            when:
            run('checkDeadInternalLinks').build()
    
    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)
  7. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocExtensionsBuilderTest.groovy

            def content = parse('''<section>
                    <section><title>Properties</title>
                        <table><thead><tr><td/></tr></thead></table>
                    </section>
                    <section><title>Methods</title>
                        <table><thead><tr><td/></tr></thead></table>
                    </section>
                </section>
            ''')
    
            when:
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 7.5K bytes
    - Viewed (0)
  8. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocRendererTest.groovy

                    </tr>
                </table>
            </section>
        </section>
        <section>
            <title>Methods</title>
            <para>No methods</para>
        </section>
        <section>
            <title>Script blocks</title>
            <para>No script blocks</para>
        </section>
        <section>
            <title>Property details</title>
            <section id="propId" role="detail">
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 40.8K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/AssembleDslDocTask.groovy

        def mergeContent(Element typeTable, DslDocModel model) {
            def title = typeTable.title[0].text()
    
            //TODO below checks makes it harder to add new sections
            //because the new section will work correctly only when the section title ends with 'types' :)
            if (title.matches('(?i).* types')) {
                mergeTypes(typeTable, model)
            } else if (title.matches('(?i).* blocks')) {
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 9.8K bytes
    - Viewed (0)
  10. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocMethodsBuilderTest.groovy

            def content = parse('''
    <section>
        <section><title>Methods</title>
            <table>
                <thead><tr><td>Name</td></tr></thead>
                <tr><td>a</td></tr>
                <tr><td>b</td></tr>
            </table>
        </section>
        <section><title>Properties</title><table><thead><tr>Name</tr></thead></table></section>
    </section>
    ''')
    
            when:
            ClassDoc doc = withCategories {
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 8.4K bytes
    - Viewed (0)
Back to top