Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for appHasAGreeting (0.17 sec)

  1. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/KotlinApplicationInitIntegrationTest.groovy

            and:
            commonJvmFilesGenerated(scriptDsl)
    
            when:
            run("build")
    
            then:
            assertTestPassed("org.example.AppTest", "appHasAGreeting")
    
            when:
            run("run")
    
            then:
            outputContains("Hello World!")
    
            where:
            scriptDsl << ScriptDslFixture.SCRIPT_DSLS
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 03:26:38 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/JavaApplicationInitIntegrationTest.groovy

            and:
            commonJvmFilesGenerated(scriptDsl)
            dslFixture.assertDoesNotUseTestSuites()
    
            when:
            run("build")
    
            then:
            assertTestPassed("org.example.AppTest", "appHasAGreeting")
    
            when:
            run("run")
    
            then:
            outputContains("Hello World!")
    
            where:
            scriptDsl << ScriptDslFixture.SCRIPT_DSLS
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 03:26:38 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  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/kotlinapplication/junitjupiter/AppTest.kt.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.Assertions.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: Wed May 22 06:44:27 UTC 2024
    - 319 bytes
    - Viewed (0)
  7. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/javaapplication/junitjupiter/AppTest.java.template

    ${fileComment.multilineComment}${packageDecl.javaStatement}
    import org.junit.jupiter.api.Test;
    import static org.junit.jupiter.api.Assertions.*;
    
    class AppTest {
        @Test 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
    - 328 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/authoring-builds/tutorial/partr1_gradle_init.adoc

    .AppTest.java
    [source, java]
    ----
    package authoring.tutorial;
    
    import org.junit.jupiter.api.Test;
    import static org.junit.jupiter.api.Assertions.*;
    
    class AppTest {
        @Test void appHasAGreeting() {
            App classUnderTest = new App();
            assertNotNull(classUnderTest.getGreeting(), "app should have a greeting");
        }
    }
    ----
    
    The generated test class has a single _JUnit Jupiter_ test.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 22:50:45 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top