@Test(expected=NotFoundException.class) public void testDeleteNonExisting() { handler.handleDELETE(HttpRequest.createTestRequest("http: }
@Override protected HttpResponse handleDELETE(HttpRequest request) { final TenantName tenantName = getTenantNameFromRequest(request); Utils.checkThatTenantExists(tenantRepository, tenantName); applicationRepository.deleteTenant(tenantName); return new TenantDeleteResponse(tenantName); }
TenantHandler extends HttpHandler { @Override protected HttpResponse handleDELETE(HttpRequest request) { final TenantName tenantName = getTenantNameFromRequest(request); Utils.checkThatTenantExists(tenantRepository, tenantName); applicationRepository.deleteTenant(tenantName); return new TenantDeleteResponse(tenantName); } }
TenantHandler extends HttpHandler { @Override protected HttpResponse handleDELETE(HttpRequest request) { final TenantName tenantName = getTenantNameFromRequest(request); Utils.checkThatTenantExists(tenantRepository, tenantName); applicationRepository.deleteTenant(tenantName); return new TenantDeleteResponse(tenantName); } @Inject  TenantHandler(Context ctx, ApplicationRepository applicationRepository); }
TenantHandler extends HttpHandler { @Override protected HttpResponse handleDELETE(HttpRequest request) { final TenantName tenantName = getTenantNameFromRequest(request); Utils.checkThatTenantExists(tenantRepository, tenantName); applicationRepository.deleteTenant(tenantName); return new TenantDeleteResponse(tenantName); } @Inject  TenantHandler(Context ctx, ApplicationRepository applicationRepository);  }
TenantHandler extends HttpHandler { @Override protected HttpResponse handleDELETE(HttpRequest request) { final TenantName tenantName = getTenantNameFromRequest(request); Utils.checkThatTenantExists(tenantRepository, tenantName); applicationRepository.deleteTenant(tenantName); return new TenantDeleteResponse(tenantName); } @Inject  TenantHandler(Context ctx, ApplicationRepository applicationRepository);   }