- Sort Score
- Result 10 results
- Languages All
Results 391 - 400 of 4,346 for new3 (0.46 sec)
-
android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java
SimpleTearDown tearDownOne = new SimpleTearDown(); stack.addTearDown(tearDownOne); Callback callback = new Callback() { @Override public void run() { assertEquals( "tearDownTwo should have been run before tearDownOne", false, tearDownOne.ran); } }; SimpleTearDown tearDownTwo = new SimpleTearDown(callback);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
} @Test @DisplayName("seToIoe maps Interrupted cause to InterruptedIOException") void seToIoeInterruptedMapping() { SmbException se = new SmbException("x", new jcifs.util.transport.TransportException(new InterruptedException("boom"))); IOException ioe = SmbFileInputStream.seToIoe(se); assertTrue(ioe instanceof InterruptedIOException);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java
} public void test_getInput() { // Test getInput method ProtwordsItem item1 = new ProtwordsItem(1, "word1"); assertEquals("word1", item1.getInput()); ProtwordsItem item2 = new ProtwordsItem(2, ""); assertEquals("", item2.getInput()); ProtwordsItem item3 = new ProtwordsItem(3, null); assertNull(item3.getInput()); } public void test_getInputValue() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
byte[] emptyFileId = new byte[16]; assertDoesNotThrow(() -> new Smb2WriteRequest(mockConfig, emptyFileId)); } } @Nested @DisplayName("FileId Tests") class FileIdTests { @Test @DisplayName("Should set file ID correctly") void testSetFileId() { byte[] newFileId = new byte[16]; new SecureRandom().nextBytes(newFileId);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/SignedBytesTest.java
testSortDescending(new byte[] {}, 0, 0, new byte[] {}); testSortDescending(new byte[] {1}, 0, 1, new byte[] {1}); testSortDescending(new byte[] {1, 2}, 0, 2, new byte[] {2, 1}); testSortDescending(new byte[] {1, 3, 1}, 0, 2, new byte[] {3, 1, 1}); testSortDescending(new byte[] {1, 3, 1}, 0, 1, new byte[] {1, 3, 1}); testSortDescending(new byte[] {-1, -2, 1, 2}, 1, 3, new byte[] {-1, 1, -2, 2}); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java
} @Test @DisplayName("Test with empty data") void testWithEmptyData() { // Given byte[] emptyData = new byte[0]; transCallNamedPipe = new TransCallNamedPipe(mockConfig, TEST_PIPE_NAME, emptyData, 0, 0); byte[] dst = new byte[10]; // When int bytesWritten = transCallNamedPipe.writeDataWireFormat(dst, 0); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/HandleReconnector.java
private final int maxRetries; private final long retryDelay; /** * Create a new handle reconnector * @param manager the persistent handle manager */ public HandleReconnector(PersistentHandleManager manager) { this(manager, 3, 1000); } /** * Create a new handle reconnector with custom settings * @param manager the persistent handle manager
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 8.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java
@Override public void setUp() { fakePool = new FakeExecutor(); e = new SequentialExecutor(fakePool); } public void testConstructingWithNullExecutor_fails() { assertThrows(NullPointerException.class, () -> new SequentialExecutor(null)); } public void testBasics() { AtomicInteger totalCalls = new AtomicInteger(); Runnable intCounter = new Runnable() { @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 11.4K bytes - Viewed (0) -
docs/recipes.md
```java private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/helloworld.txt") .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 17:01:12 UTC 2025 - 47.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/text/TokenizerTest.java
final Tokenizer tokenizer = new Tokenizer(""); assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF)); assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF)); } /** * @throws Exception */ @Test public void testWhitespace() throws Exception { final Tokenizer tokenizer = new Tokenizer("\t \n");
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2K bytes - Viewed (0)