File: Braillo440SW2PEmbosserTest.java

package info (click to toggle)
brailleutils 1.2.3-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 4,088 kB
  • sloc: java: 13,138; xml: 659; makefile: 29; sh: 1
file content (25 lines) | stat: -rw-r--r-- 976 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com_braillo;

import java.io.IOException;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;

import org.daisy.braille.embosser.EmbosserFeatures;
import org.daisy.braille.embosser.UnsupportedWidthException;
import org.junit.Test;
import org.xml.sax.SAXException;

public class Braillo440SW2PEmbosserTest extends AbstractTestBraillo440Embosser {

	public Braillo440SW2PEmbosserTest() {
		super(new Braillo440SWEmbosser("Braillo 440SW (two page mode)", "Embosser table must match hardware setup."));
		emb.setFeature(EmbosserFeatures.SADDLE_STITCH, false);
		emb.setFeature(EmbosserFeatures.PAGE_FORMAT, fa44_2p);
	}
	
	@Test
	public void testEmbossing() throws IOException, ParserConfigurationException, SAXException, UnsupportedWidthException, TransformerException {
		performTest("resource-files/test-input-1.pef", "resource-files/test-input-1_braillo440SW_2p_us_fa44-", ".prn", 3);
	}
}