Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 3,743 for AssertJ (0.18 sec)

  1. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApiModelChecker.groovy

            assert expected instanceof ProjectIdentifier
            assert actual instanceof ProjectIdentifier
    
            checkModel(actual, expected, [
                { it.projectPath },
                { it.buildIdentifier.rootDir },
            ])
        }
    
        static void checkGradleTask(actual, expected) {
            assert expected instanceof GradleTask
            assert actual instanceof GradleTask
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 10:26:50 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_dependencies/test_tutorial012_an_py39.py

        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    @needs_py39
    def test_get_invalid_one_users(client: TestClient):
        response = client.get("/users/", headers={"X-Token": "invalid"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_sql_databases/test_sql_databases.py

        assert item["title"] == item_data["title"]
        assert item["description"] == item_data["description"]
        assert "id" in item_data
        assert "owner_id" in item_data
        response = client.get("/users/1")
        assert response.status_code == 200, response.text
        user_data = response.json()
        item_to_check = [it for it in user_data["items"] if it["id"] == item_data["id"]][0]
        assert item_to_check["title"] == item["title"]
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/const0.go

    		_p0 = assert(a1 == 7)
    		_p1 = assert(a2 == 3.1415926)
    		_p2 = assert(a3 == "foo")
    		_p3 = assert(b1 == 42)
    		_p4 = assert(b2 == 42)
    		_p5 = assert(b3 == 42)
    	)
    }
    
    // iota
    const (
    	iota0 = iota
    	iota1 = iota
    	iota2 = iota*2
    	_a0 = assert(iota0 == 0)
    	_a1 = assert(iota1 == 1)
    	_a2 = assert(iota2 == 4)
    	iota6 = iota*3
    
    	iota7
    	iota8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py

        response = client.get("/docs")
        assert response.status_code == 200, response.text
        assert "https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js" in response.text
        assert "https://unpkg.com/swagger-ui-dist@5/swagger-ui.css" in response.text
    
    
    def test_swagger_ui_oauth2_redirect_html(client: TestClient):
        response = client.get("/docs/oauth2-redirect")
        assert response.status_code == 200, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 23 22:59:02 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. test/fixedbugs/bug090.go

    const (
    	c3div2 = 3/2;
    	f3div2 = 3./2.;
    )
    
    func assert(t bool, s string) {
    	if !t {
    		panic(s)
    	}
    }
    
    func main() {
    	var i int;
    	var f float64;
    
    	assert(c3div2 == 1, "3/2");
    	assert(f3div2 == 1.5, "3/2");
    
    	i = c3div2;
    	assert(i == c3div2, "i == c3div2");
    
    	f = c3div2;
    	assert(f == c3div2, "f == c3div2");
    
    	f = f3div2;
    	assert(f == f3div2, "f == f3div2");
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 03 17:55:56 UTC 2020
    - 883 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_sql_databases/test_sql_databases_py39.py

        assert response.status_code == 200, response.text
        item_data = response.json()
        assert item["title"] == item_data["title"]
        assert item["description"] == item_data["description"]
        assert "id" in item_data
        assert "owner_id" in item_data
        response = client.get("/users/1")
        assert response.status_code == 200, response.text
        user_data = response.json()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_volumes_test.go

    	expectedPodVolumes := []string{"vol1"}
    	assert.Len(t, podVolumes, len(expectedPodVolumes), "Volumes for pod %+v", pod)
    	for _, name := range expectedPodVolumes {
    		assert.Contains(t, podVolumes, name, "Volumes for pod %+v", pod)
    	}
    	assert.True(t, testKubelet.volumePlugin.GetNewAttacherCallCount() >= 1, "Expected plugin NewAttacher to be called at least once")
    	assert.NoError(t, volumetest.VerifyWaitForAttachCallCount(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 17 16:53:28 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  9. pilot/pkg/model/typed_xds_cache_test.go

    		},
    	}
    
    	c := newTypedXdsCache[uint64]()
    
    	cache := c.(*lruCache[uint64])
    
    	assert.Equal(t, cache.store.Len(), 0)
    	assert.Equal(t, cache.indexLength(), 0)
    
    	// adding the entry populates the indexes
    	c.Add(firstEntry.Key(), firstEntry, req, res)
    
    	assert.Equal(t, cache.store.Len(), 1)
    	assert.Equal(t, cache.indexLength(), 2)
    	assert.Equal(t, cache.configIndexSnapshot(), map[ConfigHash]sets.Set[uint64]{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 29 20:35:31 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  10. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/BuildInitInteractiveIntegrationTest.groovy

            ConcurrentTestUtil.poll(60) {
                assert handle.standardOutput.contains(buildTypePrompt)
                assert handle.standardOutput.contains("1: Application")
                assert handle.standardOutput.contains("2: Library")
                assert handle.standardOutput.contains("3: Gradle plugin")
                assert handle.standardOutput.contains(basicType)
                assert !handle.standardOutput.contains("pom")
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 10 12:58:10 UTC 2024
    - 18.9K bytes
    - Viewed (1)
Back to top