use of com.facebook.buck.apple.xcode.xcodeproj.PBXProject in project buck by facebook.
the class XcodeprojSerializerTest method testEmptyProject.
@Test
public void testEmptyProject() {
PBXProject project = new PBXProject("TestProject");
XcodeprojSerializer xcodeprojSerializer = new XcodeprojSerializer(new GidGenerator(ImmutableSet.of()), project);
NSDictionary rootObject = xcodeprojSerializer.toPlist();
assertEquals(project.getGlobalID(), ((NSString) rootObject.get("rootObject")).getContent());
NSDictionary objects = ((NSDictionary) rootObject.get("objects"));
NSDictionary projectObject = (NSDictionary) objects.get(project.getGlobalID());
String[] requiredKeys = { "mainGroup", "targets", "buildConfigurationList", "compatibilityVersion", "attributes" };
for (String key : requiredKeys) {
assertTrue(projectObject.containsKey(key));
}
}
Aggregations