Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ThingTest (0.13 sec)

  1. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/JavaCrossCompilationIntegrationTest.groovy

            buildFile << """
                dependencies { testImplementation 'junit:junit:4.13' }
            """
    
            file("src/test/java/ThingTest.java") << """
                import org.junit.Test;
                import static org.junit.Assert.*;
    
                public class ThingTest {
                    @Test
                    public void verify() {
                        assertTrue(System.getProperty("java.version").startsWith("${version}"));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 05:59:30 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/CrossCompilationIntegrationTest.groovy

                        r.run();
                    }
                }
            """
    
            def testFile = file("src/test/java/ThingTest.java")
            testFile << """
                import org.junit.Test;
                import org.junit.Assert;
                import java.io.File;
    
                public class ThingTest {
                    @Test
                    public void check() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 08:31:21 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheGroovyIntegrationTest.groovy

                }
            """
            file("src/main/groovy/Thing.groovy") << """
                class Thing {}
            """
            file("src/test/groovy/ThingTest.groovy") << """
                import org.junit.*
                class ThingTest {
                    @Test void ok() { new Thing() }
                }
            """
    
            and:
            def expectedTasks = [
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/UnsupportedJavaVersionCrossCompilationIntegrationTest.groovy

            given:
            buildFile << """
    dependencies { testImplementation 'junit:junit:4.13' }
    """
    
            file("src/test/java/ThingTest.java") << """
    import org.junit.Test;
    import static org.junit.Assert.*;
    
    public class ThingTest {
        @Test
        public void verify() {
            assertTrue(System.getProperty("java.version").startsWith("${version}."));
        }
    }
    """
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/BasicProjectConfigurationProgressCrossVersionSpec.groovy

                event.parent.descriptor.name == "ATest"
            }
            def event = events.operation("Gradle Test Run :test").descendant("Test ok(ThingTest)")
            event.parent.descriptor.name == "ThingTest"
        }
    
        def javaProjectWithTests() {
            buildFile << """
                allprojects {
                    apply plugin: 'java'
                    ${mavenCentralRepository()}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:59:43 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/BuildProgressCrossVersionSpec.groovy

                    dependencies { ${testImplementationConfiguration} 'junit:junit:4.13' }
                }
    """
            file("src/main/java/Thing.java") << """class Thing { }"""
            file("src/test/java/ThingTest.java") << """
                public class ThingTest {
                    @org.junit.Test
                    public void ok() { }
                }
            """
    
            when:
            def events = ProgressEvents.create()
            withConnection {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 8K bytes
    - Viewed (0)
  7. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/java/ParallelTestTaskIntegrationTest.groovy

        }
    }
    """
            subprojects.each { subproject ->
                settingsFile << "include '$subproject'\n"
                file("${subproject}/src/test/java/ThingTest.java") << """
    import org.junit.Test;
    import static org.junit.Assert.*;
    
    public class ThingTest {
        @Test
        public void verify() {
            assertTrue(System.getProperty("java.version").startsWith("${version}."));
        }
    }
    """
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:27:57 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheJavaIntegrationTest.groovy

            buildFile << """
                ${mavenCentralRepository()}
                dependencies { testImplementation "junit:junit:4.13" }
            """
            file("src/test/java/ThingTest.java") << """
                import ${Test.name};
    
                public class ThingTest {
                    @Test
                    public void ok() {
                        new Thing();
                    }
                }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/SimpleJavaContinuousIntegrationTest.groovy

        def "failing main source build ignores changes to test source"() {
            when:
            def sourceFile = file("src/main/java/Thing.java") << "class Thing {}"
            def testSourceFile = file("src/test/java/ThingTest.java") << "class ThingTest {}"
    
            then:
            succeeds("test")
    
            when:
            testSourceFile << " broken "
    
            then:
            buildTriggeredAndFailed()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  10. platforms/jvm/jacoco/src/integTest/groovy/org/gradle/testing/jacoco/plugins/JacocoPluginMultiVersionIntegrationTest.groovy

        Thing(String msg) { printMessage(msg); }
    
        private void printMessage(String msg) {
            System.out.println(msg);
        }
    }
    """
            file("src/otherTest/java/ThingTest.java") << """
    public class ThingTest {
        @org.junit.Test public void someTest() { new Thing(); }
    }
    """
            buildFile << """
        testing.suites {
            otherTest(JvmTestSuite) {
                useJUnit()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 23:19:29 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top