Skip to content

Commit fd11c19

Browse files
gebhardtGerrit Code Review
authored andcommitted
Merge "Added getPlist() to ProjectFile" into xcodeprojreader/master
2 parents 8825d2b + 38841ed commit fd11c19

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/main/java/com/sap/prd/mobile/ios/mios/xcodeprojreader/ProjectFile.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
{

src/test/java/com/sap/prd/mobile/ios/mios/xcodeprojreader/ProjectFileTest.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import static org.junit.Assert.assertEquals;
2323
import static org.junit.Assert.assertFalse;
24+
import static org.junit.Assert.assertSame;
2425

2526
import org.junit.Before;
2627
import 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
{

0 commit comments

Comments
 (0)