assertNotNull("Disabled apps collection", apps);
assertTrue("Disabled apps should be empty by default", apps.isEmpty());
}
private void assertQueryDescriptor(ExternalResourceDescriptor desc, String oSql) {
ExternalResourceDescriptor parent = desc.getParentDescriptor();
assertNotNull("QUERY ExternalResourceDescriptor parent", parent);
ExternalResourceType type = ExternalResourceType.valueOf(parent.getType());
assertSame("QUERY ExternalResourceDescriptor parent type", ExternalResourceType.DATABASE, type);
List<ExternalResourceDescriptor> children = parent.getChildren();
assertNotNull("QUERY ExternalResourceDescriptor parent children", children);
assertEquals("QUERY ExternalResourceDescriptor parent children size", 1, children.size());
ExternalResourceDescriptor firstChild = children.get(0);
assertNotNull("QUERY ExternalResourceDescriptor parent first child", firstChild);
assertSame("QUERY ExternalResourceDescriptor parent first child", desc, firstChild);
Frame frame = desc.getFrame();
assertNotNull("QUERY ExternalResourceDescriptor frame", frame);