- Sort Score
- Num 10 results
- Language All
Results 2281 - 2290 of 3,670 for throwIf (0.05 seconds)
-
src/test/java/jcifs/smb/SessionSetupHandlerTest.java
@DisplayName("Invalid: resolving class by null name throws NPE") void testClassForNameWithNull() { // Intent: demonstrate defensive behavior with null when resolving this type by name assertThrows(NullPointerException.class, () -> Class.forName(null)); } @Test @DisplayName("Happy path: class is loadable via fully qualified name") void testClassForName() throws Exception { // ActCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.3K bytes - Click Count (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesLoaderTest.java
import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; @Deprecated class MavenPropertiesLoaderTest { @Test void testIncludes() throws Exception { FileSystem fs = Jimfs.newFileSystem(Configuration.unix()); Path mavenHome = fs.getPath("/maven"); Files.createDirectories(mavenHome); Path mavenConf = mavenHome.resolve("conf");Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sun Dec 01 19:41:22 GMT 2024 - 4.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/EnumHashBiMap.java
private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); stream.writeObject(keyTypeOrObjectUnderJ2cl); Serialization.writeMap(this, stream); } @SuppressWarnings("unchecked") // reading field populated by writeObject @GwtIncompatible // java.io.ObjectInputStream private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 5.2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java
} @Test @DisplayName("readUShort throws on too short array") void testReadUShortOutOfBounds() { byte[] a = new byte[] { 0x02 }; assertThrows(IndexOutOfBoundsException.class, () -\u003e NtlmMessage.readUShort(a, 0)); } @Test @DisplayName("readULong throws on too short array") void testReadULongOutOfBounds() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.8K bytes - Click Count (0) -
android/guava/src/com/google/common/math/StatsAccumulator.java
* If it contains {@link Double#NEGATIVE_INFINITY} and finite values only or {@link * Double#NEGATIVE_INFINITY} only, the result is {@link Double#NEGATIVE_INFINITY}. * * @throws IllegalStateException if the dataset is empty */ public double mean() { checkState(count != 0); return mean; } /** * Returns the sum of the values. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Apr 14 16:36:11 GMT 2025 - 15.8K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/ExportElasticsearchBuildResourcesTask.java
throw new GradleException( "buildResources can't be configured after the task ran. " + "Make sure task is not used after configuration time" ); } resources.add(resource); } @TaskAction public void doExport() { if (resources.isEmpty()) { setDidWork(false); throw new StopExecutionException(); }
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 3.5K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategyTest.java
@Nested @DisplayName("Namespace Updates") class NamespaceUpdateTests { @Test @DisplayName("should update namespace recursively") void shouldUpdateNamespaceRecursively() throws Exception { String pomXml = """ <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0"> <modelVersion>4.0.0</modelVersion>Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 38.8K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/UnsignedLong.java
return new UnsignedLong(bits); } /** * Returns an {@code UnsignedLong} representing the same value as the specified {@code long}. * * @throws IllegalArgumentException if {@code value} is negative * @since 14.0 */ @CanIgnoreReturnValue public static UnsignedLong valueOf(long value) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 8.8K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalDistributionArchiveCheckPlugin.java
throw new GradleException( "expected line [" + (line + 1) + "] in [" + path + "] to be [" + expectedLine + "] but was [" + actualLine + "]" ); } line++; } } catch (IOException ioException) { throw new GradleException("Unable to read from file " + path, ioException);
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 10.6K bytes - Click Count (0) -
guava-testlib/test/com/google/common/collect/testing/MinimalCollectionTest.java
@Override public Collection<String> create(String[] elements) { // TODO: MinimalCollection should perhaps throw for (Object element : elements) { if (element == null) { throw new NullPointerException(); } } return MinimalCollection.of(elements); } })Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Jan 25 16:19:30 GMT 2025 - 1.7K bytes - Click Count (0)