- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 1,332 for Assert (0.09 seconds)
-
compat/maven-model/src/test/java/org/apache/maven/model/BuildTest.java
assertNotNull(new Build().toString()); } @Test public void testToStringNotNonsense() { Build build = new Build(); String s = build.toString(); assert "Build {BuildBase {PluginConfiguration {PluginContainer {}}}}".equals(s) : s; }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 1.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
// Assert assertEquals(1234, timeout); } @Test @DisplayName("getResponseTimeout falls back to config for non-SMB requests") void getResponseTimeout_default() { // Arrange Request req = mock(Request.class); when(cfg.getResponseTimeout()).thenReturn(2222); // Act & AssertCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcGetMembersInAliasTest.java
// Create an instance of the class to be tested MsrpcGetMembersInAlias request = new MsrpcGetMembersInAlias(aliasHandle, sids); // Assert that the public 'sids' field is initialized as expected assertEquals(sids, request.sids, "The 'sids' field should be initialized by the constructor.");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.1K bytes - Click Count (0) -
tests/test_dependency_partial.py
"partial-asynchronous-method-gen-dependency", ), ], ) def test_dependency_types_with_partial(route: str, value: str) -> None: response = client.get(route) assert response.status_code == 200, response.textCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 6.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ServiceTest.java
import org.jspecify.annotations.NullUnmarked; /** Unit tests for {@link Service} */ @NullUnmarked @GwtIncompatible @J2ktIncompatible public class ServiceTest extends TestCase { /** Assert on the comparison ordering of the State enum since we guarantee it. */ public void testStateOrdering() { // List every valid (direct) state transition. assertLessThan(NEW, STARTING); assertLessThan(NEW, TERMINATED);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 2.1K bytes - Click Count (0) -
tests/test_repeated_cookie_headers.py
return {"dep": dep} client = TestClient(app) def test_cookie_is_set_once(): direct_response = client.get("/directCookie") indirect_response = client.get("/indirectCookie") assert ( direct_response.headers["set-cookie"] == indirect_response.headers["set-cookie"]Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Jun 13 12:44:51 GMT 2020 - 792 bytes - Click Count (0) -
src/test/java/jcifs/MsrpcEnumerateAliasesInDomainTest.java
// we can infer its correct behavior if the object is successfully constructed and its own fields are correct. // The super constructor is called with (domainHandle, 0, acct_flags, null, 0) // We can't directly assert these values on the superclass fields without reflection or a testable superclass. // For 100% coverage, we'd need to ensure the superclass constructor is indeed called with these values.Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.2K bytes - Click Count (0) -
src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java
SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket(); byte[] buffer = new byte[6]; // Assert that an IOException is thrown with the expected message. IOException thrown = assertThrows(IOException.class, () -> { packet.readTrailerWireFormat(mockInputStream, buffer, 0); });Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (0) -
tests/test_openapi_schema_type.py
def test_allowed_schema_type( type_value: SchemaType | list[SchemaType] | None, ) -> None: """Test that Schema accepts SchemaType, List[SchemaType] and None for type field.""" schema = Schema(type=type_value) assert schema.type == type_value def test_invalid_type_value() -> None: """Test that Schema raises ValueError for invalid type values.""" with pytest.raises(ValueError, match="2 validation errors for Schema"):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 685 bytes - Click Count (0) -
tests/test_stringified_annotation_dependency_py314.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 04 13:49:44 GMT 2026 - 711 bytes - Click Count (0)