- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 990 for assert (0.04 sec)
-
src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java
return null; }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarOpenPolicy2.class)); // Act LsaPolicyHandle handle = new LsaPolicyHandle(mockDcerpcHandle, server, access); // Assert assertNotNull(handle); verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcLsarOpenPolicy2.class)); } @Test void constructor_shouldHandleNullServerSuccessfully() throws IOException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.2K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
*/ package org.codelibs.curl; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertSame; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.io.IOException; import java.io.InputStream;
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 11.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTester.java
import static java.util.concurrent.TimeUnit.SECONDS; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertFalse; import static junit.framework.Assert.assertTrue; import static junit.framework.Assert.fail; import static org.junit.Assert.assertThrows; import java.util.concurrent.CancellationException; import java.util.concurrent.CountDownLatch;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 3.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/TestThread.java
import static com.google.common.base.Preconditions.checkNotNull; import static java.util.concurrent.TimeUnit.MILLISECONDS; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertNotNull; import static junit.framework.Assert.assertNull; import static junit.framework.Assert.assertSame; import com.google.common.testing.TearDown; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryTest.java
// Act long actual = getter.apply(e); // Assert assertEquals(value, actual, label); } @Test @DisplayName("Calling a method on null reference throws NPE") void nullReference_throwsNPE() { // Arrange FileEntry e = null; // Act & Assert: demonstrate invalid usage results in NPE
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
// Act out.close(); // Assert verifyNoInteractions(handle); } @Nested @DisplayName("Constructor invalid inputs") class ConstructorInvalidInputs { @Test @DisplayName("Null handle triggers NullPointerException") void ctor_nullHandle_throwsNPE() { // Act + Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java
// Act & Assert assertDoesNotThrow(() -> new MsrpcSamrConnect2(null, 0, ph)); } @Test @DisplayName("should accept negative access mask values") void testNegativeAccessMaskAccepted() { // Arrange SamrPolicyHandle ph = createMockPolicyHandle(); // Act & Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbAuthExceptionTest.java
void intConstructor_populatesMessageAndStatus(int errCode, int expectedStatus) { // Arrange & Act: create exception with error code SmbAuthException ex = new SmbAuthException(errCode); // Assert: type, message derived from code, status mapping, and no cause assertNotNull(ex); assertTrue(ex instanceof SmbException);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeInternalTest.java
// Assert - verify interaction with dependency verify(tree, times(1)).connectLogon(context); verify(tree, never()).close(); } @Test @DisplayName("connectLogon accepts null context but still invokes") void connectLogon_withNull_isInvoked() throws Exception { // Act tree.connectLogon(null);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileFilterTest.java
SmbFileFilter filter = f -> f.isDirectory(); when(smbFile.isDirectory()).thenReturn(true); // Act boolean result = filter.accept(smbFile); // Assert assertTrue(result, "Directory should be accepted"); verify(smbFile, times(1)).isDirectory(); verify(smbFile, never()).getName(); verifyNoMoreInteractions(smbFile); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0)