use of com.alibaba.nacos.config.server.model.capacity.TenantCapacity in project nacos by alibaba.
the class TenantCapacityPersistServiceTest method testIncrementUsageWithQuotaLimit.
@Test
public void testIncrementUsageWithQuotaLimit() {
TenantCapacity tenantCapacity = new TenantCapacity();
Timestamp timestamp = new Timestamp(System.currentTimeMillis());
tenantCapacity.setGmtModified(timestamp);
tenantCapacity.setTenant("test2");
when(jdbcTemplate.update(anyString(), eq(timestamp), eq("test2"))).thenReturn(1);
Assert.assertTrue(service.incrementUsageWithQuotaLimit(tenantCapacity));
}
Aggregations