Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 60 for mytext3 (0.28 sec)

  1. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4TestTaskIntegrationTest.groovy

        def "options can be set prior to setting same test framework for the default test task"() {
            given:
            file('src/test/java/MyTest.java') << standaloneTestClass
            file("src/test/java/Slow.java") << """public interface Slow {}"""
    
            settingsFile << "rootProject.name = 'Sample'"
            buildFile << """apply plugin: 'java'
                test {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGUpToDateCheckIntegrationTest.groovy

                }
            '''.stripIndent()
            file('suite.xml') << '''
                <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
                <suite name="MySuite">
                  <test name="MyTest">
                    <classes>
                      <class name="SomeTest" />
                    </classes>
                  </test>
                </suite>
            '''.stripIndent()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 18 12:30:10 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4CategoriesOrTagsCoverageIntegrationTest.groovy

                }
            '''.stripIndent()
            file('src/test/java/MyTest.java') << """
                ${testFrameworkImports}
                import org.junit.experimental.categories.Category;
                import org.powermock.modules.junit4.PowerMockRunner;
                @RunWith(PowerMockRunner.class)
                @Category(FastTest.class)
                public class MyTest {
                    @Test
                    public void testMyMethod() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r56/TestLauncherDebugTestsCrossVersionTest.groovy

                ${mavenCentralRepository()}
                dependencies { ${testImplementationConfiguration} 'junit:junit:4.13' }
            """
            file('src/test/java/example/MyTest.java').text = """
                package example;
                public class MyTest {
                    @org.junit.Test public void foo() throws Exception {
                         org.junit.Assert.assertEquals(1, 1);
                    }
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/test/integration/apply_test.go

    	yamlBody := []byte(fmt.Sprintf(`
    apiVersion: %s
    kind: %s
    metadata:
      name: mytest
    values:
      numVal: 1
      boolVal: true
      stringVal: "1"`, apiVersion, kind))
    	result, err := rest.Patch(types.ApplyPatchType).
    		AbsPath("/apis", noxuDefinition.Spec.Group, noxuDefinition.Spec.Versions[0].Name, noxuDefinition.Spec.Names.Plural).
    		Name("mytest").
    		Param("fieldManager", "apply_test").
    		Body(yamlBody).
    		DoRaw(context.TODO())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 27 11:48:28 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/ProgressCrossVersionSpec.groovy

                dependencies { ${testImplementationConfiguration} 'junit:junit:4.13' }
                compileTestJava.options.fork = true
            """
    
            file("src/test/java/example/MyTest.java") << """
                package example;
                public class MyTest {
                    @org.junit.Test public void foo() throws Exception {
                         org.junit.Assert.assertEquals(1, 1);
                    }
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/jupiter/JUnitJupiterTestTaskIntegrationTest.groovy

        @Override
        String getStandaloneTestClass() {
            return testClass('MyTest')
        }
    
        @Override
        String testClass(String className) {
            return """
                import org.junit.jupiter.api.*;
    
                public class $className {
                   @Test
                   @Tag("MyTest\$Fast")
                   public void fastTest() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/MapPropertyIntegrationTest.groovy

                    myExt.prop.get()
                }
            }
    
            task wrongRuntimeValueType {
                def myExt = project.extensions.getByType(MyExtension)
                doLast {
                    myExt.prop = ['key': 123]
                    myExt.prop.get()
                }
            }
    
            task wrongPropertyTypeDsl {
                def myExt = project.extensions.getByType(MyExtension)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 15:28:53 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  9. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/impldeps/GradleImplDepsVisibilityIntegrationTest.groovy

        def "cannot compile against classes that are not part of Gradle's public API"() {
            when:
            buildFile << testablePluginProject()
    
            file('src/test/groovy/MyTest.groovy') << """
                class MyTest extends groovy.test.GroovyTestCase {
    
                    void testImplIsHidden() {
                        try {
                            getClass().classLoader.loadClass("$Maps.name")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  10. platforms/jvm/plugins-jvm-test-suite/src/integTest/groovy/org/gradle/testing/testsuites/TestSuitesIntegrationTest.groovy

            succeeds("mytest")
    
            then:
            def unitTestResults = new JUnitXmlTestExecutionResult(testDirectory, 'build/test-results/mytest')
            unitTestResults.assertTestClassesExecuted('example.UnitTest')
        }
    
        @Issue("https://github.com/gradle/gradle/issues/18622")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 13 20:36:32 UTC 2023
    - 35.8K bytes
    - Viewed (0)
Back to top