@Test public void testCatalogItem() throws Exception { final TestApplication app = TestApplication.Factory.newManagedInstanceForTests(); ManagementContext managementContext = app.getManagementContext(); try { CatalogItem<?, ?> catalogItem = CatalogItemBuilder.newEntity("symbolicName", "0.0.1") .displayName("test catalog item") .description("description") .plan("yaml plan") .iconUrl("iconUrl") .libraries(CatalogItemDtoAbstract.parseLibraries(ImmutableList.of("library-url"))) .build(); serializer.setLookupContext(new LookupContextImpl(managementContext, ImmutableList.<Entity>of(), ImmutableList.<Location>of(), ImmutableList.<Policy>of(), ImmutableList.<Enricher>of(), ImmutableList.<Feed>of(), ImmutableList.of(catalogItem), true)); assertSerializeAndDeserialize(catalogItem); } finally { Entities.destroyAll(managementContext); } }
@Override public void setLookupContext(LookupContext lookupContext) { this.lookupContext = checkNotNull(lookupContext, "lookupContext"); }
XmlMementoSerializer extends XmlSerializer<T> implements MementoSerializer<T> { @Override public void setLookupContext(LookupContext lookupContext) { this.lookupContext = checkNotNull(lookupContext, "lookupContext"); } }
XmlMementoSerializer extends XmlSerializer<T> implements MementoSerializer<T> { @Override public void setLookupContext(LookupContext lookupContext) { this.lookupContext = checkNotNull(lookupContext, "lookupContext"); } XmlMementoSerializer(ClassLoader classLoader);  XmlMementoSerializer(ClassLoader classLoader, Map<String, String> deserializingClassRenames); }
XmlMementoSerializer extends XmlSerializer<T> implements MementoSerializer<T> { @Override public void setLookupContext(LookupContext lookupContext) { this.lookupContext = checkNotNull(lookupContext, "lookupContext"); } XmlMementoSerializer(ClassLoader classLoader);  XmlMementoSerializer(ClassLoader classLoader, Map<String, String> deserializingClassRenames); @Override void serialize(Object object, Writer writer); @Override void setLookupContext(LookupContext lookupContext); @Override void unsetLookupContext(); }
XmlMementoSerializer extends XmlSerializer<T> implements MementoSerializer<T> { @Override public void setLookupContext(LookupContext lookupContext) { this.lookupContext = checkNotNull(lookupContext, "lookupContext"); } XmlMementoSerializer(ClassLoader classLoader);  XmlMementoSerializer(ClassLoader classLoader, Map<String, String> deserializingClassRenames); @Override void serialize(Object object, Writer writer); @Override void setLookupContext(LookupContext lookupContext); @Override void unsetLookupContext();  }