Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 67 for packageDecl (0.2 sec)

  1. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/TemplateFactoryTest.groovy

            1 * templateOperationBuilder.withBinding("basePackagePrefix", "") >> templateOperationBuilder
            1 * templateOperationBuilder.withBinding("packageDecl", "") >> templateOperationBuilder
            1 * templateOperationBuilder.withBinding("className", "") >> templateOperationBuilder
            1 * templateOperationBuilder.withBinding("fileComment", _) >> templateOperationBuilder
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 20:26:42 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/kotlinapplication/App.kt.template

    ${fileComment.multilineComment}${packageDecl.statement}
    class App {
        val greeting: String
            get() {
                return "Hello World!"
            }
    }
    
    fun main() {
        println(App().greeting)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 199 bytes
    - Viewed (0)
  3. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/javaapplication/AppTest.java.template

    ${fileComment.multilineComment}${packageDecl.javaStatement}
    import org.junit.Test;
    import static org.junit.Assert.*;
    
    public class AppTest {
        @Test public void appHasAGreeting() {
            App classUnderTest = new App();
            assertNotNull("app should have a greeting", classUnderTest.getGreeting());
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 314 bytes
    - Viewed (0)
  4. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/kotlinapplication/multi/app/App.kt.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import ${basePackagePrefix.raw}utilities.StringUtils
    
    import org.apache.commons.text.WordUtils
    
    fun main() {
        val tokens = StringUtils.split(MessageUtils.getMessage())
        val result = StringUtils.join(tokens)
        println(WordUtils.capitalize(result))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 313 bytes
    - Viewed (0)
  5. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/scalaapplication/AppSuite.scala.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import org.scalatest.funsuite.AnyFunSuite
    import org.junit.runner.RunWith
    import org.scalatestplus.junit.JUnitRunner
    
    @RunWith(classOf[JUnitRunner])
    class AppSuite extends AnyFunSuite {
      test("App has a greeting") {
        assert(App.greeting() != null)
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 314 bytes
    - Viewed (0)
  6. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/groovylibrary/Library.groovy.template

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

    ${fileComment.multilineComment}${packageDecl.statement}
    import kotlin.test.Test
    import kotlin.test.assertTrue
    
    class LibraryTest {
        @Test fun someLibraryMethodReturnsTrue() {
            val classUnderTest = Library()
            assertTrue(classUnderTest.someLibraryMethod(), "someLibraryMethod should return 'true'")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 322 bytes
    - Viewed (0)
  8. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/groovyapplication/multi/app/junit5/MessageUtilsTest.groovy.template

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

    ${fileComment.multilineComment}${packageDecl.javaStatement}
    public class App {
        public String getGreeting() {
            return "Hello World!";
        }
    
        public static void main(String[] args) {
            System.out.println(new App().getGreeting());
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 257 bytes
    - Viewed (0)
  10. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/javaapplication/multi/utilities/StringUtils.java.template

    ${fileComment.multilineComment}${packageDecl.javaStatement}
    import ${basePackagePrefix.raw}list.LinkedList;
    
    public class StringUtils {
        public static String join(LinkedList source) {
            return JoinUtils.join(source);
        }
    
        public static LinkedList split(String source) {
            return SplitUtils.split(source);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 334 bytes
    - Viewed (0)
Back to top