File tree Expand file tree Collapse file tree
src/test/java/messagerosa/xml Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5555 <dependency >
5656 <groupId >org.junit.jupiter</groupId >
5757 <artifactId >junit-jupiter-api</artifactId >
58- <version >5.6.2</version >
5958 <scope >test</scope >
6059 </dependency >
6160 <dependency >
Original file line number Diff line number Diff line change 1+ package messagerosa .xml ;
2+
3+ import messagerosa .core .model .XMessage ;
4+ import org .junit .jupiter .api .Test ;
5+
6+ import javax .xml .bind .JAXBException ;
7+ import java .io .FileInputStream ;
8+ import java .io .FileNotFoundException ;
9+ import java .io .InputStream ;
10+
11+ import static org .junit .jupiter .api .Assertions .*;
12+
13+ class XMessageParserTest {
14+
15+ @ Test
16+ void parse () throws FileNotFoundException , JAXBException {
17+ InputStream inputStream = new FileInputStream ("~/message-rosa/src/test/java/messagerosa/xml/" + "testMessage.xml" );
18+ XMessage message = XMessageParser .parse (inputStream );
19+ System .out .println (message .toXML ());
20+ assertEquals (1 , 1 );
21+ }
22+ }
You can’t perform that action at this time.
0 commit comments