Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 169 for Baz (0.01 sec)

  1. src/test/java/org/codelibs/core/lang/MethodUtilTest.java

            Method m = Baz.class.getMethod("rawMap", Map.class);
            assertThat(MethodUtil.getValueTypeOfMapFromReturnType(m), is(nullValue()));
    
            m = Baz.class.getMethod("genericMap", Map.class);
            assertThat(MethodUtil.getValueTypeOfMapFromReturnType(m), is(sameClass(Class.class)));
        }
    
        /**
         *
         */
        public interface Baz {
    
            /**
             * @param param
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. tests/test_response_model_include_exclude.py

            baz="simple_include model2 baz",
        )
    
    
    @app.get(
        "/simple_include_dict",
        response_model=Model2,
        response_model_include={"baz": ..., "ref": {"foo"}},
    )
    def simple_include_dict():
        return {
            "ref": {
                "foo": "simple_include_dict model foo",
                "bar": "simple_include_dict model bar",
            },
            "baz": "simple_include_dict model2 baz",
        }
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 19 19:14:58 UTC 2021
    - 4K bytes
    - Viewed (0)
  3. tests/test_serialize_response_model.py

            Item(aliased_name="bar", price=1.0),
            Item(aliased_name="baz", price=2.0, owner_ids=[1, 2, 3]),
        ]
    
    
    @app.get("/items/validdict", response_model=Dict[str, Item])
    def get_validdict():
        return {
            "k1": Item(aliased_name="foo"),
            "k2": Item(aliased_name="bar", price=1.0),
            "k3": Item(aliased_name="baz", price=2.0, owner_ids=[1, 2, 3]),
        }
    
    
    @app.get(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/RegularImmutableTableTest.java

      private static final ImmutableSet<Cell<Character, Integer, String>> CELLS =
          ImmutableSet.of(
              immutableCell('a', 1, "foo"), immutableCell('b', 1, "bar"), immutableCell('a', 2, "baz"));
    
      private static final ImmutableSet<Character> ROW_SPACE = ImmutableSet.of('a', 'b');
    
      private static final ImmutableSet<Integer> COLUMN_SPACE = ImmutableSet.of(1, 2);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. tests/test_serialize_response_dataclass.py

    def get_validlist():
        return [
            {"name": "foo", "date": datetime(2021, 7, 26)},
            {"name": "bar", "date": datetime(2021, 7, 26), "price": 1.0},
            {
                "name": "baz",
                "date": datetime(2021, 7, 26),
                "price": 2.0,
                "owner_ids": [1, 2, 3],
            },
        ]
    
    
    @app.get("/items/objectlist", response_model=List[Item])
    def get_objectlist():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 26 13:56:47 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  6. tests/test_query.py

                    }
                ]
            }
        )
    
    
    def test_query_query_baz():
        response = client.get("/query?query=baz")
        assert response.status_code == 200
        assert response.json() == "foo bar baz"
    
    
    def test_query_not_declared_baz():
        response = client.get("/query?not_declared=baz")
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. docs_src/response_model/tutorial006_py310.py

        tax: float = 10.5
    
    
    items = {
        "foo": {"name": "Foo", "price": 50.2},
        "bar": {"name": "Bar", "description": "The Bar fighters", "price": 62, "tax": 20.2},
        "baz": {
            "name": "Baz",
            "description": "There goes my baz",
            "price": 50.2,
            "tax": 10.5,
        },
    }
    
    
    @app.get(
        "/items/{item_id}/name",
        response_model=Item,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 816 bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

        expectedTable.put('a', 1, "foo");
        expectedTable.put('b', 1, "bar");
        expectedTable.put('a', 2, "baz");
        Table<Character, Integer, String> otherTable = HashBasedTable.create();
        otherTable.put('b', 1, "bar");
        otherTable.put('a', 2, "baz");
        assertEquals(expectedTable, builder.putAll(otherTable).build());
      }
    
      public void testBuilder_withImmutableCell() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CookiesTest.kt

                    "COOKIE" to listOf("Bar=bar"),
                    "cooKIE2" to listOf("Baz=baz"),
                  )
                },
              ),
            )
            .build()
        server.enqueue(MockResponse())
        get(server.url("/"))
        val request = server.takeRequest()
        assertThat(request.headers["Cookie"]).isEqualTo("Bar=bar; Baz=baz")
        assertThat(request.headers["Cookie2"]).isNull()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/lang/FieldUtilTest.java

            assertThat(FieldUtil.getElementTypeOfCollection(Baz.class.getField("collectionOfRawtype")), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        public void testGetElementTypeOfCollection() throws Exception {
            assertEquals(String.class, FieldUtil.getElementTypeOfCollection(Baz.class.getField("collectionOfString")));
        }
    
        /**
         * @throws Exception
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top