- Sort Score
- Num 10 results
- Language All
Results 461 - 470 of 6,205 for new1 (0.09 seconds)
-
impl/maven-cli/src/test/java/org/apache/maven/cling/transfer/FileSizeFormatTest.java
FileSizeFormat format = new FileSizeFormat(); assertEquals(expected, format.formatProgress(progressedSize, totalSize)); } @Test void testFormatRate() { FileSizeFormat format = new FileSizeFormat(); // Test bytes per second MessageBuilder builder = new DefaultMessageBuilder(); format.formatRate(builder, 5.0);
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Mar 21 04:56:21 GMT 2025 - 14.9K bytes - Click Count (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
private static final int MAX_PATH_SIZE = 32767; // Statistics private final AtomicLong totalValidations = new AtomicLong(0); private final AtomicLong failedValidations = new AtomicLong(0); private final AtomicLong bufferOverflowsPrevented = new AtomicLong(0); private final AtomicLong integerOverflowsPrevented = new AtomicLong(0); /** * Validate SMB response buffer bounds *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
try { return new URL(null, spec, new Handler()); } catch (MalformedURLException e) { throw new AssertionError("Failed to create SMB URL: " + spec, e); } } // Utility to build a minimal locator for connect tests private static SmbResourceLocatorImpl newLocator(CIFSContext ctx) { return new SmbResourceLocatorImpl(ctx, smbUrl("smb://server/share")); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/query/PrefixQueryCommandTest.java
try { // Create a new QueryProcessor and initialize it QueryProcessor newQueryProcessor = new QueryProcessor(); newQueryProcessor.init(); ComponentUtil.register(newQueryProcessor, "queryProcessor"); // Register the command with the new processor PrefixQueryCommand newCommand = new PrefixQueryCommand(); newCommand.register();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 13.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/PathMappingHelperTest.java
final List<PathMapping> pathMappingList = new ArrayList<PathMapping>(); final PathMapping pathMapping1 = new PathMapping(); pathMapping1.setRegex("file:///home/"); pathMapping1.setReplacement("http://localhost/"); pathMappingList.add(pathMapping1); final PathMapping pathMapping2 = new PathMapping(); pathMapping2.setRegex("http://localhost/");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 15.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/opensearch/client/SearchEngineClientExceptionTest.java
// Test constructor with message and cause String message = "Test error message"; Throwable cause = new RuntimeException("Underlying cause"); SearchEngineClientException exception = new SearchEngineClientException(message, cause); assertNotNull(exception); assertEquals(message, exception.getMessage()); assertEquals(cause, exception.getCause()); } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 7.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/ByteSourceTest.java
new TestByteSource(new byte[10], OPEN_THROWS); private static final ByteSource BROKEN_READ_SOURCE = new TestByteSource(new byte[10], READ_THROWS); private static final ByteSink BROKEN_CLOSE_SINK = new TestByteSink(CLOSE_THROWS); private static final ByteSink BROKEN_OPEN_SINK = new TestByteSink(OPEN_THROWS); private static final ByteSink BROKEN_WRITE_SINK = new TestByteSink(WRITE_THROWS);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 15.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/MemoryUtilTest.java
assertEquals(0L, MemoryUtil.sizeOf(new String[] { null, null })); // Mixed content array assertEquals(84L, MemoryUtil.sizeOf(new Object[] { "test", 123, null })); // Nested arrays assertEquals(120L, MemoryUtil.sizeOf(new Object[] { new String[] { "test" }, new String[] { "test" } })); } @Test public void test_sizeOf_collectionVariations() { // Empty collection
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 12K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java
public void testDelegateRejection() { AtomicInteger numCalls = new AtomicInteger(); AtomicBoolean reject = new AtomicBoolean(true); SequentialExecutor executor = new SequentialExecutor( new Executor() { @Override public void execute(Runnable r) { if (reject.get()) { throw new RejectedExecutionException(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 10.5K bytes - Click Count (0) -
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);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 4.5K bytes - Click Count (0)