@Test public void testUntypedFieldReffingEntity() throws Exception { final TestApplication app = TestApplication.Factory.newManagedInstanceForTests(); ReffingEntity reffer = new ReffingEntity((Object)app); ManagementContext managementContext = app.getManagementContext(); try { serializer.setLookupContext(new LookupContextImpl(managementContext, ImmutableList.of(app), ImmutableList.<Location>of(), ImmutableList.<Policy>of(), ImmutableList.<Enricher>of(), ImmutableList.<Feed>of(), ImmutableList.<CatalogItem<?, ?>>of(), true)); ReffingEntity reffer2 = assertSerializeAndDeserialize(reffer); assertEquals(reffer2.obj, app); } 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();  }