|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.xmlgraphics.util.MimeConstants; |
|
|
import org.apache.xmlgraphics.util.MimeConstants; |
|
|
|
|
|
|
|
|
|
|
|
import org.apache.fop.apps.FOPException; |
|
|
import org.apache.fop.events.EventProcessingTestCase; |
|
|
import org.apache.fop.events.EventProcessingTestCase; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
testInvalidConfigEvent("afp-font-missing.xconf", ".fontConfigMissing"); |
|
|
testInvalidConfigEvent("afp-font-missing.xconf", ".fontConfigMissing"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
|
|
|
@Test(expected = FOPException.class) |
|
|
public void testInvalidCharactersetName() throws Exception { |
|
|
public void testInvalidCharactersetName() throws Exception { |
|
|
testInvalidConfigEvent("afp-invalid-characterset.xconf", ".characterSetNameInvalid"); |
|
|
testInvalidConfigEvent("afp-invalid-characterset.xconf", ".characterSetNameInvalid"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
|
|
|
@Test(expected = FOPException.class) |
|
|
public void testinvalidConfig() throws Exception { |
|
|
public void testinvalidConfig() throws Exception { |
|
|
testInvalidConfigEvent("afp-invalid-config.xconf", ".invalidConfiguration"); |
|
|
testInvalidConfigEvent("afp-invalid-config.xconf", ".invalidConfiguration"); |
|
|
} |
|
|
} |