- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 657 for arrange (0.11 sec)
-
src/test/java/org/codelibs/core/exception/NullArgumentExceptionTest.java
LocaleUtil.setDefault(null); } /** * @throws Exception */ @Test public void testErrorMessage_ja() throws Exception { // ## Arrange ## Locale.setDefault(Locale.JAPANESE); final NullArgumentException nullArgumentException = new NullArgumentException("hoge"); assertThat(nullArgumentException.getArgName(), is("hoge"));
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
class BasicTests { @Test @DisplayName("Textual constructor happy path and toString consistency") void testTextualConstructorAndToString() throws Exception { // Arrange SID sid = new SID("S-1-5-21-1-2-3-1029"); // Act & Assert // toString should reconstruct exact textual form assertEquals("S-1-5-21-1-2-3-1029", sid.toString());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
} throw new NoSuchFieldException(name); } @Test @DisplayName("getResponseTimeout returns override for SMB requests") void getResponseTimeout_override() { // Arrange CommonServerMessageBlockRequest req = mock(CommonServerMessageBlockRequest.class); when(req.getOverrideTimeout()).thenReturn(1234); // Act int timeout = transport.getResponseTimeout(req);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/DosErrorTest.java
// Assert assertEquals(-1, actual); } @Test @DisplayName("Structure: DOS_ERROR_CODES is non-null with [code,status] pairs") void dosErrorCodesStructureIsValid() { // Arrange & Act int[][] table = DosError.DOS_ERROR_CODES; // Assert assertNotNull(table, "DOS_ERROR_CODES must not be null"); assertTrue(table.length > 0, "DOS_ERROR_CODES must not be empty");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java
} } /** * Test that the constructor initializes all fields correctly */ @Test public void testConstructor() { // Arrange int fid = 0x1234; int offset = 100; int remaining = 50; byte[] buffer = new byte[100]; int off = 10; int len = 40; // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
/** * Test that the constructor copies settings from the wrapped connection. * @throws ProtocolException */ @Test void testConstructorCopiesSettings() throws ProtocolException { // Arrange when(mockConnection.getRequestMethod()).thenReturn("GET"); when(mockConnection.getAllowUserInteraction()).thenReturn(true); when(mockConnection.getDoInput()).thenReturn(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.6K bytes - Viewed (0) -
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"); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResultDataTest.java
import org.codelibs.fess.crawler.exception.CrawlerSystemException; import org.dbflute.utflute.core.PlainTestCase; public class ResultDataTest extends PlainTestCase { public void test_setRawData() { // ## Arrange ## final ResultData resultData = new ResultData(); final Object rawData = new Object(); // ## Act ## resultData.setRawData(rawData); // ## Assert ##
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 1.9K bytes - Viewed (0) -
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java
class SmbEndOfFileExceptionTest { /** * Verifies the no-arg constructor sets the expected message, status, and no cause. */ @Test void defaultConstructorSetsMessageAndStatus() { // Arrange & Act SmbEndOfFileException ex = new SmbEndOfFileException(); // Assert assertEquals("Unexpectedly reached end of file", ex.getMessage(), "Default message must match");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0)