@Override public String debugDump(int indent) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < indent; i++) { sb.append(DebugDumpable.INDENT_STRING); } sb.append(toString()); if (extensionForType != null) { sb.append(",ext:"); sb.append(PrettyPrinter.prettyPrint(extensionForType)); } if (ignored) { sb.append(",ignored"); } if (containerMarker) { sb.append(",Mc"); } if (objectMarker) { sb.append(",Mo"); } if (xsdAnyMarker) { sb.append(",Ma"); } extendDumpHeader(sb); for (ItemDefinition def : getDefinitions()) { sb.append("\n"); sb.append(def.debugDump(indent + 1)); extendDumpDefinition(sb, def); } return sb.toString(); }
@Override public String debugDump(int indent) { StringBuilder sb = new StringBuilder(); DebugUtil.indentDebugDump(sb, indent); sb.append("ContainerWrapper: ").append(PrettyPrinter.prettyPrint(getName())).append("\n"); DebugUtil.debugDumpWithLabel(sb, "displayName", displayName, indent + 1); sb.append("\n"); DebugUtil.debugDumpWithLabel( sb, "status", status == null ? null : status.toString(), indent + 1); sb.append("\n"); DebugUtil.debugDumpWithLabel(sb, "main", main, indent + 1); sb.append("\n"); DebugUtil.debugDumpWithLabel(sb, "readonly", readonly, indent + 1); sb.append("\n"); DebugUtil.debugDumpWithLabel( sb, "showInheritedObjectAttributes", showInheritedObjectAttributes, indent + 1); sb.append("\n"); DebugUtil.debugDumpWithLabel(sb, "path", path == null ? null : path.toString(), indent + 1); sb.append("\n"); DebugUtil.debugDumpWithLabel( sb, "containerDefinition", containerDefinition == null ? null : containerDefinition.toString(), indent + 1); sb.append("\n"); DebugUtil.debugDumpWithLabel( sb, "container", container == null ? null : container.toString(), indent + 1); sb.append("\n"); DebugUtil.debugDumpLabel(sb, "properties", indent + 1); sb.append("\n"); DebugUtil.debugDump(sb, properties, indent + 2, false); sb.append("\n"); DebugUtil.debugDumpWithLabel(sb, "result", result, indent + 1); return sb.toString(); }
@Override public String debugDump(int indent) { StringBuilder sb = new StringBuilder(); DebugUtil.indentDebugDump(sb, indent); sb.append(getDebugName()); sb.append(": ").append(PrettyPrinter.prettyPrint(getName())).append("\n"); DebugUtil.debugDumpWithLabel(sb, "displayName", displayName, indent + 1); sb.append("\n"); DebugUtil.debugDumpWithLabel( sb, "status", status == null ? null : status.toString(), indent + 1); sb.append("\n"); DebugUtil.debugDumpWithLabel(sb, "readonly", readonly, indent + 1); sb.append("\n"); DebugUtil.debugDumpWithLabel( sb, "itemDefinition", itemDefinition == null ? null : itemDefinition.toString(), indent + 1); sb.append("\n"); DebugUtil.debugDumpWithLabel( sb, "property", property == null ? null : property.toString(), indent + 1); sb.append("\n"); DebugUtil.debugDumpLabel(sb, "values", indent + 1); sb.append("\n"); DebugUtil.debugDump(sb, values, indent + 2, false); return sb.toString(); }
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("EXISTS("); sb.append(PrettyPrinter.prettyPrint(fullPath)); sb.append(","); sb.append(filter); sb.append(")"); return sb.toString(); }
@Override public String debugDump(int indent) { StringBuilder sb = new StringBuilder(); DebugUtil.indentDebugDump(sb, indent); sb.append("DummyAccount: ").append(name).append("\n"); DebugUtil.debugDumpWithLabelToString(sb, "Enabled", enabled, indent + 1); if (validFrom != null || validTo != null) { sb.append("\n"); DebugUtil.debugDumpLabel(sb, "Validity", indent + 1); sb.append(" ") .append(PrettyPrinter.prettyPrint(validFrom)) .append(" - ") .append(PrettyPrinter.prettyPrint(validTo)); } sb.append("\n"); DebugUtil.debugDumpWithLabel(sb, "Attributes", attributes, indent + 1); extendDebugDump(sb, indent); return sb.toString(); }
@BeforeSuite public void setup() throws SchemaException, SAXException, IOException { PrettyPrinter.setDefaultNamespacePrefix(MidPointConstants.NS_MIDPOINT_PUBLIC_PREFIX); PrismTestUtil.resetPrismContext(MidPointPrismContextFactory.FACTORY); prismContext = PrismTestUtil.createInitializedPrismContext(); ObjectResolver resolver = new DirectoryFileObjectResolver(MidPointTestConstants.OBJECTS_DIR); AESProtector protector = ExpressionTestUtil.createInitializedProtector(prismContext); expressionFactory = ExpressionTestUtil.createInitializedExpressionFactory( resolver, protector, prismContext, null); }
@BeforeSuite public void setup() throws SchemaException, SAXException, IOException { PrettyPrinter.setDefaultNamespacePrefix(MidPointConstants.NS_MIDPOINT_PUBLIC_PREFIX); PrismTestUtil.resetPrismContext(MidPointPrismContextFactory.FACTORY); }
@BeforeSuite public void setupDebug() { PrettyPrinter.setDefaultNamespacePrefix(DEFAULT_NAMESPACE_PREFIX); }
@BeforeSuite public void setupDebug() throws SchemaException, SAXException, IOException { PrettyPrinter.setDefaultNamespacePrefix(DEFAULT_NAMESPACE_PREFIX); PrismTestUtil.resetPrismContext(new PrismInternalTestUtil()); }