Skip to content

Commit

Permalink
Use modern junit
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1853576 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
simonsteiner1984 committed Feb 14, 2019
1 parent bd7d504 commit caced35
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

import javax.xml.transform.stream.StreamResult;

import org.junit.Assert;
import org.junit.Test;

import org.apache.fop.apps.FOUserAgent;
Expand All @@ -37,7 +38,7 @@
import org.apache.fop.render.pdf.PDFDocumentHandler;
import org.apache.fop.render.pdf.extensions.PDFEmbeddedFileAttachment;

import junit.framework.Assert;


public class PDFAttachmentTestCase {
private FOUserAgent ua = FopFactory.newInstance(new File(".").toURI()).newFOUserAgent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

import javax.xml.transform.stream.StreamResult;

import org.junit.Assert;
import org.junit.Test;

import static org.mockito.Mockito.mock;
Expand All @@ -40,7 +41,7 @@
import org.apache.fop.render.pdf.extensions.PDFDictionaryExtension;
import org.apache.fop.render.pdf.extensions.PDFDictionaryType;

import junit.framework.Assert;


public class PDFPagePieceTestCase {
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@

import java.awt.Rectangle;

import org.junit.Assert;
import org.junit.Test;

import org.apache.fop.afp.AFPObjectAreaInfo;
import org.apache.fop.afp.AFPPaintingState;

import junit.framework.Assert;


public class AFPImageHandlerTestCase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
import java.util.HashMap;
import java.util.Map;

import org.junit.Assert;

import org.apache.fop.afp.AFPConstants;
import org.apache.fop.afp.ptoca.PtocaBuilder;

import junit.framework.Assert;

public class AFPParser {
private boolean readText;
public AFPParser(boolean readText) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import javax.xml.transform.sax.SAXResult;
import javax.xml.transform.stream.StreamSource;

import org.junit.Assert;
import org.junit.Test;

import org.xml.sax.SAXException;
Expand Down Expand Up @@ -65,7 +66,7 @@
import org.apache.fop.fonts.MultiByteFont;
import org.apache.fop.render.intermediate.IFException;

import junit.framework.Assert;


public class AFPTrueTypeTestCase {
private String font;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

import javax.xml.transform.stream.StreamResult;

import org.junit.Assert;
import org.junit.Test;

import org.apache.fop.apps.FOUserAgent;
Expand All @@ -42,7 +43,7 @@
import org.apache.fop.render.intermediate.IFException;
import org.apache.fop.render.java2d.CustomFontMetricsMapper;

import junit.framework.Assert;


public class PCLPainterTestCase {
private FOUserAgent ua = FopFactory.newInstance(new File(".").toURI()).newFOUserAgent();
Expand Down

0 comments on commit caced35

Please sign in to comment.