Java 8 OperationsException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 OperationsException class.

This code example shows how to use the following methods:
            return; 
        LOGGER.info("Starting test " + className + ".");
        // Getting the destination PDF file (must be there!) 
        String dest= getDest();
        if (dest == null || dest.length() == 0)
            throw new OperationsException("DEST cannot be empty!");
        // Getting the source PDF file 
        String src = getSrc();
        // if there is none, just create a PDF 
        if (src == null || src.length() == 0) {
        	createPdf(dest);
        } 
        // if there is one, manipulate the PDF 
        else { 
        	manipulatePdf(src, dest);
        } 
        // Do some further tests on the PDF 
        assertPdf(dest);
        // Compare the destination PDF with a reference PDF 
        System.out.println(dest + "\n" + getCmpPdf());
3
CodeRank
This code example shows how to use the following methods:
 
    public void runTest() throws Exception {
        LOGGER.info("Starting test."); 
        String outPdf = getOutPdf();
        if (outPdf == null || outPdf.length() == 0)
            throw new OperationsException("outPdf cannot be empty!");
        makePdf(outPdf);
        assertPdf(outPdf);
        comparePdf(outPdf, getCmpPdf());
        LOGGER.info("Test complete."); 
    } 
 
    protected abstract void makePdf(String outPdf) throws Exception;
 
    /** 
     * Gets the name of the resultant PDF file. 
     * This name will be passed to <code>makePdf</code>, <code>assertPdf</code> and <code>comparePdf</code> methods. 
     * @return 
     */ 
    protected abstract String getOutPdf();
3
CodeRank
See Code Examples for Java 8 OperationsException Methods: