- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 490 for Correct (0.03 sec)
-
android/guava-tests/test/com/google/common/eventbus/EventBusTest.java
List<String> expectedEvents = new ArrayList<>(); expectedEvents.add(EVENT); expectedEvents.add(EVENT); assertEquals("Two correct events should be delivered.", expectedEvents, catcher1.getEvents()); assertEquals( "One correct event should be delivered.", Lists.newArrayList(EVENT), catcher2.getEvents()); bus.unregister(catcher1); bus.post(EVENT); assertEquals(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/SearchEngineUtilTest.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 13.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java
private String testPipeName = "\\PIPE\\testpipe"; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Constructor should initialize with correct values") void testConstructor() { // Act transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, testPipeName); // Assert assertNotNull(transWaitNamedPipe);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
verify(mockResponse, times(1)).getErrorCode(); } @Test void testSetMid() { long mid = 12345L; mockResponse.setMid(mid); // Verify that the method was called with the correct argument verify(mockResponse, times(1)).setMid(mid); } @Test void testGetMid() { long mid = 54321L; when(mockResponse.getMid()).thenReturn(mid);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/AddressTest.java
class AddressTest extends BaseTest { @Mock private CIFSContext mockContext; @Mock private Address mockAddress; @Test @DisplayName("Address interface should define correct method signatures") void testInterfaceContract() { // Given Address address = mockAddress; // When & Then - verify interface methods exist and can be called assertDoesNotThrow(() -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/SmbConnectionTest.java
* Tests the batch limit configuration for various SMB commands. */ public class SmbConnectionTest { /** * Test that getBatchLimit returns correct values for different commands */ @Test @DisplayName("getBatchLimit returns correct values for different SMB commands") public void testBatchLimitForDifferentCommands() throws CIFSException { Properties props = new Properties();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/validation/FessActionValidatorTest.java
public class FessActionValidatorTest extends UnitFessTestCase { public void test_constructor() { // Test basic class structure without complex mocking assertEquals("FessActionValidator should be in correct package", "org.codelibs.fess.validation.FessActionValidator", FessActionValidator.class.getName()); } public void test_inheritance() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 2.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java
long expectedValue = 123456789012345L; NdrHyper ndrHyper = new NdrHyper(expectedValue); assertEquals(expectedValue, ndrHyper.value, "Constructor should set the correct value."); } @Test void testEncode() throws NdrException { // Test the encode method long testValue = 987654321098765L; NdrHyper ndrHyper = new NdrHyper(testValue);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
byte[] buffer = new byte[100]; int dstIndex = 10; int bytesWritten = info.encode(buffer, dstIndex); // Verify replaceIfExists flag at correct position assertEquals(1, buffer[dstIndex]); // Verify file name length at correct position int nameLength = SMBUtil.readInt4(buffer, dstIndex + 16); assertEquals(fileName.getBytes(StandardCharsets.UTF_16LE).length, nameLength);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
docs/en/docs/advanced/security/http-basic-auth.md
Of course, the attackers would not try all this by hand, they would write a program to do it, possibly with thousands or millions of tests per second. And they would get just one extra correct letter at a time. But doing that, in some minutes or hours the attackers would have guessed the correct username and password, with the "help" of our application, just using the time taken to answer. #### Fix it with `secrets.compare_digest()` { #fix-it-with-secrets-compare-digest }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 5K bytes - Viewed (0)