Search Options

Results per page
Sort
Preferred Languages
Advance

Results 651 - 660 of 1,047 for AssertJ (0.05 sec)

  1. src/test/java/jcifs/tests/NamingTest.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.tests;
    
    
    import static org.junit.Assert.assertArrayEquals;
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertTrue;
    
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.UnknownHostException;
    import java.nio.ByteBuffer;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jun 06 10:48:05 UTC 2020
    - 7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/lang/ObjectUtilTest.java

     */
    package org.codelibs.core.lang;
    
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.nullValue;
    import static org.junit.Assert.assertSame;
    import static org.junit.Assert.assertThat;
    
    import org.junit.Test;
    
    /**
     * @author wyukawa
     *
     */
    public class ObjectUtilTest {
    
        /**
         * Test method for
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. okhttp-brotli/build.gradle.kts

      testImplementation(libs.conscrypt.openjdk)
      testImplementation(libs.junit)
      testImplementation(libs.kotlin.test.common)
      testImplementation(libs.kotlin.test.junit)
      testImplementation(libs.assertk)
    }
    
    mavenPublishing {
      configure(KotlinJvm(javadocJar = JavadocJar.Empty()))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 06 05:31:00 UTC 2024
    - 819 bytes
    - Viewed (0)
  4. tests/test_tutorial/test_custom_response/test_tutorial009.py

        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial009.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jul 03 19:51:28 UTC 2021
    - 487 bytes
    - Viewed (0)
  5. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            // Arrange
            CliRequest request = new CliRequest(new String[] {"-Dw=x=y", "validate"}, null);
    
            // Act
            cli.cli(request);
            cli.properties(request);
    
            // Assert
            assertThat(request.getUserProperties().getProperty("w"), is("x=y"));
        }
    
        @Test
        void populatePropertiesSpace() throws Exception {
            // Arrange
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  6. docs_src/custom_response/tutorial009c.py

    import orjson
    from fastapi import FastAPI, Response
    
    app = FastAPI()
    
    
    class CustomORJSONResponse(Response):
        media_type = "application/json"
    
        def render(self, content: Any) -> bytes:
            assert orjson is not None, "orjson must be installed"
            return orjson.dumps(content, option=orjson.OPT_INDENT_2)
    
    
    @app.get("/", response_class=CustomORJSONResponse)
    async def main():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 01 09:32:30 UTC 2022
    - 451 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_custom_response/test_tutorial009b.py

        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial009b.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jul 03 19:51:28 UTC 2021
    - 490 bytes
    - Viewed (0)
  8. tests/test_callable_endpoint.py

    endpoint = partial(main, "foo")
    
    app = FastAPI()
    
    app.get("/")(endpoint)
    
    
    client = TestClient(app)
    
    
    def test_partial():
        response = client.get("/?q=bar")
        data = response.json()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jun 28 18:13:30 UTC 2020
    - 457 bytes
    - Viewed (0)
  9. tests/test_orjson_response_class.py

        return {key: "Hello World", 1: 1}
    
    
    client = TestClient(app)
    
    
    def test_orjson_non_str_keys():
        with client:
            response = client.get("/orjson_non_str_keys")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 02 10:17:31 UTC 2022
    - 562 bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/SerializableTester.java

     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import junit.framework.Assert;
    import junit.framework.AssertionFailedError;
    
    /**
     * Tests serialization and deserialization of an object, optionally asserting that the resulting
     * object is equal to the original.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 25 11:57:12 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top