Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 67 for packageDecl (0.27 sec)

  1. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/kotlinlibrary/junitjupiter/LibraryTest.kt.template

    ${fileComment.multilineComment}${packageDecl.javaStatement}
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.Assertions.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: Mon Mar 18 05:40:42 UTC 2024
    - 361 bytes
    - Viewed (0)
  2. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/groovyapplication/multi/utilities/StringUtils.groovy.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import ${basePackagePrefix.raw}list.LinkedList
    
    class StringUtils {
        static String join(LinkedList source) {
            return JoinUtils.join(source)
        }
    
        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
    - 306 bytes
    - Viewed (0)
  3. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/groovyapplication/groovy/AppTest.groovy.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import spock.lang.Specification
    
    class AppTest extends Specification {
        def "application has a greeting"() {
            setup:
            def app = new App()
    
            when:
            def result = app.greeting
    
            then:
            result != null
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 306 bytes
    - Viewed (0)
  4. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/groovyapplication/multi/utilities/JoinUtils.groovy.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import groovy.transform.PackageScope
    import ${basePackagePrefix.raw}list.LinkedList
    
    @PackageScope
    class JoinUtils {
        static String join(LinkedList source) {
            StringBuilder result = new StringBuilder()
            for (int i = 0; i < source.size(); ++i) {
                if (result.length() > 0) {
                    result.append(' ')
                }
                result.append(source.get(i))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 499 bytes
    - Viewed (0)
  5. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/javaapplication/testng/AppTest.java.template

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

    ${fileComment.multilineComment}${packageDecl.statement}
    class App {
        String getGreeting() {
            return 'Hello World!'
        }
    
        static void main(String[] args) {
            println new App().greeting
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 213 bytes
    - Viewed (0)
  7. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/scalaapplication/multi/app/App.scala.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import ${basePackagePrefix.raw}utilities.StringUtils
    
    import org.apache.commons.text.WordUtils
    
    object App {
       def main(args: Array[String]): Unit = {
            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
    - 374 bytes
    - Viewed (0)
  8. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/scalalibrary/LibrarySuite.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 LibrarySuite extends AnyFunSuite {
      test("someLibraryMethod is always true") {
        def library = new Library()
        assert(library.someLibraryMethod())
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 369 bytes
    - Viewed (0)
  9. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/scalaapplication/multi/app/MessageUtils.scala.template

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

    ${fileComment.multilineComment}${packageDecl.statement}
    import ${basePackagePrefix.raw}list.LinkedList
    
    object StringUtils {
        def join(source: LinkedList): String = {
            JoinUtils.join(source)
        }
    
        def split(source: String): LinkedList = {
            SplitUtils.split(source)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 295 bytes
    - Viewed (0)
Back to top