- Sort Score
- Result 10 results
- Languages All
Results 421 - 430 of 1,393 for Create (0.03 sec)
-
src/test/java/jcifs/SmbTreeTest.java
/** * Test for unwrap() method with matching type. * Verifies that unwrap returns the correct instance when the type matches. */ @Test void testUnwrap_withMatchingType() { // Create a custom SmbTree type for testing CustomSmbTree customTree = mock(CustomSmbTree.class); when(smbTree.unwrap(CustomSmbTree.class)).thenReturn(customTree);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
void testConstructorWithFileInformation() { // Setup mock FileInformation when(mockFileInfo.getFileInformationLevel()).thenReturn((byte) FileInformation.FILE_BASIC_INFO); // Create instance trans2SetFileInfo = new Trans2SetFileInformation(config, TEST_FID, mockFileInfo); // Verify initialization assertNotNull(trans2SetFileInfo);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationRequestTest.java
class SmbNegotiationRequestTest { @Mock private SmbNegotiationRequest negotiationRequest; private SmbNegotiationRequest customImplementation; @BeforeEach void setUp() { // Create a custom implementation for additional testing customImplementation = new TestSmbNegotiationRequest(false); } @Test @DisplayName("Test isSigningEnforced returns true when signing is enforced")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbEnumerationUtilTest.java
import jcifs.SmbResourceLocator; @ExtendWith(MockitoExtension.class) class SmbEnumerationUtilTest { @Mock SmbFilenameFilter fnf; @Mock SmbFileFilter ff; // Utility to create a private inner class instance reflectively private static Object newPrivateInner(String simpleName, Class<?>[] paramTypes, Object... args) { try {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
buildscripts/multipart-quorum-test.sh
purge "$WORK_DIR" exit 1 fi "${PWD}/mc" mb --with-versioning minio/bucket export AWS_ACCESS_KEY_ID=minio export AWS_SECRET_ACCESS_KEY=minio123 aws --endpoint-url http://localhost:"$start_port" s3api create-multipart-upload --bucket bucket --key obj-1 >upload-id.json uploadId=$(jq -r '.UploadId' upload-id.json) truncate -s 5MiB file-5mib for i in {1..2}; do
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Sep 06 10:51:23 UTC 2024 - 2.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java
private NtlmPasswordAuthentication mockAuth; private SmbComSessionSetupAndX setupAndX; @BeforeEach void setUp() throws Exception { MockitoAnnotations.openMocks(this); // Create a real ServerData instance as it's not mockable (inner class) SmbTransport.ServerData serverData = mockTransport.new ServerData(); serverData.security = ServerMessageBlock.SECURITY_USER;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java
* This demonstrates mocking capabilities for testing. */ @Test @DisplayName("Mock interaction example with SmbTransport") void mockTransportInteraction() { // Create a mock of SmbTransport from jcifs package jcifs.SmbTransport mock = mock(jcifs.SmbTransport.class); // Stub the getRemoteHostName method when(mock.getRemoteHostName()).thenReturn("test-host");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
request = new Smb2SessionSetupRequest(mockContext, TEST_SECURITY_MODE, TEST_CAPABILITIES, TEST_PREVIOUS_SESSION_ID, TEST_TOKEN); } @Test @DisplayName("Should create request with correct parameters") void testConstructorSetsCorrectParameters() throws Exception { // Given & When int securityMode = 0x03; int capabilities = 0x0F;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
cmd/kms-router.go
kmsRouter.Methods(http.MethodGet).Path(version + "/version").HandlerFunc(gz(httpTraceAll(kmsAPI.KMSVersionHandler))) // KMS Key APIs kmsRouter.Methods(http.MethodPost).Path(version+"/key/create").HandlerFunc(gz(httpTraceAll(kmsAPI.KMSCreateKeyHandler))).Queries("key-id", "{key-id:.*}")
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Tue May 07 23:55:37 UTC 2024 - 2.7K bytes - Viewed (0) -
src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizerFactory.java
} else { logger.debug("No synonym data."); } } } @Override public Tokenizer create() { return new NGramSynonymTokenizer(n, delimiters, expand, ignoreCase, synonymLoader); }Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Sat Mar 15 06:51:20 UTC 2025 - 2.4K bytes - Viewed (0)