File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
main/java/com/sap/prd/mobile/ios/mios/xcodeprojreader
test/java/com/sap/prd/mobile/ios/mios/xcodeprojreader Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,11 @@ public ProjectFile(Plist plist)
3434 super (null , plist .getDict ());
3535 this .plist = plist ;
3636 }
37+
38+ public Plist getPlist ()
39+ {
40+ return plist ;
41+ }
3742
3843 public Array createArray ()
3944 {
Original file line number Diff line number Diff line change 2121
2222import static org .junit .Assert .assertEquals ;
2323import static org .junit .Assert .assertFalse ;
24+ import static org .junit .Assert .assertSame ;
2425
2526import org .junit .Before ;
2627import org .junit .Test ;
@@ -44,7 +45,16 @@ static ProjectFile load() throws Exception
4445 Plist plist = parser .load (fileName );
4546 return new ProjectFile (plist );
4647 }
47-
48+
49+ @ Test
50+ public void plist () throws Exception
51+ {
52+ final String fileName = "src/test/resources/project.pbxproj.xml" ;
53+ JAXBPlistParser parser = new JAXBPlistParser ();
54+ Plist plist = parser .load (fileName );
55+ assertSame (plist , new ProjectFile (plist ).getPlist ());
56+ }
57+
4858 @ Test
4959 public void version ()
5060 {
You can’t perform that action at this time.
0 commit comments