- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 878 for verifyCn (0.05 seconds)
-
guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.util.concurrent; import static com.google.common.base.Verify.verify; import static com.google.common.truth.Truth.assertThat; import static com.google.common.util.concurrent.Futures.immediateFailedFuture; import static com.google.common.util.concurrent.Futures.immediateFuture;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 5.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java
int length = testBlock.readAndXWireFormat(buffer, 0); assertTrue(length > 0); verify(mockAndxCommand).setCommand((byte) 0x42); verify(mockAndxCommand).setUseUnicode(anyBoolean()); // For non-AndX commands, the implementation calls received() instead of read methods verify(mockAndxCommand).received(); } @Test @DisplayName("Test readAndXWireFormat with error code")Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.4K bytes - Click Count (0) -
src/test/java/jcifs/http/NtlmHttpServletRequestTest.java
when(mockPrincipal.getName()).thenReturn(expectedUserName); // Act: Call the method under test String actualUserName = ntlmRequest.getRemoteUser(); // Assert: Verify that the returned user name is the expected one assertEquals(expectedUserName, actualUserName, "getRemoteUser should return the principal's name."); } /**
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 2.7K bytes - Click Count (0) -
src/test/java/jcifs/EmptyIteratorTest.java
assertNull(emptyIterator.next(), "This implementation returns null instead of throwing"); // Verify remove can be called (even though no-op) assertDoesNotThrow(() -> emptyIterator.remove(), "remove() should be safe to call"); // Verify still empty after operations assertFalse(emptyIterator.hasNext(), "Should remain empty after operations"); }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/LookupInvokerLoggingTest.java
// Do NOT call setRootLoggerLevel - this is the fix! } // Verify that setRootLoggerLevel was not called assertEquals(0, slf4jConfiguration.setRootLoggerLevelCallCount); // Verify that system property was not set assertNull(System.getProperty(Constants.MAVEN_LOGGER_DEFAULT_LOG_LEVEL)); } @TestCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Oct 08 21:10:33 GMT 2025 - 6.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import java.lang.reflect.Method; import java.util.stream.Stream; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test;
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 19.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFilenameFilterTest.java
assertFalse(filter.accept(mockDir, "image.png"), "Should reject non-.txt files"); assertFalse(filter.accept(mockDir, null), "Should reject null names"); // Verify getPath was called three times (once for each accept call) verify(mockDir, times(3)).getPath(); verifyNoMoreInteractions(mockDir); } /** * Defensive behavior: implementation throws NPE on null inputs by design. */
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java
// Verify lengths assertEquals(2, setupWritten); assertEquals(2, paramWritten); assertEquals(0, dataWritten); // Verify setup content assertEquals(SmbComTransaction.TRANS2_QUERY_FS_INFORMATION, setupBuffer[0]); assertEquals(0x00, setupBuffer[1]); // Verify parameter content (FS_SIZE_INFO -> 0x0103)Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/DosErrorTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import java.util.Arrays; import java.util.Optional; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; /** * Tests for {@link DosError}. Since {@link DosError} only containsCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (0) -
src/main/java/jcifs/internal/SMBSigningDigest.java
* @param length * The length of the data to verify * @param extraPad * extra padding to include in signature * @param msg * The message to verify * @return whether verification was unsuccessful */ boolean verify(byte[] data, int offset, int length, int extraPad, CommonServerMessageBlock msg);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.5K bytes - Click Count (0)