- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 856 for Given (0.12 sec)
-
src/test/java/jcifs/smb1/smb1/DfsReferralTest.java
* It verifies that a new DfsReferral object is initialized with its 'next' * property pointing to itself. */ @Test void testDefaultConstructor() { // Given DfsReferral referral = new DfsReferral(); // When / Then assertNotNull(referral, "The DfsReferral object should not be null.");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/StringUtil.java
* * @param str * the string (can be <code>null</code>) * @return the given string, or an empty string if the argument is <code>null</code> */ public static String defaultString(final String str) { return str == null ? EMPTY : str; } /** * Returns the given string, or the specified default string if the argument is <code>null</code>. * <p> * Usage example:
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 21.9K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/Escapers.java
} /** * Adds a replacement string for the given input character. The specified character will be * replaced by the given string whenever it occurs in the input, irrespective of whether it lies * inside or outside the 'safe' range. * * @param c the character to be replaced * @param replacement the string to replace the given character * @return the builder instance
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 6.9K 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: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 4.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Service.java
/** * Waits for the {@link Service} to reach the {@linkplain State#RUNNING running state} for no more * than the given time. * * @param timeout the maximum time to wait * @param unit the time unit of the timeout argument * @throws TimeoutException if the service has not reached the given state within the deadline * @throws IllegalStateException if the service reaches a state from which it is not possible to
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 10.8K bytes - Viewed (0) -
guava/src/com/google/common/hash/Hashing.java
* MD5 (128 hash bits) hash function and the given secret key. * * <p>If you are designing a new system that needs HMAC, prefer {@link #hmacSha256} or other * future-proof algorithms <a * href="https://datatracker.ietf.org/doc/html/rfc6151#section-2.3">over {@code hmacMd5}</a>. * * @param key the secret key * @throws IllegalArgumentException if the given key is inappropriate for initializing this MAC
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 22:06:57 UTC 2025 - 31.1K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Files.java
* character set. * * @since 14.0 */ public static CharSource asCharSource(File file, Charset charset) { return asByteSource(file).asCharSource(charset); } /** * Returns a new {@link CharSink} for writing character data to the given file using the given
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 32.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/TreeConnectResponseTest.java
void setUp() { mockResponse = mock(TreeConnectResponse.class); } @Test @DisplayName("Should return tree ID") void testGetTid() { // Given when(mockResponse.getTid()).thenReturn(12345); // When int tid = mockResponse.getTid(); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
@DisplayName("writeBytesWireFormat Tests") class WriteBytesWireFormatTests { @Test @DisplayName("Should always return 0") void testWriteBytesWireFormat() { // Given byte[] dst = new byte[100]; int dstIndex = 0; // When int result = response.writeBytesWireFormat(dst, dstIndex); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9K bytes - Viewed (0)