mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-25 17:47:49 +00:00
37 lines
805 B
Java
37 lines
805 B
Java
![]() |
package mock;
|
||
|
|
||
|
import com.linkedin.metadata.models.EntitySpec;
|
||
|
import com.linkedin.metadata.models.EventSpec;
|
||
|
import com.linkedin.metadata.models.registry.EntityRegistry;
|
||
|
import java.util.Collections;
|
||
|
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;
|
||
|
}
|
||
|
}
|