- Sort Score
- Num 10 results
- Language All
Results 981 - 990 of 3,637 for throwIf (0.34 seconds)
-
src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java
assertEquals(-128, response.getServerData().serverTimeZone); assertEquals(8, response.getServerData().encryptionKeyLength); } @Test public void testReadBytesWireFormatWithoutExtendedSecurity() throws UnsupportedEncodingException { response.getServerData().scapabilities = 0; response.getServerData().encryptionKeyLength = 8; // Domain name in OEM encoding (ASCII) with null terminator
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.4K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java
if (lmHash.length == 0 && ntHash.length == 0) { throw new RuntimeException("Null setup prohibited."); } } else if (DISABLE_PLAIN_TEXT_PASSWORDS) { throw new RuntimeException("Plain text passwords are disabled"); } else if (useUnicode) { // plain text
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 7.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/RegularImmutableBiMap.java
/** * @throws IllegalArgumentException if another entry in the bucket has the same key * @throws BucketOverflowException if this bucket has too many entries, which may indicate a hash * flooding attack */ private static void checkNoConflictInValueBucket( Object value, Entry<?, ?> entry, @Nullable ImmutableMapEntry<?, ?> valueBucketHead) throws BucketOverflowException {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 11.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java
this.iterator = iterator; } @Override public Iterator<E> iterator() { if (iterator == null) { // TODO: throw something else? Do we worry that people's code and tests // might be relying on this particular type of exception? throw new IllegalStateException(); } try { return iterator; } finally { iterator = null; } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/LabelTypeHelperTest.java
import org.junit.jupiter.api.TestInfo; public class LabelTypeHelperTest extends UnitFessTestCase { private LabelTypeHelper labelTypeHelper; @Override protected void setUp(TestInfo testInfo) throws Exception { super.setUp(testInfo); labelTypeHelper = new LabelTypeHelper(); ComponentUtil.register(new SystemHelper(), "systemHelper");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 12.7K bytes - Click Count (0) -
src/test/java/jcifs/spnego/NegTokenInitTest.java
assertNull(init.getMechanisms()); // Should not throw when converting to byte array assertDoesNotThrow(() -> init.toByteArray()); } @Test @DisplayName("Large MIC values are handled correctly") void testLargeMicValue() throws Exception { byte[] largeMic = new byte[1024]; Arrays.fill(largeMic, (byte) 0xAB);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
*/ @Test public void testNulls() throws Exception { for (Class<?> classToTest : findClassesToTest(loadClassesInPackage(), NULL_TEST_METHOD_NAMES)) { if (classToTest.getSimpleName().equals("ReflectionFreeAssertThrows")) { /* * These classes handle null properly but throw IllegalArgumentException for the default
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 17.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
verify(transport, times(1)).acquire(); assertTrue(session.isInUse()); } @Test @DisplayName("getSessionKey: throws when absent, returns when present") void testGetSessionKey() throws Exception { SmbSessionImpl session = newSession(); // Absent key -> CIFSException CIFSException noKey = assertThrows(CIFSException.class, session::getSessionKey);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/witness/WitnessEventType.java
* @return the corresponding WitnessEventType * @throws IllegalArgumentException if value is not recognized */ public static WitnessEventType fromValue(int value) { for (WitnessEventType type : values()) { if (type.value == value) { return type; } } throw new IllegalArgumentException("Unknown witness event type: " + value); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 09:06:40 GMT 2025 - 2.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java
// helper private static void doParallelCacheOp(int count, IntConsumer consumer) { IntStream.range(0, count).parallel().forEach(consumer); } @Override public void setUp() throws Exception { super.setUp(); this.cache = CacheBuilder.newBuilder() .expireAfterAccess(500000, MILLISECONDS) .maximumSize(count) .build(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 6.4K bytes - Click Count (0)