- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for expected_name (0.07 sec)
-
tests/test_request_params/test_path/test_required_str.py
), ], ) def test_schema(path: str, expected_name: str, expected_title: str): assert app.openapi()["paths"][path]["get"]["parameters"] == [ { "required": True, "schema": {"title": expected_title, "type": "string"}, "name": expected_name, "in": "path", } ] @pytest.mark.parametrize( "path",Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 2.3K bytes - Viewed (0) -
tests/connection_test.go
"gorm.io/driver/mysql" "gorm.io/gorm" ) func TestWithSingleConnection(t *testing.T) { expectedName := "test" var actualName string setSQL, getSQL := getSetSQL(DB.Dialector.Name()) if len(setSQL) == 0 || len(getSQL) == 0 { return } err := DB.Connection(func(tx *gorm.DB) error { if err := tx.Exec(setSQL, expectedName).Error; err != nil { return err }
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Sep 08 09:19:22 UTC 2025 - 943 bytes - Viewed (0) -
src/test/java/jcifs/NameServiceClientTest.java
@Test void testGetLocalName() { // Arrange NetbiosName expectedName = mock(NetbiosName.class); when(nameServiceClient.getLocalName()).thenReturn(expectedName); // Act NetbiosName actualName = nameServiceClient.getLocalName(); // Assert assertNotNull(actualName); assertEquals(expectedName, actualName); verify(nameServiceClient, times(1)).getLocalName(); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
void testGetNameMethod() { byte[] expectedName = "TEST_CONTEXT".getBytes(StandardCharsets.UTF_8); CreateContextResponse response = mock(CreateContextResponse.class); when(response.getName()).thenReturn(expectedName); byte[] actualName = response.getName(); assertArrayEquals(expectedName, actualName); verify(response, times(1)).getName(); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivator.java
} boolean result = actualArch.equals(test); return reverse ? !result : result; } private boolean determineNameMatch(String expectedName, String actualName) { String test = expectedName.toLowerCase(Locale.ENGLISH); boolean reverse = false; if (test.startsWith("!")) { reverse = true; test = test.substring(1); }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Feb 25 08:27:34 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/SmbResourceTest.java
void testGetName() throws CIFSException { // Given String expectedName = "test.txt"; when(mockResource.getName()).thenReturn(expectedName); // When String name = mockResource.getName(); // Then assertEquals(expectedName, name, "Should return correct name"); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
void testGetNameMethod() { byte[] expectedName = "TEST_CONTEXT".getBytes(StandardCharsets.UTF_8); CreateContextRequest request = mock(CreateContextRequest.class); when(request.getName()).thenReturn(expectedName); byte[] actualName = request.getName(); assertArrayEquals(expectedName, actualName); verify(request, times(1)).getName(); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/ReferralTest.java
bb.position(22); String[] expectedNames = { "NAME1", "NAME2", "NAME3", "NAME4", "NAME5" }; for (String name : expectedNames) { bb.put(name.getBytes(StandardCharsets.UTF_16LE)); bb.putShort((short) 0); } referral.decode(testBuffer, 0, testBuffer.length); assertArrayEquals(expectedNames, referral.getExpandedNames()); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 22K bytes - Viewed (0)