- Sort Score
- Result 10 results
- Languages All
Results 321 - 330 of 2,008 for new (0.01 sec)
-
src/main/java/jcifs/pac/ASN1Util.java
final int ftag = in.read(); final int tag = readTagNumber(in, ftag); if (tag != expectTag) { throw new IOException("Unexpected tag " + tag); } final int length = readLength(in, limit, false); final byte[] content = new byte[length]; in.read(content); return content; } // shamelessly stolen from BC ASN1InputStream
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.2K bytes - Viewed (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemTest.java
problem = new DefaultProblem(null, null, null, -1, Integer.MIN_VALUE, null); assertEquals(Integer.MIN_VALUE, problem.getColumnNumber()); } @Test void testGetException() { DefaultProblem problem = new DefaultProblem(null, null, null, -1, -1, null); assertNull(problem.getException()); Exception e = new Exception(); problem = new DefaultProblem(null, null, null, -1, -1, e);
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DfsReferralTest.java
/** * Tests the append method of the DfsReferral class. * It verifies that a new DfsReferral object can be successfully appended to an existing one, * forming a linked list structure. */ @Test void testAppend() { // Given DfsReferral initialReferral = new DfsReferral(); DfsReferral appendedReferral = new DfsReferral(); // When initialReferral.append(appendedReferral);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/NotifyResponseTest.java
private Exception exception; private Long expiration; public MockNotifyResponse(List<FileNotifyInformation> notifyInfo) { this.notifyInformation = notifyInfo != null ? new ArrayList<>(notifyInfo) : new ArrayList<>(); } @Override public List<FileNotifyInformation> getNotifyInformation() { return this.notifyInformation; } @OverrideRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
void testJavaSerialization() throws Exception { // Given SpnegoException original = new SpnegoException("serialize me", new IllegalArgumentException("iaex")); // When byte[] bytes; try (ByteArrayOutputStream bout = new ByteArrayOutputStream(); ObjectOutputStream oout = new ObjectOutputStream(bout)) { oout.writeObject(original); oout.flush();
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/internal/smb2/nego/Smb2NegotiateRequestTest.java
Arguments.of(DialectVersion.SMB210, DialectVersion.SMB300, new int[] { 0x0210, 0x0300 }), Arguments.of(DialectVersion.SMB202, DialectVersion.SMB311, new int[] { 0x0202, 0x0210, 0x0300, 0x0302, 0x0311 }), Arguments.of(DialectVersion.SMB311, DialectVersion.SMB311, new int[] { 0x0311 })); } @ParameterizedTest
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
UniAddress uniAddress = new UniAddress(InetAddress.getByName("127.0.0.1")); SmbTransport transport = new SmbTransport(uniAddress, 445, null, 0); serverData = transport.new ServerData(); response = new SmbComNegotiateResponse(serverData); } @Test void testReadParameterWordsWireFormat() {
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/smb/ShareEnumIteratorTest.java
// First call throws, second accepts when(filter.accept(any())).thenThrow(new CIFSException("boom")).thenReturn(true); ShareEnumIterator it = new ShareEnumIterator(parent, entries.iterator(), filter); assertTrue(it.hasNext()); SmbResource res = it.next(); assertNotNull(res);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java
try { tempFile = createTempFile("ftp-", ".tmp", null); try (OutputStream out = new BufferedOutputStream(new FileOutputStream(tempFile))) { if (!client.retrieveFile(ftpInfo.getName(), out)) { throw new CrawlingAccessException("Failed to retrieve: " + ftpInfo.toUrl()); } }Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 39.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
@BeforeEach void setUp() throws Exception { MockitoAnnotations.openMocks(this); // Use real configuration for most tests mockConfig = new BaseConfiguration(false); response = new NetShareEnumResponse(mockConfig); } @Test @DisplayName("Test constructor with configuration") void testConstructor() { assertNotNull(response);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.2K bytes - Viewed (0)