Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for packageDecl (0.33 sec)

  1. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/TemplateFactory.java

                .withBinding("basePackagePrefix", joinIfNotEmpty(basePackageName, "."))
                .withBinding("packageDecl", packageDecl)
                .withBinding("className", className)
                .withBinding("fileComment", initSettings.isWithComments() ? "This source file was generated by the Gradle 'init' task" : "");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:38:39 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/kotlinlibrary/Library.kt.template

    ${fileComment.multilineComment}${packageDecl.statement}
    class Library {
        fun someLibraryMethod(): Boolean {
            return true
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 139 bytes
    - Viewed (0)
  3. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/kotlinapplication/multi/app/MessageUtils.kt.template

    ${fileComment.multilineComment}${packageDecl.statement}
    class MessageUtils {
        companion object {
            fun getMessage(): String = "Hello      World!"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 163 bytes
    - Viewed (0)
  4. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/scalalibrary/Library.scala.template

    ${fileComment.multilineComment}${packageDecl.statement}
    class Library {
      def someLibraryMethod(): Boolean = true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 116 bytes
    - Viewed (0)
  5. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/kotlinapplication/multi/app/junit5/MessageUtilsTest.kt.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import org.junit.jupiter.api.Test
    
    import org.junit.jupiter.api.Assertions.assertEquals
    
    class MessageUtilsTest {
        @Test fun testGetMessage() {
            assertEquals("Hello      World!", MessageUtils.getMessage())
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 280 bytes
    - Viewed (0)
  6. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/javalibrary/Library.java.template

    ${fileComment.multilineComment}${packageDecl.javaStatement}
    public class Library {
        public boolean someLibraryMethod() {
            return true;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 153 bytes
    - Viewed (0)
  7. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/kotlinapplication/AppTest.kt.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import kotlin.test.Test
    import kotlin.test.assertNotNull
    
    class AppTest {
        @Test fun appHasAGreeting() {
            val classUnderTest = App()
            assertNotNull(classUnderTest.greeting, "app should have a greeting")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 284 bytes
    - Viewed (0)
  8. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/javaapplication/multi/app/MessageUtils.java.template

    ${fileComment.multilineComment}${packageDecl.javaStatement}
    class MessageUtils {
        public static String getMessage() {
            return "Hello      World!";
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 165 bytes
    - Viewed (0)
  9. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/groovyapplication/multi/app/MessageUtils.groovy.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import groovy.transform.PackageScope
    
    @PackageScope
    class MessageUtils {
        static String getMessage() {
            return "Hello      World!"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 205 bytes
    - Viewed (0)
  10. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/groovylibrary/groovy/LibraryTest.groovy.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import spock.lang.Specification
    
    class LibraryTest extends Specification {
        def "someLibraryMethod returns true"() {
            setup:
            def lib = new Library()
    
            when:
            def result = lib.someLibraryMethod()
    
            then:
            result == true
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 329 bytes
    - Viewed (0)
Back to top