Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 3,743 for AssertJ (0.21 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

     */
    
    package com.google.common.collect.testing;
    
    import static java.util.Collections.sort;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertFalse;
    import static junit.framework.Assert.assertTrue;
    import static junit.framework.Assert.fail;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/Helpers.java

     */
    
    package com.google.common.collect.testing;
    
    import static java.util.Collections.sort;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertFalse;
    import static junit.framework.Assert.assertTrue;
    import static junit.framework.Assert.fail;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileProblemsIntegrationTest.groovy

            }
        }
    
        /**
         * Assert if a compilation problems looks like how we expect it to look like.
         * <p>
         * In addition, the method will update the {@link #possibleFileLocations} with the location found in the problem.
         * This could be used to assert that all expected files have been visited.
         *
         * @param problem the problem to assert
         * @param severity the expected severity of the problem
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 16:15:29 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/certs/certs_test.go

    	}
    
    	assert.ElementsMatch(t, certConfig.Organization, csr.Subject.Organization, "organizations not equal")
    
    	if csr.Subject.CommonName != certConfig.CommonName {
    		t.Errorf("expected common name %q, got %q", certConfig.CommonName, csr.Subject.CommonName)
    	}
    
    	assert.ElementsMatch(t, certConfig.AltNames.DNSNames, csr.DNSNames, "dns names not equal")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 21:49:21 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  5. cmd/server_test.go

    	c.Assert(err, nil)
    	response, err = s.client.Do(request)
    	c.Assert(err, nil)
    	c.Assert(response.StatusCode, http.StatusOK)
    
    	deleteResp = DeleteObjectsResponse{}
    	delRespBytes, err = io.ReadAll(response.Body)
    	c.Assert(err, nil)
    	err = xml.Unmarshal(delRespBytes, &deleteResp)
    	c.Assert(err, nil)
    	c.Assert(len(deleteResp.DeletedObjects), len(delObjReq.Objects))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  6. src/internal/pkgbits/decoder.go

    	r := strings.NewReader(input)
    
    	assert(binary.Read(r, binary.LittleEndian, &pr.version) == nil)
    
    	switch pr.version {
    	default:
    		panic(fmt.Errorf("unsupported version: %v", pr.version))
    	case 0:
    		// no flags
    	case 1:
    		var flags uint32
    		assert(binary.Read(r, binary.LittleEndian, &flags) == nil)
    		pr.sync = flags&flagSyncMarkers != 0
    	}
    
    	assert(binary.Read(r, binary.LittleEndian, pr.elemEndsEnds[:]) == nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 20:58:46 UTC 2022
    - 13.2K bytes
    - Viewed (0)
  7. pkg/monitoring/monitortest/test.go

    			return fmt.Errorf("want %v samples, got %v", count, *d.SampleCount)
    		}
    		if *d.SampleSum != sum {
    			return fmt.Errorf("want %v sum, got %v", count, *d.SampleSum)
    		}
    		return nil
    	}
    }
    
    // Buckets asserts a distribution has the number of buckets
    func Buckets(count int) func(any) error {
    	return func(f any) error {
    		d := f.(*dto.Histogram)
    		if len(d.Bucket) != count {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  8. pkg/kube/controllers/example_test.go

    	_ = retry.Until(func() bool {
    		return controller.events.Load() == 2
    	})
    	// In a typical test, using helpers like assert.EventuallyEqual or retry.UntilSuccessOrFail are preferred
    	// assert.EventuallyEqual(t, controller.events.Load, 2)
    
    	// Output:
    	// pod has IP 127.0.0.1
    	// pod has IP 127.0.0.2
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformTestFixture.groovy

            taskTypeWithOutputDirectoryProperty(buildFile)
            taskTypeLogsArtifactCollectionDetails(buildFile)
        }
    
        /**
         * Asserts that exactly the given files where transformed by the 'simple' transforms below
         */
        void assertTransformed(String... fileNames) {
            assert result.output.findAll("processing \\[(.+)\\]").sort() == fileNames.collect { "processing [$it]" }.sort()
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 20 15:06:39 UTC 2023
    - 21.7K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go

    				}
    
    				var spec *kubeConfigSpec
    				var ok bool
    
    				// assert the spec for the kubeConfigFile exists
    				if spec, ok = specs[assertion.kubeConfigFile]; !ok {
    					t.Errorf("getKubeConfigSpecs didn't create spec for %s ", assertion.kubeConfigFile)
    					return
    				}
    
    				// Assert clientName
    				if spec.ClientName != assertion.clientName {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 39.5K bytes
    - Viewed (0)
Back to top