- Sort Score
- Num 10 results
- Language All
Results 381 - 390 of 750 for ensures (0.07 seconds)
-
src/test/java/jcifs/context/SingletonContextTest.java
} @Test void testGetInstanceInitializesIfNull() { // Test getInstance initializes the context if it's null assertNull(getSingletonInstanceViaReflection()); // Ensure it's null initially CIFSContext context = SingletonContext.getInstance(); assertNotNull(context); assertNotNull(getSingletonInstanceViaReflection()); // Should be initialized now }Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/ds/AbstractDataStore.java
/** * The mime type. */ public String mimeType = "application/datastore"; /** * The flag to check if the data store is alive. * Volatile to ensure visibility across threads. */ protected volatile boolean alive = true; /** * Default constructor. */ public AbstractDataStore() { // nothing } /**Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 7.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java
assertEquals(0, initialThroughput); // Add some data transfer channelInfo.addBytesSent(1000); channelInfo.addBytesReceived(2000); // Wait a bit to ensure time passes try { Thread.sleep(10); } catch (InterruptedException e) { Thread.currentThread().interrupt(); }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 7.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/DosErrorTest.java
assertIterableEquals(Arrays.asList(0x00000000, 0x00050001, 0x007b0001), dosCaptor.getAllValues()); assertIterableEquals(Arrays.asList(0x00000000, 0xc0000022, 0xc0000033), ntCaptor.getAllValues()); // And ensure no further interactions happened verifyNoMoreInteractions(consumer); }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.9K bytes - Click Count (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
@ExtendWith(MockitoExtension.class) public class ResponseTest { @Mock private Response mockResponse; @BeforeEach void setUp() { // Reset mock before each test to ensure clean state // MockitoExtension handles this automatically for @Mock fields, but good to be aware. } @Test void testIsReceived() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.5K bytes - Click Count (0) -
.github/pull_request_template.md
- [ ] You have run the [Core IT][core-its] successfully. If your pull request is about ~20 lines of code you don't need to sign an [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf) if you are unsure please ask on the developers list. To make clear that you license your contribution under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:30:05 GMT 2025 - 1.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/FormBody.kt
@Throws(IOException::class) override fun writeTo(sink: BufferedSink) { writeOrCountBytes(sink, false) } /** * Either writes this request to [sink] or measures its content length. We have one method * do double-duty to make sure the counting and content are consistent, particularly when it comes * to awkward operations like measuring the encoded length of header strings, or the
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.3K bytes - Click Count (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt
ranges.removeAt(j) } else { break@mergeAdjacent } } } i++ } return ranges } /** * Returns a copy of [mappings], splitting to ensure that each mapping is entirely contained within * a single section. */ internal fun withoutSectionSpans(mappings: List<Mapping>): List<Mapping> { val result = mutableListOf<Mapping>()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 8.3K bytes - Click Count (0) -
src/test/java/jcifs/util/ResourceManagerTest.java
void testConfigurationUpdates() { resourceManager.configure(5000, 1000, false, false); // Configuration should be applied (we can't directly verify private fields, // but we can ensure it doesn't throw) assertDoesNotThrow(() -> resourceManager.checkForLeaks()); assertDoesNotThrow(() -> resourceManager.performCleanup()); }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 8.9K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelperTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; /** * Test for EnhancedCompositeBeanHelper to ensure it works correctly and provides performance benefits. */ class EnhancedCompositeBeanHelperTest { private EnhancedCompositeBeanHelper helper; private ConverterLookup converterLookup;Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Nov 12 14:59:46 GMT 2025 - 8.7K bytes - Click Count (0)