Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for TestSomething (0.23 sec)

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

                    }
                }
            """
    
            file("src/integTest/java/MyTest.java") << """
                public class MyTest {
                    @org.junit.jupiter.api.Test
                    public void testSomething() {
                        assert MyFixture.answer() == 42;
                    }
                }
            """
    
            file("src/integTestFixtures/java/MyFixture.java") << """
                public class MyFixture {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 18 13:02:41 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. platforms/jvm/plugins-jvm-test-suite/src/integTest/groovy/org/gradle/testing/testsuites/TestSuitesIntegrationTest.groovy

                package org.test;
    
                import org.junit.Test;
                import org.junit.Assert;
    
                public class MyTest {
                    @Test
                    public void testSomething() {
                        Assert.assertEquals(1, MyFixture.calculateSomething());
                    }
                }
            """
    
            expect: "does NOT compile due to a missing dependency"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 13 20:36:32 UTC 2023
    - 35.8K bytes
    - Viewed (0)
  3. internal/logger/target/testlogger/testlogger.go

    // for individual tests.
    // This package should only be included by test files.
    // To enable logging for a test, use:
    //
    //	func TestSomething(t *testing.T) {
    //		defer testlogger.T.SetLogTB(t)()
    //
    // This cannot be used for parallel tests.
    package testlogger
    
    import (
    	"context"
    	"fmt"
    	"os"
    	"strings"
    	"sync/atomic"
    	"testing"
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/xctest/SwiftXCTestIntegrationTest.groovy

                        ]
                    },
    
                    new XCTestSourceFileElement("UnicodeᏀᎡᎪᎠᏞᎬSuite") {
                        List<XCTestCaseElement> testCases = [
                            passingTestCase("testSomething"),
                        ]
                    }
                ]
            }
            settingsFile << "rootProject.name = '${test.projectName}'"
            test.writeToProject(testDirectory)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 20.8K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/dependencies/TestSuitesKotlinDSLDependenciesIntegrationTest.groovy

                import org.junit.jupiter.api.Assertions;
                import org.junit.jupiter.api.Test;
    
                public class MyTest {
                    @Test
                    public void testSomething() {
                        Assertions.assertEquals(1, MyFixture.calculateSomething());
                    }
                }
            """
            file("util/src/testFixtures/java/org/test/MyFixture.java") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 11 16:25:08 UTC 2024
    - 45.8K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/dependencies/TestSuitesGroovyDSLDependenciesIntegrationTest.groovy

                import org.junit.jupiter.api.Assertions;
                import org.junit.jupiter.api.Test;
    
                public class MyTest {
                    @Test
                    public void testSomething() {
                        Assertions.assertEquals(1, MyFixture.calculateSomething());
                    }
                }
            """
            file("util/src/testFixtures/java/org/test/MyFixture.java") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 11 16:25:08 UTC 2024
    - 43.1K bytes
    - Viewed (0)
Back to top