Skip to content

Commit

Permalink
Fix validTaskMan data
Browse files Browse the repository at this point in the history
  • Loading branch information
leeyimin committed Nov 6, 2016
1 parent c016a91 commit 2aeed8a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 47 deletions.
74 changes: 29 additions & 45 deletions src/test/data/XmlUtilTest/validTaskMan.xml
Original file line number Diff line number Diff line change
@@ -1,58 +1,42 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- todo: remove isPrivate flag -->

<taskMan>
<tasks>
<title>Hans Muster</title>
<deadline isPrivate="false">9482424</deadline>
<status isPrivate="false">hans@google.com</status>
<schedule>"23 June, 24 July"</schedule>
<title>Contact Hans Muster</title>
<deadline>02 Dec 2016 01:00</deadline>
<status>complete</status>
<scheduleStart>01 Nov 2016 02:00</scheduleStart>
<scheduleEnd>01 Nov 2016 15:00</scheduleEnd>
<tagged>Hans</tagged>
<tagged>first</tagged>
</tasks>
<tasks>
<title>Ruth Mueller</title>
<deadline isPrivate="false">87249245</deadline>
<status isPrivate="false">ruth@google.com</status>
<schedule>"23 June, 24 July"</schedule>
<title>Call Ruth Mueller</title>
<deadline>01-02-2016 23:30</deadline>
<status>incomplete</status>
<scheduleStart>12-05-2015 9pm</scheduleStart>
<scheduleEnd>12-06-2015 12am</scheduleEnd>
</tasks>
<tasks>
<title>Heinz Kurz</title>
<deadline isPrivate="false">95352563</deadline>
<status isPrivate="false">heinz@yahoo.com</status>
<schedule>"23 June, 24 July"</schedule>
<title>Hang out with Lydia Kunz</title>
<status>n</status>
<tagged>first</tagged>
</tasks>
<tasks>
<title>Cornelia Meier</title>
<deadline isPrivate="false">87652533</deadline>
<status isPrivate="false">cornelia@google.com</status>
<schedule>"23 June, 24 July"</schedule>
<title>Marry Anna Best</title>
<status>incomplete</status>
<scheduleStart>01-10-2015 10.35am</scheduleStart>
<scheduleEnd>01-12-2015 00:01</scheduleEnd>
</tasks>
<tasks>
<title>Werner Meyer</title>
<deadline isPrivate="false">9482224</deadline>
<status isPrivate="false">werner@gmail.com</status>
<schedule>"23 June, 24 July"</schedule>
</tasks>
<tasks>
<title>Lydia Kunz</title>
<deadline isPrivate="false">9482427</deadline>
<status isPrivate="false">lydia@gmail.com</status>
<schedule>"23 June, 24 July"</schedule>
</tasks>
<tasks>
<title>Anna Best</title>
<deadline isPrivate="false">9482442</deadline>
<status isPrivate="false">anna@google.com</status>
<schedule>"23 June, 24 July"</schedule>
</tasks>
<tasks>
<title>Stefan Meier</title>
<deadline isPrivate="false">8482424</deadline>
<status isPrivate="false">stefan@mail.com</status>
<schedule>"23 June, 24 July"</schedule>
</tasks>
<tasks>
<title>Martin Mueller</title>
<deadline isPrivate="false">8482131</deadline>
<status isPrivate="false">hans@google.com</status>
<schedule>"23 June, 24 July"</schedule>
<title>Question Stefan Meier</title>
<status>y</status>
<deadline>10-10-2017 23:30</deadline>
</tasks>
<tags>
<tagName>Hans</tagName>
</tags>
<tags>
<tagName>first</tagName>
</tags>
</taskMan>
4 changes: 2 additions & 2 deletions src/test/java/seedu/taskman/commons/util/XmlUtilTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public void getDataFromFile_emptyFile_DataFormatMismatchException() throws Excep
@Test
public void getDataFromFile_validFile_validResult() throws Exception {
XmlSerializableTaskMan dataFromFile = XmlUtil.getDataFromFile(VALID_FILE, XmlSerializableTaskMan.class);
assertEquals(9, dataFromFile.getActivityList().size());
assertEquals(0, dataFromFile.getTagList().size());
assertEquals(5, dataFromFile.getActivityList().size());
assertEquals(2, dataFromFile.getTagList().size());
}

@Test
Expand Down

0 comments on commit 2aeed8a

Please sign in to comment.