- Sort Score
- Num 10 results
- Language All
Results 981 - 990 of 3,804 for throws (0.27 seconds)
-
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
byte[] copiedData = Arrays.copyOfRange(outputBuffer, 0, dataLength); assertArrayEquals(testData, copiedData); } @Test @DisplayName("Should throw exception when output buffer too small") void testReadBytesWireFormatBufferTooSmall() throws Exception { // Given byte[] smallOutputBuffer = new byte[10]; Smb2ReadResponse smallBufferResponse = new Smb2ReadResponse(mockConfig, smallOutputBuffer, 0);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 22.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactory.java
/** Cleans up anything created when creating the source or sink. */ void tearDown() throws IOException; /** Factory for byte or char sources. */ interface SourceFactory<S, T> extends SourceSinkFactory<S, T> { /** Creates a new source containing some or all of the given data. */ S createSource(T data) throws IOException; } /** Factory for byte or char sinks. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 30 16:59:10 GMT 2025 - 3K bytes - Click Count (0) -
src/test/java/org/codelibs/core/beans/converter/TimeConverterTest.java
import static org.junit.Assert.assertThat; import org.junit.Test; /** * @author higa */ public class TimeConverterTest { /** * @throws Exception */ @Test public void testGetAsObjectAndGetAsString() throws Exception { final TimeConverter converter = new TimeConverter("HH:mm:ss"); final java.sql.Time result = (java.sql.Time) converter.getAsObject("12:34:56");Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 1.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java
authenticator = null; } @AfterEach public void tearDown() throws Exception { if (authenticator != null) { authenticator.close(); } } @Test @DisplayName("Test password stored as char array") void testPasswordStoredAsCharArray() throws Exception { authenticator = new NtlmPasswordAuthenticator("DOMAIN", "username", "password123");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 8.5K bytes - Click Count (0) -
src/test/java/org/codelibs/core/convert/StringConversionUtilTest.java
package org.codelibs.core.convert; import junit.framework.TestCase; /** * @author shinsuke * */ public class StringConversionUtilTest extends TestCase { /** * @throws Exception */ public void testFromWindowsMapping() throws Exception { assertNull(StringConversionUtil.fromWindowsMapping(null)); assertEquals("", StringConversionUtil.fromWindowsMapping(""));Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 1.7K bytes - Click Count (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
* * @param tc the CIFS context * @param chlng the server challenge * @return the signing key * @throws SmbException if an SMB error occurs * @throws GeneralSecurityException if a security error occurs */ public byte[] getSigningKey(CIFSContext tc, byte[] chlng) throws SmbException, GeneralSecurityException { switch (tc.getConfig().getLanManCompatibility()) { case 0: case 1:Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 30.3K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategyTest.java
class DependencyInferenceTests { @Test @DisplayName("should remove dependency version for project artifact") void shouldRemoveDependencyVersionForProjectArtifact() throws Exception { String parentPomXml = PomBuilder.create() .namespace("http://maven.apache.org/POM/4.1.0") .modelVersion("4.1.0") .groupId("com.example")Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 35.2K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Throwables.java
* throwIfUnchecked(failure); * throw new AssertionError(failure); * } * </pre> * * @since 20.0 */ @GwtIncompatible // Class.cast, Class.isInstance public static <X extends Throwable> void throwIfInstanceOf( Throwable throwable, Class<X> declaredType) throws X { checkNotNull(throwable); if (declaredType.isInstance(throwable)) { throw declaredType.cast(throwable); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 20.6K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/PathMatcherFactory.java
* @param useDefaultExcludes whether to augment excludes with default SCM exclusion patterns * @return a PathMatcher that can be used to test if paths should be included * @throws NullPointerException if baseDirectory is null */ @Nonnull PathMatcher createPathMatcher( @Nonnull Path baseDirectory, Collection<String> includes,Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Jul 21 19:37:56 GMT 2025 - 7.5K bytes - Click Count (0) -
src/test/java/org/codelibs/core/beans/converter/DateConverterTest.java
import java.sql.Timestamp; import java.util.Date; import org.junit.Test; /** * @author higa * */ public class DateConverterTest { /** * @throws Exception */ @Test public void testGetAsObjectAndGetAsString() throws Exception { final DateConverter converter = new DateConverter("yyyy/MM/dd"); final Date result = (Date) converter.getAsObject("2008/01/16");Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 1.6K bytes - Click Count (0)