-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathImplementationPrinterTest.java
More file actions
45 lines (39 loc) · 1015 Bytes
/
ImplementationPrinterTest.java
File metadata and controls
45 lines (39 loc) · 1015 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package qimpp;
import org.junit.*;
import static org.junit.Assert.*;
import java.util.*;
import java.io.ByteArrayOutputStream;
import java.io.File;
import qimpp.ImplementationPrinter;
import xtc.*;
import xtc.tree.GNode;
import xtc.tree.Node;
import xtc.tree.Visitor;
import xtc.tree.Location;
import xtc.tree.Printer;
import xtc.util.Tool;
import java.io.UnsupportedEncodingException;
/**
* @author QIMPP
*/
public class ImplementationPrinterTest {
ByteArrayOutputStream out = new ByteArrayOutputStream();
Printer printer = new Printer(out);
@Test
public void writePrimaryIdentifier() {
GNode n = GNode.create("PrimaryIdentifier");
n.add("zebra");
ImplementationPrinter p = new ImplementationPrinter(printer);
assertTrue(p instanceof ImplementationPrinter);
p.dispatch(n);
try {
String output = out.toString("UTF8");
assertTrue(1==1);
} catch(UnsupportedEncodingException e) {
}
}
@Test
public void writeStructTest() {
//nothing to do.
}
}