- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 460 for ensures (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava/src/com/google/common/base/Verify.java
* failures explained</a> in the Guava User Guide for advice on when this class should be used. * * @since 17.0 */ @GwtCompatible public final class Verify { /** * Ensures that {@code expression} is {@code true}, throwing a {@code VerifyException} with no * message otherwise. * * @throws VerifyException if {@code expression} is {@code false}
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 29 17:36:00 GMT 2025 - 18.5K bytes - Click Count (0) -
guava/src/com/google/common/base/Preconditions.java
* Preconditions}</a>. * * @author Kevin Bourrillion * @since 2.0 */ @GwtCompatible public final class Preconditions { private Preconditions() {} /** * Ensures the truth of an expression involving one or more parameters to the calling method. * * @param expression a boolean expression * @throws IllegalArgumentException if {@code expression} is false */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 53.5K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/ndr/NdrExceptionTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import org.junit.jupiter.api.Test; class NdrExceptionTest { /** * Test the constructor with a message. * Ensures that the exception is created with the correct message. */ @Test void testConstructorWithMessage() { String testMessage = "This is a test message for NdrException.";Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.5K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/RepositoryAwareRequest.java
List<RemoteRepository> getRepositories(); /** * Validates a list of remote repositories to ensure data integrity. * * <p>This method performs the following validations: * <ul> * <li>Allows null input (returns null)</li> * <li>Ensures no duplicate repositories exist in the list</li> * <li>Ensures no null repository entries exist in the list</li> * </ul> *
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 10 07:30:49 GMT 2025 - 5K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
} @Test @DisplayName("Constructor acquires tree connection; getConfig/isConnected delegate") void constructorAndSimpleDelegations() { // Ensures constructor acquires tree connection and simple delegate methods forward correctly // Verify constructor invoked acquire once verify(treeConnection, times(1)).acquire(); // getConfig delegatesCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SecurityBlobTest.java
// Act String actual = blob.toString(); // Assert assertEquals(expected, actual, "Hex string should match expected format"); } // Ensures a default-constructed blob starts empty and stable across APIs @Test @DisplayName("Default constructor yields empty state") void defaultConstructor_initialState() { // Arrange & ActCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.4K bytes - Click Count (0) -
src/test/java/jcifs/http/HandlerTest.java
} @Test void testOpenConnection_HttpProtocol_ReturnsNtlmHttpURLConnection() throws Exception { // This test ensures that for a standard HTTP URL, openConnection wraps the connection // in an NtlmHttpURLConnection, using mock handlers to avoid dependency on system handlers. setupMockProtocolHandlers();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.1K bytes - Click Count (0) -
src/test/java/jcifs/ResolverTypeTest.java
@Test void testNumberOfEnumConstants() { // Ensure there are exactly 4 resolver types assertEquals(4, ResolverType.values().length, "There should be exactly 4 resolver types."); } /** * Tests the names of the enum constants. */ @Test void testEnumNames() { // Verify the names of the enum constants to ensure they are not accidentally changedCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/Lockable.kt
/** * Marker interface for objects that use the JVM's `synchronized` mechanism and the related * `wait()` and `notify()` functions. * * The Lockable interface is particularly handy because it ensures we lock the right `this` when * there are multiple `this` objects in scope. */ interface Lockable internal inline fun Lockable.wait() = (this as Object).wait()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed May 28 23:28:25 GMT 2025 - 2.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java
} catch (SecurityException e) { throw new RuntimeException(e); } catch (NoSuchMethodException e) { throw new AssertionError(e); } } /** * Ensures that all interface methods of {@code forwarderClass} are forwarded to the {@link * ForwardingObject#delegate}. {@code forwarderClass} is assumed to only implement one interface. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 2.8K bytes - Click Count (0)