Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1831 - 1840 of 3,637 for throwIf (0.07 seconds)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/DomUtilsTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Unit tests for DomUtils functionality with domtrip backend.
     */
    class DomUtilsTest {
    
        @Test
        void testFindChildElement() throws Exception {
            String pomXml = """
                <?xml version="1.0" encoding="UTF-8"?>
                <project xmlns="http://maven.apache.org/POM/4.0.0">
                    <modelVersion>4.0.0</modelVersion>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 31.3K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorTest.java

    import org.junit.jupiter.api.Test;
    
    public class RankFusionProcessorTest extends UnitFessTestCase {
    
        private static final String ID_FIELD = "_id";
    
        @Test
        public void test_default_1000docs_10size() throws Exception {
            String query = "*";
            int allRecordCount = 1000;
            int pageSize = 10;
            try (RankFusionProcessor rankFusionProcessor = new RankFusionProcessor()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/io/DefaultModelWriter.java

     */
    @Named
    @Singleton
    @Deprecated(since = "4.0.0")
    public class DefaultModelWriter implements ModelWriter {
    
        @Override
        public void write(File output, Map<String, Object> options, Model model) throws IOException {
            Objects.requireNonNull(output, "output cannot be null");
            Objects.requireNonNull(model, "model cannot be null");
    
            output.getParentFile().mkdirs();
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                assertEquals(0, buffer[2]); // salt length
                assertEquals(0, buffer[3]);
            }
    
            @Test
            @DisplayName("Should decode context correctly")
            void testDecode() throws SMBProtocolDecodingException {
                // Arrange
                context = new PreauthIntegrityNegotiateContext();
                byte[] buffer = new byte[] { 0x02, 0x00, // 2 hash algos
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/reflect/TypesTest.java

          ParameterizedType parameterType =
              (ParameterizedType)
                  WithWildcardType.class.getDeclaredMethod(methodName, List.class)
                      .getGenericParameterTypes()[0];
          return (WildcardType) parameterType.getActualTypeArguments()[0];
        }
      }
    
      public void testNewWildcardType() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 15.5K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/primitives/Ints.java

       * Math#toIntExact(long)} instead, but be aware that that method throws {@link
       * ArithmeticException} rather than {@link IllegalArgumentException}.
       *
       * @param value any value in the range of the {@code int} type
       * @return the {@code int} value that equals {@code value}
       * @throws IllegalArgumentException if {@code value} is greater than {@link Integer#MAX_VALUE} or
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 31.3K bytes
    - Click Count (0)
  7. 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));
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Sep 12 06:19:14 GMT 2024
    - 3.7K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/impl/EventSpyImpl.java

    /**
     * Bridges between Maven3 events and Maven4 events.
     */
    @Named
    @Singleton
    public class EventSpyImpl implements EventSpy {
        @Override
        public void init(Context context) throws Exception {}
    
        @Override
        public void onEvent(Object arg) throws Exception {
            if (arg instanceof ExecutionEvent ee) {
                InternalMavenSession session =
                        InternalMavenSession.from(ee.getSession().getSession());
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Nov 29 20:53:26 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java

        }
    
        // Used by m2eclipse
    
        @Override
        @SuppressWarnings({"UnusedDeclaration"})
        public MavenExecutionPlan calculateExecutionPlan(MavenSession session, boolean setup, String... tasks)
                throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException,
                        MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException,
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/reflect/ReflectionTest.java

        assertThat(Reflection.getPackageName(Map.Entry.class)).isEqualTo("java.util");
      }
    
      public void testNewProxy() throws Exception {
        Runnable runnable = Reflection.newProxy(Runnable.class, X_RETURNER);
        assertThat(runnable.toString()).isEqualTo("x");
      }
    
      public void testNewProxyCantWorkOnAClass() throws Exception {
        assertThrows(
            IllegalArgumentException.class, () -> Reflection.newProxy(Object.class, X_RETURNER));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 2.8K bytes
    - Click Count (0)
Back to Top