- Sort Score
- Result 10 results
- Languages All
Results 2181 - 2190 of 2,976 for throw (0.07 sec)
-
samples/guide/src/main/java/okhttp3/recipes/CurrentDateHeader.java
import okhttp3.Response; public final class CurrentDateHeader { private final OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(new CurrentDateInterceptor()) .build(); public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/helloworld.txt") .build(); try (Response response = client.newCall(request).execute()) {Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Oct 31 15:32:50 UTC 2018 - 1.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java
* @param bufferIndex starting index in source buffer * @param len length of data to read * @return number of bytes read * @throws SMBProtocolDecodingException if decoding fails */ protected abstract int readParametersWireFormat(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException; /** * Reads data from wire format * @param buffer source bufferRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
public void testEmptyInputs_mixedAlgorithms() throws Exception { String knownOutput = "8cbf764cbe2e4623d99a41354adfd390"; Mac mac = Mac.getInstance("HmacMD5"); mac.init(SHA1_KEY); assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); assertEquals(knownOutput, Hashing.hmacMd5(SHA1_KEY).newHasher().hash().toString()); } public void testKnownInputs() throws Exception {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 16:19:35 UTC 2024 - 13.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java
@BeforeEach void setUp() { response = new SrvPipePeekResponse(); } @Test @DisplayName("Test successful decode with data") void testDecodeWithData() throws SMBProtocolDecodingException { // Prepare test data byte[] buffer = new byte[24]; // 16 bytes header + 8 bytes data int bufferIndex = 0; // Set up test valuesRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java
@BeforeEach void setUp() { response = new ValidateNegotiateInfoResponse(); } @Test @DisplayName("Test decode with valid buffer") void testDecodeValidBuffer() throws SMBProtocolDecodingException { // Prepare test data byte[] buffer = new byte[64]; int bufferIndex = 10; // Set capabilities (4 bytes) int testCapabilities = 0x12345678;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionRangeResolver.java
* @param artifactCoordinates t * @return the version range resolution result * @throws VersionResolverException if an errors occurs */ @Nonnull default VersionRangeResolverResult resolve( @Nonnull Session session, @Nonnull ArtifactCoordinates artifactCoordinates) throws VersionResolverException { return resolve(VersionRangeResolverRequest.build(session, artifactCoordinates));Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Sep 12 06:19:14 UTC 2024 - 3.7K bytes - Viewed (0) -
api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ModelParser.java
* @param options possible parsing options, may be {@code null} * @return the parsed {@link Model}, never {@code null} * @throws ModelParserException if the model cannot be parsed */ @Nonnull Model parse(@Nonnull Source source, @Nullable Map<String, ?> options) throws ModelParserException; /** * Locate and parse the model in the specified directory.Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Tue Sep 10 17:18:47 UTC 2024 - 3.1K bytes - Viewed (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,Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Mon Jul 21 19:37:56 UTC 2025 - 7.5K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java
} protected ArtifactRepository getLocalRepository() throws Exception { File repoDir = new File(getBasedir(), "target/local-repo").getAbsoluteFile(); return repositorySystem.createLocalRepository(repoDir); } @Test void testThatASystemScopedDependencyIsNotResolvedFromRepositories() throws Exception { //Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Feb 07 00:45:02 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/MsrpcDfsRootEnumTest.java
assertNotNull(dfsRootEnum.totalentries); } @Test @DisplayName("getEntries should return empty array when no DFS roots exist") void testGetEntries_emptyArray() throws Exception { // Create empty DfsEnumArray200 netdfs.DfsEnumArray200 emptyArray = new netdfs.DfsEnumArray200(); emptyArray.count = 0; emptyArray.s = new netdfs.DfsInfo200[0];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.9K bytes - Viewed (0)