- Sort Score
- Result 10 results
- Languages All
Results 471 - 480 of 613 for IllegalArgumentException (0.22 sec)
-
guava-tests/test/com/google/common/primitives/BooleansTest.java
.isEqualTo(new boolean[] {true, false, false}); } public void testEnsureCapacity_fail() { assertThrows(IllegalArgumentException.class, () -> Booleans.ensureCapacity(ARRAY_FALSE, -1, 1)); assertThrows(IllegalArgumentException.class, () -> Booleans.ensureCapacity(ARRAY_FALSE, 1, -1)); } public void testJoin() { assertThat(Booleans.join(",", EMPTY)).isEmpty();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 24.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListTest.java
ImmutableList.Builder<String> builder = ImmutableList.builder(); for (int i = 0; i < 100; i++) { builder.add("a"); } IllegalArgumentException expected = assertThrows( IllegalArgumentException.class, () -> builder.addAll(nCopies(Integer.MAX_VALUE - 50, "a"))); assertThat(expected).hasMessageThat().contains("cannot store more than MAX_VALUE elements"); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 24.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SID.java
* This is the last subauthority identifier * * @return the RID */ @Override public int getRid () { if ( getType() == SID_TYPE_DOMAIN ) throw new IllegalArgumentException("This SID is a domain sid"); return this.sub_authority[ this.sub_authority_count - 1 ]; } @Override public int getType () { if ( this.origin_server != null )
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 14.9K bytes - Viewed (0) -
guava/src/com/google/common/net/InternetDomainName.java
* } catch (IllegalArgumentException e) { * domainName = DEFAULT_DOMAIN; * } * }</pre> * * @since 8.0 (previously named {@code isValidLenient}) */ public static boolean isValid(String name) { try { InternetDomainName unused = from(name); return true; } catch (IllegalArgumentException e) { return false; } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Feb 05 20:47:23 UTC 2024 - 28K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactLinkedHashMap.java
* @return a new, empty {@code CompactLinkedHashMap} with enough capacity to hold {@code * expectedSize} elements without resizing * @throws IllegalArgumentException if {@code expectedSize} is negative */ public static <K extends @Nullable Object, V extends @Nullable Object> CompactLinkedHashMap<K, V> createWithExpectedSize(int expectedSize) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 8.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
if (iterator.hasNext()) { sb.append(", ..."); } sb.append('>'); throw new IllegalArgumentException(sb.toString()); } /** * Returns the single element contained in {@code iterator}, or {@code defaultValue} if the * iterator is empty. * * @throws IllegalArgumentException if the iterator contains multiple elements. The state of the * iterator is unspecified. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.3K bytes - Viewed (0) -
.teamcity/src/main/kotlin/model/FunctionalTestBucketGenerator.kt
buildScanTags = listOf("Check"), subprojects = JsonBasedGradleSubprojectProvider(File("./subprojects.json")) ) val testClassDataJson = File(System.getProperty("inputTestClassDataJson") ?: throw IllegalArgumentException("Input file not found!")) val generatedBucketsJson = File(System.getProperty("outputBucketSplitJson", "./test-buckets.json")) FunctionalTestBucketGenerator(model, testClassDataJson).generate(generatedBucketsJson)
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Aug 29 11:04:49 UTC 2024 - 8.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/EvictingQueueTest.java
*/ @GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault public class EvictingQueueTest extends TestCase { public void testCreateWithNegativeSize() throws Exception { assertThrows(IllegalArgumentException.class, () -> EvictingQueue.create(-1)); } public void testCreateWithZeroSize() throws Exception { EvictingQueue<String> queue = EvictingQueue.create(0); assertEquals(0, queue.size());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 6.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/IoTestCase.java
try { File testFile = new File(testFileUrl.toURI()); testDir = testFile.getParentFile(); // the testdata directory } catch (Exception ignore) { // probably URISyntaxException or IllegalArgumentException // fall back to copying URLs to files in the testDir == null block below } } if (testDir == null) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 31 12:36:13 UTC 2024 - 5.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java
multimap.put("foo", 3); assertEquals(ImmutableSet.of(1, 3), multimap.get("foo")); } public void testCreateFromIllegalSizes() { assertThrows(IllegalArgumentException.class, () -> LinkedHashMultimap.create(-20, 15)); assertThrows(IllegalArgumentException.class, () -> LinkedHashMultimap.create(20, -15)); } @GwtIncompatible // unreasonably slow public void testGetIteration() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18.6K bytes - Viewed (0)