@@ -0,0 +1,1168 @@
+package com.jakewharton.trakt.services;%0A%0Aimport com.jakewharton.trakt.BaseTestCase;%0Aimport com.jakewharton.trakt.entities.ListResponse;%0Aimport com.jakewharton.trakt.entities.Response;%0Aimport com.jakewharton.trakt.enumerations.ListPrivacy;%0A%0Apublic class ListServiceTest extends BaseTestCase %7B%0A%09public void test_list() %7B%0A%09%09final ListService service = getManager().listService();%0A%09%09%0A%09%09ListResponse addResponse = service.add(%22Test List%22, ListPrivacy.Private).fire();%0A%09%09assertNotNull(%22Response was null.%22, addResponse);%0A%09%09assertEquals(%22List create was not successful.%22, %22success%22, addResponse.getStatus());%0A%09%09assertEquals(%22Created list name does not match.%22, %22Test List%22, addResponse.getName());%0A%09%09assertEquals(%22Created list privacy does not match.%22, ListPrivacy.Private, addResponse.getPrivacy());%0A%09%09assertNotNull(%22Created list does not have a slug.%22, addResponse.getSlug());%0A%09%09%0A%09%09Response delResponse = service.delete(addResponse.getSlug()).fire();%0A%09%09assertNotNull(%22Response was null. List will need to be deleted manually.%22, delResponse);%0A%09%09assertEquals(%22List delete was not successful. List will need to be deleted manually.%22, %22success%22, delResponse.getStatus());%0A%09%7D%0A%7D%0A

Add test case for adding and deleting a list.