Examples of addFailure()


Examples of org.apache.maven.archiva.reporting.model.ArtifactResults.addFailure()

        ArtifactResults results = getArtifactResults( artifact );
        ResultReason result = createResultReason( processor, problem, reason );

        if ( !results.getFailures().contains( result ) )
        {
            results.addFailure( result );
        }

        saveObject( results );
    }
View Full Code Here

Examples of org.apache.maven.archiva.reporting.model.MetadataResults.addFailure()

        MetadataResults results = getMetadataResults( metadata );
        ResultReason result = createResultReason( processor, problem, reason );

        if ( !results.getFailures().contains( result ) )
        {
            results.addFailure( result );
        }

        saveObject( results );
    }
View Full Code Here

Examples of org.d2junit.notifier.D2JExcelNotifier.addFailure()

        methodBlock(frameworkMethod, itr).evaluate();

      } catch (AssumptionViolatedException e) {
        eachNotifier.addFailedAssumption(e);
      } catch (Throwable e) {
        eachNotifier.addFailure(e);
      } finally {
        eachNotifier.fireTestFinished();
      }
    }
   
View Full Code Here

Examples of org.glassfish.admin.rest.model.ResponseBody.addFailure()

        // the ResponseBody constructor to ignore resource links.
        // Since we never return links from this filter, instead of looking
        // for the header, we can just always tell the ResponseBody to ignore links.
        ResponseBody rb = new ResponseBody(false);
        String errorMsg = (String)entity;
        rb.addFailure(errorMsg);
        resCtx.setEntity(rb, resCtx.getEntityAnnotations(), Constants.MEDIA_TYPE_JSON_TYPE);
    }
}
View Full Code Here

Examples of org.glassfish.admin.rest.model.ResponseBody.addFailure()

        }
        final ResponseBody responseBody = new ResponseBody(includeResourceLinks());
        if (ExitCode.WARNING.equals(exitCode)) {
            responseBody.addWarning(report.getMessage());
        } else {
            responseBody.addFailure(report.getMessage());
        }
        return responseBody;
    }

    abstract protected boolean includeResourceLinks();
View Full Code Here

Examples of org.junit.internal.runners.model.EachTestNotifier.addFailure()

            log.debug("Running test {}", t.describe());
            t.run();
        } catch (AssumptionViolatedException e) {
            eachNotifier.addFailedAssumption(e);
        } catch (Throwable e) {
            eachNotifier.addFailure(e);
        } finally {
            eachNotifier.fireTestFinished();
        }
    }
}
View Full Code Here

Examples of org.junit.internal.runners.model.EachTestNotifier.addFailure()

                        builder.append( message ).append( "\n" );
                    }
                    eachNotifier.addFailedAssumption( new AssumptionViolatedException( builder.toString() ) );
                }
            } catch ( Throwable t ) {
                eachNotifier.addFailure( t );
            } finally {
                // has to always be called as per junit docs
                eachNotifier.fireTestFinished();
            }       
      }
View Full Code Here

Examples of org.junit.internal.runners.model.EachTestNotifier.addFailure()

                        }
                        eachNotifier.addFailedAssumption( new AssumptionViolatedException( builder.toString() ) );
                    }
                }
            } catch ( Throwable t ) {
                eachNotifier.addFailure( t );
            } finally {
                // has to always be called as per junit docs
                eachNotifier.fireTestFinished();
            }
        }
View Full Code Here

Examples of org.junit.internal.runners.model.EachTestNotifier.addFailure()

        try {
            statement.evaluate();
        } catch (AssumptionViolatedException e) {
            eachNotifier.addFailedAssumption(e);
        } catch (Throwable e) {
            eachNotifier.addFailure(e);
        } finally {
            eachNotifier.fireTestFinished();
        }
    }
View Full Code Here

Examples of org.junit.internal.runners.model.EachTestNotifier.addFailure()

        } catch (AssumptionViolatedException e) {
            testNotifier.addFailedAssumption(e);
        } catch (StoppedByUserException e) {
            throw e;
        } catch (Throwable e) {
            testNotifier.addFailure(e);
        }
    }

    //
    // Implementation of Filterable and Sortable
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.