Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DefaultProblem (0.21 sec)

  1. compat/maven-builder-support/src/main/java/org/apache/maven/building/DefaultProblem.java

     * thrown or a simple string message. In addition, a problem carries a hint about its source, e.g. the settings file
     * that exhibits the problem.
     *
     */
    class DefaultProblem implements Problem {
    
        private final String source;
    
        private final int lineNumber;
    
        private final int columnNumber;
    
        private final String message;
    
        private final Exception exception;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. compat/maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemTest.java

        @Test
        void testGetSeverity() {
            DefaultProblem problem = new DefaultProblem(null, null, null, -1, -1, null);
            assertEquals(Severity.ERROR, problem.getSeverity());
    
            problem = new DefaultProblem(null, Severity.FATAL, null, -1, -1, null);
            assertEquals(Severity.FATAL, problem.getSeverity());
    
            problem = new DefaultProblem(null, Severity.ERROR, null, -1, -1, null);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. compat/maven-builder-support/src/test/java/org/apache/maven/building/ProblemCollectorFactoryTest.java

    class ProblemCollectorFactoryTest {
    
        @Test
        void testNewInstance() {
            ProblemCollector collector1 = ProblemCollectorFactory.newInstance(null);
    
            Problem problem = new DefaultProblem("MESSAGE1", null, null, -1, -1, null);
            ProblemCollector collector2 = ProblemCollectorFactory.newInstance(Collections.singletonList(problem));
    
            assertNotSame(collector1, collector2);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. compat/maven-builder-support/src/main/java/org/apache/maven/building/DefaultProblemCollector.java

            this.source = source;
        }
    
        @Override
        public void add(Problem.Severity severity, String message, int line, int column, Exception cause) {
            Problem problem = new DefaultProblem(message, severity, source, line, column, cause);
    
            problems.add(problem);
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top