package com.trit.security.utils.ws;

import org.junit.Test;

public class WsResourceTest {

    @Test(expected = IllegalArgumentException.class)
    public void testNullResource() {
        new WsResource(null);
    }

    @Test(expected = IllegalArgumentException.class)
    public void testNullResourceAndNullId() {
        new WsResource(null, null);
    }

    @Test(expected = IllegalArgumentException.class)
    public void testNullId() {
        new WsResource("users", null);
    }

}

Test class for WsResource class
Test class for WsResource class
