- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 3,054 for throws (0.04 sec)
-
src/test/java/jcifs/util/ResourceManagerTest.java
void testMultipleCloseOnManagedResource() throws Exception { TestResource resource = new TestResource("multiclose"); ResourceManager.ManagedResource<TestResource> managed = resourceManager.manage(resource); managed.close(); assertTrue(resource.isClosed()); // Second close should not throw assertDoesNotThrow(managed::close); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java
return; case 2: throw new IllegalArgumentException("Invalid argument"); case 3: throw new IllegalStateException("Invalid state"); case 4: throw new NullPointerException("Null pointer"); default: throw new RuntimeException("Generic error"); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java
* * @param resource the login handling resource to check permission for * @throws LoginRequiredException if login is required * @throws UserRoleLoginException if the user doesn't have required roles */ @Override protected void checkPermission(final LoginHandlingResource resource) throws LoginRequiredException { if (FessAdminAction.class.isAssignableFrom(resource.getActionClass())) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 12.1K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ChecksumAlgorithmService.java
@Nonnull Collection<String> getChecksumAlgorithmNames(); /** * Returns {@link ChecksumAlgorithm} for given algorithm name, or throws if algorithm not supported. * * @throws ChecksumAlgorithmServiceException if asked algorithm name is not supported. * @throws NullPointerException if passed in name is {@code null}. */ @Nonnull ChecksumAlgorithm select(@Nonnull String algorithmName); /**
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jul 10 20:52:34 UTC 2024 - 6.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/ShortConversionUtilTest.java
* */ public class ShortConversionUtilTest extends TestCase { /** * @throws Exception */ public void testToShort() throws Exception { assertEquals(Short.valueOf("1000"), ShortConversionUtil.toShort("1,000")); } /** * @throws Exception */ public void testToPrimitiveShort() throws Exception { assertEquals(1000, ShortConversionUtil.toPrimitiveShort("1,000")); }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 1.5K bytes - Viewed (0) -
src/test/java/jcifs/SmbResourceTest.java
void testDelete() throws CIFSException { // When/Then assertDoesNotThrow(() -> mockResource.delete(), "Delete operation should not throw exception"); verify(mockResource).delete(); } @Test @DisplayName("copy operation should work correctly") void testCopyTo() throws CIFSException { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/MimeMap.java
private int inLen; /** * Creates a new MimeMap instance by loading MIME type mappings from the resource file. * * @throws IOException if there is an error reading the mime.map resource file */ public MimeMap() throws IOException { int n; in = new byte[IN_SIZE]; final InputStream is = getClass().getClassLoader().getResourceAsStream("jcifs/smb1/util/mime.map");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
@DisplayName("Test decode with zero length returns 0") void testDecodeZeroLength() throws SMBProtocolDecodingException { byte[] buffer = new byte[100]; int bytesRead = notifyInfo.decode(buffer, 0, 0); assertEquals(0, bytesRead); } @Test @DisplayName("Test decode with non-aligned next entry offset throws exception") void testDecodeNonAlignedNextOffset() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
} @Test @DisplayName("Should throw UnknownHostException for empty address list") void testUnknownHostException() throws Exception { // Given: No addresses returned when(nameSvc.getAllByName(eq("unknown.host"), eq(true))).thenReturn(new Address[0]); // When/Then: Should throw UnknownHostException
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
assertNull(tester.instantiate(Runnable.class)); } public void testInstantiate_abstractClass() throws Exception { assertNull(tester.instantiate(AbstractList.class)); } public void testInstantiate_annotation() throws Exception { assertNull(tester.instantiate(MyAnnotation.class)); } public void testInstantiate_setDefault() throws Exception {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 36.2K bytes - Viewed (0)