package com.jakewharton.trakt.services;

import com.jakewharton.trakt.BaseTestCase;
import com.jakewharton.trakt.entities.ListResponse;
import com.jakewharton.trakt.entities.Response;
import com.jakewharton.trakt.enumerations.ListPrivacy;

public class ListServiceTest extends BaseTestCase {
	public void test_list() {
		final ListService service = getManager().listService();
		
		ListResponse addResponse = service.add("Test List", ListPrivacy.Private).fire();
		assertNotNull("Response was null.", addResponse);
		assertEquals("List create was not successful.", "success", addResponse.getStatus());
		assertEquals("Created list name does not match.", "Test List", addResponse.getName());
		assertEquals("Created list privacy does not match.", ListPrivacy.Private, addResponse.getPrivacy());
		assertNotNull("Created list does not have a slug.", addResponse.getSlug());
		
		Response delResponse = service.delete(addResponse.getSlug()).fire();
		assertNotNull("Response was null. List will need to be deleted manually.", delResponse);
		assertEquals("List delete was not successful. List will need to be deleted manually.", "success", delResponse.getStatus());
	}
}

Add test case for adding and deleting a list.
Add test case for adding and deleting a list.
