- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 193 for Arrange (1.38 sec)
-
src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java
when(tree.getConfig()).thenReturn(config); when(config.getMaximumBufferSize()).thenReturn(65535); when(config.getListSize()).thenReturn(65535); // Arrange: initial page with two entries, then one more entry, then no more files FileEntry fe1 = mock(FileEntry.class); lenient().when(fe1.getName()).thenReturn("file1");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpServletRequestTest.java
} /** * Test method for {@link NtlmHttpServletRequest#getRemoteUser()}. * Verifies that the method returns the name of the principal. */ @Test void testGetRemoteUser() { // Arrange: Define the expected user name from the principal String expectedUserName = "testUser"; when(mockPrincipal.getName()).thenReturn(expectedUserName); // Act: Call the method under testRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 2.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SSPContextTest.java
class HappyPath { @Test @DisplayName("All getters return configured values and MIC roundtrips") void testAllMethodsHappyPath() throws Exception { // Arrange ASN1ObjectIdentifier mech1 = new ASN1ObjectIdentifier("1.2.840.113554.1.2.2"); // Kerberos V5 ASN1ObjectIdentifier mech2 = new ASN1ObjectIdentifier("1.3.6.1.5.5.2"); // SPNEGORegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SessionSetupHandlerTest.java
return Stream.of(Arguments.of(anon), Arguments.of(mock)); } @Test @DisplayName("Class is a public interface in expected package") void testPublicInterfaceAndPackage() { // Arrange & Act Class<SessionSetupHandler> clazz = SessionSetupHandler.class; // Assert assertTrue(clazz.isInterface(), "Should be an interface");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/spnego/NegTokenTargTest.java
* serialisation and invalid input handling. */ class NegTokenTargTest { @Test @DisplayName("happy path – full token round‑trip") void testRoundTripFull() throws IOException { // Arrange – create a fully populated token ASN1ObjectIdentifier mech = new ASN1ObjectIdentifier("1.2.840.113554.1.2.2"); byte[] tokenArray = new byte[] { 1, 2, 3 }; byte[] mic = new byte[] { 9, 9, 9 };Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.6K bytes - Viewed (0) -
dbflute_fess/dfprop/replaceSchemaMap.dfprop
# - - - - - - - - - -/ # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o arrangeBeforeRepsMap: (NotRequired - Default map:{}) # You can arrange resource files before ReplaceSchema. # #; arrangeBeforeRepsMap = map:{ # ; copy = map:{ # ; ../erd/*.ddl = ./playsql/replace-schema-10-basic.sql # } #}Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Oct 31 23:35:14 UTC 2015 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
@Test @DisplayName("readDirect over SMB2 returns bytes read and uses current offset") void readDirectSmb2Happy() throws Exception { SmbFileInputStream in = newStream(); // Arrange SMB2 response to return 3 bytes Smb2ReadResponse smb2Resp = mock(Smb2ReadResponse.class); when(smb2Resp.getDataLength()).thenReturn(3);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/IOIntegrationTest.java
return new ByteArrayInputStream(new byte[100]); // dummy payload } } @Test public void test_TmpFileHasBeenDeletedAfterResponseWasClosed() throws Exception { // ## Arrange ## CurlRequest req = new MockCurlRequest(Curl.Method.POST, "http://dummy"); req.threshold(0); // always create tmp file // ## Act ## long before = countTmpFiles();
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Sat May 10 01:44:04 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/Base64Test.java
; } @ParameterizedTest(name = "encode({1}) -> {2}") @MethodSource("encodeProvider") void testEncode(byte[] input, String expected) { // Arrange & Act String actual = Base64.encode(input); // Assert assertEquals(expected, actual, "Base64.encode should match expected string"); } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/HandlerTest.java
assertEquals(SmbConstants.DEFAULT_PORT, port); } @Test @DisplayName("openConnection creates SmbFile for valid URL") void testOpenConnectionWithValidUrl() throws IOException { // Arrange - Create URL with handler URL url = new URL(null, "smb://host/share", handler); // Act URLConnection conn = handler.openConnection(url); // Assert assertNotNull(conn);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.4K bytes - Viewed (0)