2022-05-03 19:38:05 -05:00
|
|
|
package mock;
|
|
|
|
|
2024-01-22 11:46:04 -06:00
|
|
|
import com.linkedin.metadata.aspect.patch.template.AspectTemplateEngine;
|
2022-09-23 01:52:18 -05:00
|
|
|
import com.linkedin.metadata.models.AspectSpec;
|
2022-05-03 19:38:05 -05:00
|
|
|
import com.linkedin.metadata.models.EntitySpec;
|
|
|
|
import com.linkedin.metadata.models.EventSpec;
|
|
|
|
import com.linkedin.metadata.models.registry.EntityRegistry;
|
|
|
|
import java.util.Collections;
|
2022-09-23 01:52:18 -05:00
|
|
|
import java.util.HashMap;
|
2022-05-03 19:38:05 -05:00
|
|
|
import java.util.Map;
|
|
|
|
import javax.annotation.Nonnull;
|
|
|
|
import javax.annotation.Nullable;
|
|
|
|
|
|
|
|
public class MockEntityRegistry implements EntityRegistry {
|
|
|
|
@Nonnull
|
|
|
|
@Override
|
|
|
|
public EntitySpec getEntitySpec(@Nonnull String entityName) {
|
|
|
|
return new MockEntitySpec(entityName);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Nullable
|
|
|
|
@Override
|
|
|
|
public EventSpec getEventSpec(@Nonnull String eventName) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Nonnull
|
|
|
|
@Override
|
|
|
|
public Map<String, EntitySpec> getEntitySpecs() {
|
|
|
|
return Collections.emptyMap();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Nonnull
|
|
|
|
@Override
|
|
|
|
public Map<String, EventSpec> getEventSpecs() {
|
|
|
|
return null;
|
|
|
|
}
|
2022-09-23 01:52:18 -05:00
|
|
|
|
|
|
|
@Nonnull
|
|
|
|
@Override
|
|
|
|
public AspectTemplateEngine getAspectTemplateEngine() {
|
|
|
|
return new AspectTemplateEngine();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Nonnull
|
|
|
|
@Override
|
|
|
|
public Map<String, AspectSpec> getAspectSpecs() {
|
|
|
|
return new HashMap<>();
|
|
|
|
}
|
2022-05-03 19:38:05 -05:00
|
|
|
}
|