Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 67 of 67 for packageDecl (0.14 sec)

  1. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/plugin/kotlin/kotlintest/PluginFunctionalTest.kt.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import java.io.File
    import kotlin.test.assertTrue
    import kotlin.test.Test
    import org.gradle.testkit.runner.GradleRunner
    import org.junit.jupiter.api.io.TempDir
    
    /**
     * A simple functional test for the '${pluginId.value}' plugin.
     */
    class ${className.javaIdentifier} {
    
        @field:TempDir
        lateinit var projectDir: File
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/javaapplication/multi/list/junit5/LinkedListTest.java.template

    ${fileComment.multilineComment}${packageDecl.javaStatement}
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.*;
    
    class LinkedListTest {
        @Test void testConstructor() {
            LinkedList list = new LinkedList();
            assertEquals(0, list.size());
        }
    
        @Test void testAdd() {
            LinkedList list = new LinkedList();
    
            list.add("one");
            assertEquals(1, list.size());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/kotlinapplication/multi/list/LinkedList.kt.template

    ${fileComment.multilineComment}${packageDecl.statement}
    class LinkedList {
        private var head: Node? = null
    
        fun add(element: String) {
            val newNode = Node(element)
    
            val it = tail(head)
            if (it == null) {
                head = newNode
            } else {
                it.next = newNode
            }
        }
    
        private fun tail(head: Node?): Node? {
            var it: Node?
    
            it = head
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/javaapplication/multi/list/LinkedList.java.template

    ${fileComment.multilineComment}${packageDecl.javaStatement}
    public class LinkedList {
        private Node head;
    
        public void add(String element) {
            Node newNode = new Node(element);
    
            Node it = tail(head);
            if (it == null) {
                head = newNode;
            } else {
                it.next = newNode;
            }
        }
    
        private static Node tail(Node head) {
            Node it;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/plugin/java/junit/PluginFunctionalTest.java.template

    ${fileComment.multilineComment}${packageDecl.javaStatement}
    import java.io.File;
    import java.io.IOException;
    import java.io.Writer;
    import java.io.FileWriter;
    import java.nio.file.Files;
    import org.gradle.testkit.runner.GradleRunner;
    import org.gradle.testkit.runner.BuildResult;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.io.TempDir;
    import static org.junit.jupiter.api.Assertions.*;
    
    /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/groovyapplication/multi/list/LinkedList.groovy.template

    ${fileComment.multilineComment}${packageDecl.statement}
    class LinkedList {
        private Node head
    
        void add(String element) {
            Node newNode = new Node(element)
    
            Node it = tail(head)
            if (it == null) {
                head = newNode
            } else {
                it.next = newNode
            }
        }
    
        private static Node tail(Node head) {
            Node it
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/scalaapplication/multi/list/LinkedList.scala.template

    ${fileComment.multilineComment}${packageDecl.statement}
    
    class LinkedList {
        private var head: Node = _
    
        def add(element: String): Unit = {
            val newNode = new Node(element)
    
            val it = tail(head)
            if (it == null) {
                head = newNode
            } else {
                it.next = newNode
            }
        }
    
        private def tail(head: Node) = {
            var it: Node = null
    
            it = head
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top