Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1741 - 1750 of 2,367 for Exceptions (0.06 sec)

  1. compat/maven-model/src/test/java/org/apache/maven/model/v4/MavenModelVersionTest.java

    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    class MavenModelVersionTest {
    
        private static Model model;
    
        @BeforeAll
        static void setup() throws Exception {
            try (InputStream is = MavenModelVersionTest.class.getResourceAsStream("/xml/pom.xml")) {
                model = new MavenStaxReader().read(is);
            }
        }
    
        @Test
        void testV4Model() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. impl/maven-core/src/test/java/org/apache/maven/project/canonical/CanonicalProjectBuilderTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    
    /**
     */
    class CanonicalProjectBuilderTest extends AbstractMavenProjectTestCase {
        @Test
        void testProjectBuilder() throws Exception {
            File f = getFileForClasspathResource("canonical-pom.xml");
    
            MavenProject project = getProject(f);
    
            // ----------------------------------------------------------------------
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Mar 25 09:45:07 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolutionExceptionTest.java

    import java.util.Arrays;
    import java.util.List;
    
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    /**
     * Test the artifact resolution exception message
     *
     */
    class ArtifactResolutionExceptionTest {
        private static final String LS = System.lineSeparator();
    
        @Test
        void testMissingArtifactMessageFormat() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/project/artifact/DefaultMavenMetadataCacheTest.java

        private RepositorySystem repositorySystem;
    
        @BeforeEach
        void setUp() {
            repositorySystem = new TestRepositorySystem();
        }
    
        @Test
        void testCacheKey() throws Exception {
            Artifact a1 = repositorySystem.createArtifact("testGroup", "testArtifact", "1.2.3", "jar");
            @SuppressWarnings("deprecation")
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t11/ProjectInheritanceTest.java

        //
        // p1 ---> p0 --> super model
        //
        // ----------------------------------------------------------------------
    
        @Test
        void testDependencyManagementDoesNotOverrideScopeOfCurrentArtifact() throws Exception {
            File localRepo = getLocalRepositoryPath();
    
            File pom0 = new File(localRepo, "p0/pom.xml");
            File pom0Basedir = pom0.getParentFile();
            File pom1 = new File(pom0Basedir, "p1/pom.xml");
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  6. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionIT.java

    import java.util.regex.Pattern;
    
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    class ComparableVersionIT {
    
        @Test
        void test() throws Exception {
            Files.walkFileTree(Paths.get("target"), new SimpleFileVisitor<Path>() {
                Pattern mavenArtifactJar = Pattern.compile("maven-artifact-[\\d.]+(-SNAPSHOT)?\\.jar");
    
                @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/HMACT64Test.java

            // Test engineDigest(byte[] buf, int offset, int len) throws exception
            try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) {
                mockedCrypto.when(Crypto::getMD5).thenReturn(mockMd5);
                byte[] innerDigest = "inner_digest".getBytes();
    
                when(mockMd5.digest()).thenReturn(innerDigest);
                doThrow(new RuntimeException("Test Exception")).when(mockMd5).digest(any(byte[].class), anyInt(), anyInt());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

                    fos = null; // Successfully wrapped, no need to close explicitly
                } catch (final Exception e) {
                    if (fos != null) {
                        try {
                            fos.close();
                        } catch (final IOException ioe) {
                            // Ignore close exception
                        }
                    }
                    if (newFile != null) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 20 05:56:45 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

                } else {
                    enc = encoding;
                }
    
                try {
                    url = URLDecoder.decode(url, enc);
                } catch (final Exception e) {
                    // Failed to decode URL, using original URL as-is
                    if (getLogger().isDebugEnabled()) {
                        getLogger().debug("Failed to decode URL with encoding {}: {}", enc, url, e);
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Dec 11 09:47:03 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/curl/CurlTest.java

            assertNotNull(request2);
            assertTrue("Factory methods should return different instances", request1 != request2);
        }
    
        @Test
        public void test_ProtectedConstructor() throws Exception {
            // ## Test that protected constructor can be accessed via reflection ##
    
            // ## Act ##
            final Constructor<Curl> constructor = Curl.class.getDeclaredConstructor();
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 16.3K bytes
    - Viewed (0)
Back to top