-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathElementParserTest.java
More file actions
32 lines (25 loc) · 963 Bytes
/
ElementParserTest.java
File metadata and controls
32 lines (25 loc) · 963 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
package messagerosa.xml;
import messagerosa.core.model.XMessage;
import org.junit.Before;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import jakarta.xml.bind.JAXBException;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Path;
import static junit.framework.TestCase.assertEquals;
import static messagerosa.utils.ResourcePathHelper.r;
class ElementParserTest {
private static Path PRIMARY_XMESSAGE_PATH;
@Before
public void setUp() {
PRIMARY_XMESSAGE_PATH = r("testMessage.xml");
}
@Test
public void parseInternalInstances() throws IOException, JAXBException {
InputStream inputStream = new FileInputStream("/Users/apple/chaks/experiments/java/comms/message-rosa/src/test/java/messagerosa/xml/" +"testMessage.xml");
XMessage message = XMessageParser.parse(inputStream);
Assertions.assertEquals(1, 1);
}
}