- Sort Score
- Num 10 results
- Language All
Results 181 - 190 of 614 for ensures (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java
Thread.sleep(5); // Small delay to ensure different timestamps Smb2LeaseKey key2 = limitedManager.requestLease("/share/file2.txt", Smb2LeaseState.SMB2_LEASE_READ_CACHING); Thread.sleep(5); // Small delay to ensure different timestamps
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 00:16:17 GMT 2025 - 13.2K bytes - Click Count (0) -
cmd/os_windows.go
// the directory itself, if the dirPath doesn't exist this function doesn't return // an error. func readDirFn(dirPath string, filter func(name string, typ os.FileMode) error) error { // Ensure we don't pick up files as directories. globAll := filepath.Clean(dirPath) + `\*` globAllP, err := syscall.UTF16PtrFromString(globAll) if err != nil { return errInvalidArgument } data := &syscall.Win32finddata{}
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 5K bytes - Click Count (0) -
src/test/java/jcifs/pac/kerberos/KerberosConstantsTest.java
import org.junit.jupiter.api.Test; /** * Tests for the KerberosConstants interface. */ class KerberosConstantsTest { /** * This test primarily exists to ensure the constants interface can be loaded * and to provide a basic check of its values. * Since it's an interface with only static final fields, there is no complex logic to test. */ @TestCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.1K bytes - Click Count (1) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.reproducible-archives.gradle.kts
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Ensure the archives produced are reproducible tasks.withType<AbstractArchiveTask>().configureEach { isPreserveFileTimestamps = false isReproducibleFileOrder = true dirPermissions { unix("0755") }
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Mar 06 15:37:11 GMT 2024 - 867 bytes - Click Count (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/PlatformInitializer.kt
* limitations under the License. */ package okhttp3.internal.platform import android.content.Context import androidx.startup.Initializer /** * Androidx Startup initializer to ensure that the AndroidPlatform has access to the application context. */ class PlatformInitializer : Initializer<Platform> { override fun create(context: Context): Platform { PlatformRegistry.applicationContext = context
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Dec 31 14:50:53 GMT 2024 - 1K bytes - Click Count (1) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java
return rx - lx; } else { return lx - rx; } }; Map<String, Lifecycle> lifecyclesMap = lookupLifecycles(); // ensure canonical order of standard lifecycles return lifecyclesMap.values().stream() .peek(l -> Objects.requireNonNull(l.getId(), "A lifecycle must have an id."))Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sat Apr 05 11:52:05 GMT 2025 - 6.6K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java
assertEquals(mockPolicyHandle, capturedRpc.handle); assertEquals(access, capturedRpc.access_mask); assertEquals(mockSid, capturedRpc.sid); assertEquals(handle, capturedRpc.domain_handle); // Ensure the handle itself is passed for output } @Test void constructor_shouldThrowSmbExceptionOnRpcError() throws IOException { // Arrange int access = 0x01;
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.9K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NbtExceptionTest.java
assertTrue(exception instanceof CIFSException, "NbtException should be an instance of CIFSException"); } /** * Test the getErrorString method with various error classes and codes to ensure all branches are covered. */ @ParameterizedTest @MethodSource("provideErrorClassAndCodeForGetErrorString") @DisplayName("getErrorString should return correct messages for all defined error classes and codes")
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/BaseTest.java
import org.mockito.junit.jupiter.MockitoExtension; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Base test class providing common test infrastructure and utilities. * All test classes should extend this to ensure consistent test setup. */ @ExtendWith(MockitoExtension.class) public abstract class BaseTest { protected final Logger logger = LoggerFactory.getLogger(getClass()); @BeforeEach void baseSetUp() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbFilenameFilterTest.java
import org.junit.jupiter.api.Test; import org.mockito.Mockito; /** * Tests for {@link SmbFilenameFilter}. Since the interface only defines * a single method, the tests simply ensure that the lambda expression * correctly implements the method and that any exception is propagated. */ class SmbFilenameFilterTest { @Test void acceptReturnsTrueWhenNameMatches() throws Exception {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.6K bytes - Click Count (0)