- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 337 for Given (0.29 sec)
-
src/test/java/jcifs/NetbiosNameTest.java
void testVariousNameTypes(int nameType) { // Given when(mockNetbiosName.getNameType()).thenReturn(nameType); // When int result = mockNetbiosName.getNameType(); // Then assertEquals(nameType, result); } @Test @DisplayName("Should handle null name") void testNullName() { // Given when(mockNetbiosName.getName()).thenReturn(null);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (0) -
src/test/java/jcifs/CIFSExceptionTest.java
*/ @DisplayName("CIFSException Tests") class CIFSExceptionTest extends BaseTest { @Test @DisplayName("Should create CIFSException with message") void testCIFSExceptionWithMessage() { // Given String message = "CIFS operation failed"; // When CIFSException exception = new CIFSException(message); // Then assertNotNull(exception);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/StringConversionUtil.java
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
// Given setPrivateField(response, "dialectRevision", 0x0311); // When int dialect = response.getDialectRevision(); // Then assertEquals(0x0311, dialect); } @Test @DisplayName("Should return server GUID") void testGetServerGuid() throws Exception { // Given byte[] guid = new byte[16];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/stream/StreamUtil.java
public static <T> StreamOf<T> stream(final T... values) { return new StreamOf<>(() -> values != null ? Arrays.stream(values) : Collections.<T> emptyList().stream()); } /** * Splits the given string into an array of substrings based on the specified regular expression * and returns a stream of those substrings. * * @param value the string to be split; if {@code null}, the method returns an empty stream
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 4.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationRequestTest.java
void testInterfaceCanBeMocked() { // Given SmbNegotiationRequest mockRequest = mock(SmbNegotiationRequest.class); // Then assertNotNull(mockRequest, "Mock should be created successfully"); } @Test @DisplayName("Test default behavior of mock without stubbing") void testDefaultBehaviorOfMock() { // Given
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbAuthenticationHolder.java
* authentication based on a given path. * * <p>This class manages a collection of {@link SmbAuthentication} objects, each associated * with a specific path prefix. When a path is provided, it iterates through the stored * authentications to find the one whose path prefix matches the beginning of the given path. * This allows for different SMB shares to use different authentication credentials.</p>Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java
void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Constructor should initialize with correct values") void testConstructor() throws Exception { // Given String filename = "\\\\server\\share\\file.txt"; // When trans2GetDfsReferral = new Trans2GetDfsReferral(mockConfig, filename); // Then
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java
* @throws IOException if ASN.1 encoding fails. * @throws PACDecodingException if PAC decoding fails. */ @Test void testConstructor_ValidToken() throws IOException, PACDecodingException { // 1. GIVEN // Create a mock KerberosAuthData to be returned by the mocked parse method KerberosAuthData mockAuthData = mock(KerberosAuthData.class);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9K bytes - Viewed (0) -
src/main/java/jcifs/DfsResolver.java
* @param tf the CIFS context * @param domain the domain name to check * @return whether the given domain is trusted * @throws CIFSException if the operation fails */ boolean isTrustedDomain(CIFSContext tf, String domain) throws CIFSException; /** * Get a connection to the domain controller for a given domain * * @param tf the CIFS context * @param domain the domain nameRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.4K bytes - Viewed (0)