- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 621 for arrange (0.04 seconds)
-
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java
* </ul> */ final class TransWaitNamedPipeResponseTest { /** * Verify that the default constructor creates an instance. */ @Test void constructorInitialisesInstance() { // Arrange & Act TransWaitNamedPipeResponse resp = new TransWaitNamedPipeResponse(); // Assert assertNotNull(resp, "Instance should not be null"); } /**Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.4K bytes - Click Count (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 testCreated: 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/smb/MIENameTest.java
} catch (java.io.IOException e) { throw new RuntimeException(e); } } @Test @DisplayName("Parses a valid buffer and exposes fields") void parseValidBuffer() { // Arrange String name = "******@****.***"; byte[] buf = buildBuffer(oidDer(), name.getBytes(StandardCharsets.US_ASCII)); // Act MIEName parsed = new MIEName(buf); // Assert
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.6K bytes - Click Count (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java
// Arrange CliRequest request = new CliRequest(new String[] {"-Dx", "validate"}, null); // Act cli.cli(request); cli.properties(request); // Assert assertEquals("true", request.getUserProperties().getProperty("x")); } @Test void populatePropertiesMultiple() throws Exception { // ArrangeCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 30.9K bytes - Click Count (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");
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.3K bytes - Click Count (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 };Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.6K bytes - Click Count (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);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (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"); // SPNEGOCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.2K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/ListenableFutureTask.java
return new ListenableFutureTask<>(callable); } /** * Creates a {@code ListenableFutureTask} that will upon running, execute the given {@code * Runnable}, and arrange that {@code get} will return the given result on successful completion. * * @param runnable the runnable task * @param result the result to return on successful completion. If you don't need a particular
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 4.2K bytes - Click Count (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();
Created: Sat Dec 20 09:13:53 GMT 2025 - Last Modified: Sat May 10 01:44:04 GMT 2025 - 3.4K bytes - Click Count (0)