Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. platforms/documentation/docs/src/snippets/testing/testng-java-passing/groovy/src/test/java/org/gradle/TestSetup.java

    package org.gradle;
    
    import org.testng.annotations.BeforeTest;
    
    public class TestSetup {
        @BeforeTest
        public void setupTest() {
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 143 bytes
    - Viewed (0)
  2. pilot/pkg/config/monitor/file_snapshot_test.go

            host: some.example.internal
    `
    
    func TestFileSnapshotNoFilter(t *testing.T) {
    	g := NewWithT(t)
    
    	ts := &testState{
    		ConfigFiles: map[string][]byte{"gateway.yml": []byte(gatewayYAML)},
    	}
    
    	ts.testSetup(t)
    
    	fileWatcher := NewFileSnapshot(ts.rootPath, collection.SchemasFor(), "foo")
    	configs, err := fileWatcher.ReadConfigFiles()
    	g.Expect(err).NotTo(HaveOccurred())
    	g.Expect(configs).To(HaveLen(1))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/AbstractJUnit4SuitesIntegrationTest.groovy

                        suite.addTestSuite(SomeTest2.class);
                        TestSetup wrappedSuite = new junit.extensions.TestSetup(suite) {
    
                            protected void setUp() {
                                System.out.println("stdout in TestSetup#setup");
                                System.err.println("stderr in TestSetup#setup");
                            }
    
                            protected void tearDown() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  4. tests/integration/telemetry/tracing/otelcollector/tracing_test.go

    					})
    			}
    		})
    }
    
    func TestMain(m *testing.M) {
    	framework.NewSuite(m).
    		Label(label.CustomSetup).
    		Setup(istio.Setup(tracing.GetIstioInstance(), setupConfig)).
    		Setup(tracing.TestSetup).
    		Setup(testSetup).
    		Run()
    }
    
    // TODO: convert test to Telemetry API for both scenarios
    func setupConfig(_ resource.Context, cfg *istio.Config) {
    	if cfg == nil {
    		return
    	}
    	cfg.ControlPlaneValues = `
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 22:56:30 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/SampleTestNGIntegrationTest.groovy

            def result = new TestNGExecutionResult(testDir)
            result.assertTestClassesExecuted('org.gradle.OkTest', 'org.gradle.ConcreteTest', 'org.gradle.SuiteSetup', 'org.gradle.SuiteCleanup', 'org.gradle.TestSetup', 'org.gradle.TestCleanup')
            result.testClass('org.gradle.OkTest').assertTestsExecuted('passingTest', 'expectedFailTest')
            result.testClass('org.gradle.OkTest').assertTestPassed('passingTest')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. tests/integration/telemetry/tracing/zipkin/main_test.go

    )
    
    func TestMain(m *testing.M) {
    	framework.NewSuite(m).
    		Label(label.CustomSetup).
    		Setup(istio.Setup(tracing.GetIstioInstance(), setupConfig)).
    		Setup(tracing.TestSetup).
    		Run()
    }
    
    func setupConfig(ctx resource.Context, cfg *istio.Config) {
    	if cfg == nil {
    		return
    	}
    	cfg.Values["meshConfig.enableTracing"] = "true"
    	cfg.Values["pilot.traceSampling"] = "100.0"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 07 16:59:18 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. tests/integration/telemetry/policy/envoy_ratelimit_test.go

    	framework.
    		NewSuite(m).
    		Label(label.CustomSetup).
    		Setup(istio.Setup(&ist, nil)).
    		Setup(testSetup).
    		Setup(setupPrometheus).
    		Run()
    }
    
    func setupPrometheus(ctx resource.Context) (err error) {
    	prom, err = prometheus.New(ctx, prometheus.Config{})
    	return err
    }
    
    func testSetup(ctx resource.Context) (err error) {
    	echoNsInst, err = namespace.New(ctx, namespace.Config{
    		Prefix: "istio-echo",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. pilot/pkg/config/monitor/monitor_test.go

    	}).Should(HaveLen(0))
    }
    
    func TestMonitorFileSnapshot(t *testing.T) {
    	ts := &testState{
    		ConfigFiles: map[string][]byte{"gateway.yml": []byte(statusRegressionYAML)},
    	}
    
    	ts.testSetup(t)
    
    	store := memory.Make(collection.SchemasFor(collections.Gateway))
    	fileWatcher := NewFileSnapshot(ts.rootPath, collection.SchemasFor(), "foo")
    
    	mon := NewMonitor("", store, fileWatcher.ReadConfigFiles, "")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm-infrastructure/src/testFixtures/groovy/org/gradle/api/internal/tasks/testing/junit/JUnitTestClassProcessorData.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.api.internal.tasks.testing.junit
    
    import junit.extensions.TestSetup
    import junit.framework.TestCase
    import junit.framework.TestSuite
    import org.gradle.api.tasks.testing.TestFailure
    import org.junit.After
    import org.junit.Before
    import org.junit.BeforeClass
    import org.junit.Ignore
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/etcd3/linearized_read_test.go

    	// detail ever changes.
    	// [1] https://etcd.io/docs/v3.5/learning/api_guarantees/#isolation-level-and-consistency-of-replicas
    	ctx, store, etcdClient := testSetup(t)
    
    	dir := "/testing"
    	key := dir + "/testkey"
    	out := &example.Pod{}
    	obj := &example.Pod{ObjectMeta: metav1.ObjectMeta{Name: "foo", SelfLink: "testlink"}}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 20:08:59 UTC 2022
    - 2.7K bytes
    - Viewed (0)
Back to top