package io.moquette.fce.model.quota;

import static org.junit.Assert.*;

import org.junit.Test;

import io.moquette.fce.model.quota.UserQuota;
import io.moquette.plugin.MqttAction;

public class UserQuotaTest {

	private static final String ID = "testidentifier";
	private static final String USER = "testuser";
	
	@Test
	public void testOnEmptyUserQuotaValidation() {
		UserQuota userQuota = new UserQuota(ID, USER, null, null);
		assertTrue(userQuota.isValid(null, null, MqttAction.SUBSCRIBE));
	}

}
