- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 35 for testOid (0.05 sec)
-
src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarOpenPolicy2Test.java
// Verify that the policyHandle passed to the constructor is the one used // This is implicitly tested by the object being constructed without errors. // If LsaPolicyHandle had methods called by the constructor, we would verify those calls. }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/SmbTreeHandleTest.java
import org.mockito.quality.Strictness; /** * Tests for SmbTreeHandle interface. * This test class uses Mockito to create a mock implementation of the SmbTreeHandle interface. * Each method of the interface is tested to ensure it behaves as expected. */ @ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) class SmbTreeHandleTest { @Mock private SmbTreeHandle smbTreeHandle;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvFlagsTest.java
assertEquals(negativeFlags, negAvFlags.getFlags(), "Flags should match the negative input integer"); } /** * Test getFlags method. * This is implicitly tested by the constructors, but an explicit test ensures its direct functionality. */ @Test void testGetFlags() { int expectedFlags = 0xAABBCCDD; AvFlags avFlags = new AvFlags(expectedFlags);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/LruHashSet.java
return map.isEmpty(); } /** * Returns true if this set contains the specified element. * * @param o * element whose presence in this set is to be tested. * @return true if this set contains the specified element. */ @Override public boolean contains(final Object o) { return map.containsKey(o); } /**
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Jul 05 00:11:05 UTC 2025 - 3.7K bytes - Viewed (0) -
src/test/java/jcifs/SmbPipeHandleTest.java
/** * Unit tests for a class that implements the {@link SmbPipeHandle} interface. * This test class uses a mock implementation to ensure any class adhering to the * SmbPipeHandle contract is tested for correctness. */ public class SmbPipeHandleTest { private SmbPipeHandle smbPipeHandle; private SmbPipeResource mockPipeResource; private SmbPipeHandleInternal mockSmbPipeHandleInternal;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/SLinkedListTest.java
assertThat(list.getLast(), is("1")); list.getLastEntry().remove(); assertThat(list.size(), is(0)); } /** * @throws Exception */ @Test public void testAdd() throws Exception { list.addLast("1"); list.addLast("2"); list.addLast("3"); list.add(1, "4"); assertThat(list.get(1), is("4")); assertThat(list.get(2), is("2"));
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 8.3K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java
assertEquals(InetAddress.getByName("127.0.0.1"), encData.getUserAddresses().get(0)); assertNotNull(encData.getUserAuthorizations()); // Assuming KerberosAuthData.parse is tested elsewhere and might return empty for this test case assertTrue(encData.getUserAuthorizations().isEmpty()); } /** * Test constructor with a malformed token. */ @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.7K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java
void testConstructor() { // Verify that the constructor correctly sets the delegate (inherited from CIFSContextWrapper) // and the credentials. The delegate is tested implicitly by calling super's methods. // We can directly test getCredentials() to ensure it returns the initial credentials.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationResponseTest.java
assertEquals(Integer.MAX_VALUE, negotiationResponse.getTransactionBufferSize()); // Test negative values (though not typical, should be tested) when(negotiationResponse.getSendBufferSize()).thenReturn(-1); when(negotiationResponse.getReceiveBufferSize()).thenReturn(-1); when(negotiationResponse.getTransactionBufferSize()).thenReturn(-1);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/SmbResourceTest.java
@Test @DisplayName("getName should handle directory names with trailing slash") void testGetName_DirectoryWithSlash() throws CIFSException { // Given String expectedName = "testdir/"; when(mockResource.getName()).thenReturn(expectedName); // When String name = mockResource.getName(); // ThenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0)