Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,698 for AssertJ (0.16 sec)

  1. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeTestBase.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import okhttp3.internal.http2.hpackjson.HpackJsonUtil
    import okhttp3.internal.http2.hpackjson.Story
    import okio.Buffer
    
    /**
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/ivy/IvyModule.java

        IvyDescriptor getParsedIvy();
    
        /**
         * Asserts that an ivy.xml is present
         */
        void assertPublished();
    
        /**
         * Asserts that exactly the given artifacts, plus checksum files, have been published.
         */
        void assertArtifactsPublished(String... names);
    
        /**
         * Assert that exactly the ivy.xml and jar file for this module, plus checksum files, have been published.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. src/internal/types/testdata/fixedbugs/issue62157.go

    // Simplified test case from issue
    
    type Matcher[T any] func(T) bool
    
    func Produces[T any](T) Matcher[<-chan T] { return nil }
    
    func Assert1[T any](Matcher[T], T) {}
    func Assert2[T any](T, Matcher[T]) {}
    
    func _() {
    	var ch chan string
    	Assert1(Produces(""), ch)
    	Assert2(ch, Produces(""))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 23:22:35 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ScopeIdsFixture.groovy

                )
            }
    
            // Assert that same IDs were used for all builds in build
            def allScopeIds = ids.values()
            def buildInvocationIds = allScopeIds*.buildInvocation
    
            assert buildInvocationIds.unique(false).size() == 1
    
            if (!disableConsistentWorkspaceIdCheck) {
                def workspaceIds = allScopeIds*.workspace
                assert workspaceIds.unique(false).size() == 1
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.isCloseTo
    import assertk.assertions.isFalse
    import assertk.assertions.isInstanceOf
    import assertk.assertions.matchesPredicate
    import java.util.Deque
    import java.util.concurrent.ConcurrentLinkedDeque
    import java.util.concurrent.TimeUnit
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildOperationTreeQueries.groovy

            def expectedOrderList = expectedOrder.toList()
            assert expectedOrder*.parentId.unique().size() == 1
            def startTimeOrdered = expectedOrderList.sort(false) { it.startTime }
            assert expectedOrderList == startTimeOrdered
            def endTimeOrdered = expectedOrderList.sort(false) { it.endTime }
            assert endTimeOrdered == startTimeOrdered
        }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/TaskOrderSpecs.java

    import java.util.List;
    import java.util.Set;
    
    /**
     * Provides common assertions for querying task order.
     *
     * An 'any' rule asserts that all of the specified tasks occur in any order.
     *
     * any(':a', ':b', ':c') would match on any permutation of ':a', ':b', ':c'.
     *
     * An 'exact' rule asserts that all of the specified tasks occur in the order
     * provided.  Note that other tasks may appear - it only verifies that the
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.isCloseTo
    import assertk.assertions.isFalse
    import assertk.assertions.isInstanceOf
    import assertk.assertions.matchesPredicate
    import java.io.IOException
    import java.net.InetAddress
    import java.net.InetSocketAddress
    import java.net.Proxy
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. 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)
  10. pkg/test/util/assert/tracker.go

    	return &Tracker[T]{t: t}
    }
    
    // Record that an event occurred.
    func (t *Tracker[T]) Record(event T) {
    	t.mu.Lock()
    	defer t.mu.Unlock()
    	t.events = append(t.events, event)
    }
    
    // Empty asserts the tracker is empty
    func (t *Tracker[T]) Empty() {
    	t.t.Helper()
    	t.mu.Lock()
    	defer t.mu.Unlock()
    	if len(t.events) != 0 {
    		t.t.Fatalf("unexpected events: %v", t.events)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top