- Sort Score
- Num 10 results
- Language All
Results 1511 - 1520 of 3,637 for throwIf (0.06 seconds)
-
src/test/java/jcifs/util/PathValidatorTest.java
assertThrows(SmbException.class, () -> { strictValidator.validatePath("\\share\\file<script>.txt"); }); } @Test public void testTrailingSpace() throws Exception { assertThrows(SmbException.class, () -> { validator.validatePath("\\share\\file "); }); } @Test public void testTrailingPeriod() throws Exception {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.6K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/ProjectDependenciesResolver.java
* @throws ArtifactResolutionException in case of resolution issue * @throws ArtifactNotFoundException if an artifact is not found */ Set<Artifact> resolve(MavenProject project, Collection<String> scopesToResolve, MavenSession session) throws ArtifactResolutionException, ArtifactNotFoundException; /**Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java
@Test void testLsarCloseEncodeIn() throws NdrException { rpc.policy_handle mockHandle = mock(rpc.policy_handle.class); lsarpc.LsarClose lsarClose = new lsarpc.LsarClose(mockHandle); lsarClose.encode_in(mockNdrBuffer); verify(mockHandle).encode(mockNdrBuffer); } @Test void testLsarCloseDecodeOut() throws NdrException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 60.8K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/CopyUtilTest.java
/** * @throws Exception */ @Test public void testIsToOs() throws Exception { final int result = copy(is, os); assertThat(result, is(srcBytes.length)); assertThat(os.toByteArray(), is(srcBytes)); } /** * @throws Exception */ @Test public void testReaderToWriter() throws Exception {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 4.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/ExchangeCodec.kt
@Throws(IOException::class) fun createRequestBody( request: Request, contentLength: Long, ): Sink /** This should update the HTTP engine's sentRequestMillis field. */ @Throws(IOException::class) fun writeRequestHeaders(request: Request) /** Flush the request to the underlying socket. */ @Throws(IOException::class) fun flushRequest()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jul 29 21:11:09 GMT 2025 - 3.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ForMapMultimapAsMapImplementsMapTest.java
// GWT's HashMap.entrySet().removeAll(null) doesn't throws NPE. } } @Override public void testEntrySetRetainAllNullFromEmpty() { try { super.testEntrySetRetainAllNullFromEmpty(); } catch (RuntimeException tolerated) { // GWT's HashMap.entrySet().retainAll(null) doesn't throws NPE. } } @Override public void testKeySetRemoveAllNullFromEmpty() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 3K bytes - Click Count (0) -
src/test/java/org/codelibs/core/lang/FieldUtilTest.java
/** * @throws Exception */ @Test public void testGetElementType_Rawtype() throws Exception { assertThat(FieldUtil.getElementTypeOfCollection(Baz.class.getField("collectionOfRawtype")), is(nullValue())); } /** * @throws Exception */ public void testGetElementTypeOfCollection() throws Exception {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Fri Jun 20 13:40:57 GMT 2025 - 4.1K bytes - Click Count (0) -
src/test/java/jcifs/SmbTransportPoolTest.java
@Nested @DisplayName("GetSmbTransport Methods") class GetSmbTransportTests { @Test @DisplayName("Should get transport by name with default parameters") void testGetSmbTransportByName() throws UnknownHostException, IOException { // Given when(transportPool.getSmbTransport(context, TEST_HOST, DEFAULT_PORT, false, false)).thenReturn(transport); // WhenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 22.6K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
} } @Nested @DisplayName("Encoding Tests") class EncodingTests { @Test @DisplayName("Should encode value correctly") void testEncode() throws NdrException { // Given: NdrShort with test value int testValue = 123; NdrShort ndrShort = new NdrShort(testValue); // When: Encoding the valueCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/RelatedContentHelperTest.java
private RelatedContentHelper relatedContentHelper; private MockRelatedContentBhv mockBhv; private VirtualHostHelper virtualHostHelper; @Override protected void setUp(TestInfo testInfo) throws Exception { super.setUp(testInfo); // Setup system properties for DI container File file = File.createTempFile("test", ".properties"); file.deleteOnExit();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 14.6K bytes - Click Count (0)