use of org.bf2.srs.fleetmanager.spi.tenants.model.Tenant in project srs-fleet-manager by bf2fc6cc711aee1a0c2a.
the class MockTenantManagerService method createTenant.
@Timed(value = Constants.TENANT_MANAGER_CREATE_TENANT_TIMER, description = Constants.TENANT_MANAGER_DESCRIPTION)
@Audited
@Override
public Tenant createTenant(TenantManagerConfig tm, CreateTenantRequest req) {
requireNonNull(tm);
requireNonNull(req);
Tenant tenant = Tenant.builder().id(req.getTenantId()).build();
init(tm);
testData.get(tm).put(tenant.getId(), tenant);
return tenant;
}
Aggregations