- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for Violation (0.04 sec)
-
android-test/src/androidTest/java/okhttp/android/test/StrictModeTest.kt
OkHttpClient() assertThat(violations).hasSize(1) assertThat(violations[0].message).isEqualTo("newSSLContext") } @Test fun testNewCall() { Platform.resetForTests() val client = OkHttpClient() applyStrictMode() // Safe on main client.newCall(Request("https://google.com/robots.txt".toHttpUrl())) assertThat(violations).isEmpty() }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Nov 21 12:33:41 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/audit/SecurityAuditLoggerTest.java
logger.logSecurityViolation("Test violation with stack trace", context); logger.setIncludeStackTrace(false); logger.logSecurityViolation("Test violation without stack trace", context); Map<EventType, Long> stats = logger.getStatistics(); assertEquals(Long.valueOf(2), stats.get(EventType.SECURITY_VIOLATION), "Should have 2 security violation events"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbExceptionTest.java
assertTrue(exception.getMessage().toLowerCase().contains("access") && exception.getMessage().toLowerCase().contains("denied")); } @Test @DisplayName("Should format error message for sharing violation") void testSharingViolationError() { // Given int ntStatus = NtStatus.NT_STATUS_SHARING_VIOLATION; // When SmbException exception = new SmbException(ntStatus, false);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtStatusTest.java
// Should be an error status (0xC prefix) assertTrue((status & (int) 0xC0000000L) == (int) 0xC0000000L); } @Test @DisplayName("Should handle sharing violation status") void testSharingViolationStatus() { // Given int status = NtStatus.NT_STATUS_SHARING_VIOLATION; // When/Then assertEquals((int) 0xC0000043L, status);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ByteArrayDataInput.java
* array. If any method encounters the end of the array prematurely, it throws {@link * IllegalStateException} to signify <i>programmer error</i>. This behavior is a technical violation * of the supertype's contract, which specifies a checked exception. * * @author Kevin Bourrillion * @since 1.0 */ @J2ktIncompatible @GwtIncompatible public interface ByteArrayDataInput extends DataInput {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 20:25:25 UTC 2024 - 2.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/SMBProtocolDecodingException.java
import jcifs.CIFSException; /** * Exception thrown when errors occur during SMB protocol message decoding. * Indicates that an SMB message could not be properly parsed or decoded due to * malformed data, protocol violations, or unsupported message formats. * * @author mbechler */ public class SMBProtocolDecodingException extends CIFSException { /** * */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java
* and DI container integration. * * <p>Thread Safety: This class is thread-safe. Each evaluate() call creates * a new GroovyShell instance to ensure thread isolation.</p> * * <p>Resource Management: GroovyClassLoader instances are properly managed * and cleaned up after script evaluation to prevent memory leaks.</p> */ public class GroovyEngine extends AbstractScriptEngine {
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 5.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/EXTRACTOR_TESTS_README.md
### 4. Error Messages - ✅ Encoding information in TextExtractor errors - ✅ File type context in MS Office errors - ✅ Archive type in archive extractor errors ## Testing Best Practices 1. **Isolation**: Each test is independent and doesn't affect others 2. **Clarity**: Test names clearly describe what is being tested 3. **Coverage**: Both success and failure paths are tested
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Nov 19 08:55:01 UTC 2025 - 5.7K bytes - Viewed (0) -
guava/src/com/google/common/base/Stopwatch.java
* return android.os.SystemClock.elapsedRealtimeNanos(); * } * }); * } * * @author Kevin Bourrillion * @since 10.0 */ @GwtCompatible @SuppressWarnings("GoodTime") // lots of violations public final class Stopwatch { private final Ticker ticker; private boolean isRunning; private long elapsedNanos; private long startTick; /**
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 9.2K bytes - Viewed (0)