Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@Test
- public void testuserToNode() throws ParserConfigurationException {
- String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><user>" + getLineBreak()
- + "<name>Liam Nielson</name>" + getLineBreak()
- + "<email>1234@gmail.com</email>" + getLineBreak()
- + "<username>th3maker</username>" +getLineBreak()
- + "<password>[0.12345678, 0.12345679]</password>" +getLineBreak()
- + "</workshoplist>" +getLineBreak();
- Document doc = BackupFileDataController.documentCreation();
- Node root = doc.createElement("");
- BackupFileDataController.userToNode(u3,root,doc);
- String result = doc.toString();
- assertThat(result, CompareMatcher.isIdenticalTo(expected));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement