package com.jakewharton.trakt.services;

import com.jakewharton.trakt.BaseTestCase;
import com.jakewharton.trakt.entities.Activity;

public class ActivityServiceTest extends BaseTestCase {
	public void test_community() {
		Activity activity = getManager().activityService().community().fire();
        assertNotNull("Result was null.", activity);
        //TODO
	}
	
	public void test_episodes() {
	    Activity activity = getManager().activityService().episodes("the-walking-dead", 2, 1).fire();
        assertNotNull("Result was null.", activity);
        //TODO
	}
    
    public void test_friends() {
        Activity activity = getManager().activityService().friends().fire();
        assertNotNull("Result was null.", activity);
        //TODO
    }
    
    public void test_movies() {
        Activity activity = getManager().activityService().movies("the-matrix-1999","cloud-atlas-2012").fire();
        assertNotNull("Result was null.", activity);
        //TODO
    }
    
    public void test_seasons() {
        Activity activity = getManager().activityService().seasons("dexter", 6).fire();
        assertNotNull("Result was null.", activity);
        //TODO
    }
    
    public void test_shows() {
        Activity activity = getManager().activityService().shows("battlestar-galactica-2003", "caprica").fire();
        assertNotNull("Result was null.", activity);
        //TODO
    }
    
    public void test_user() {
        Activity activity = getManager().activityService().user("JakeWharton").fire();
        assertNotNull("Result was null.", activity);
        //TODO
    }
}

@@ -126,16 +126,78 @@
 ivity;%0A%0A
+import static org.fest.assertions.api.Assertions.assertThat;%0A%0A
 public c
@@ -244,17 +244,21 @@
 tCase %7B%0A
-%09
+%0A    
 public v
@@ -284,10 +284,16 @@
 ) %7B%0A
-%09%09
+        
 Acti
@@ -350,23 +350,16 @@
 munity()
-.fire()
 ;%0A      
@@ -370,44 +370,33 @@
 sert
-NotNull(%22Result was null.%22, activity
+That(activity).isNotNull(
 );%0A 
@@ -413,13 +413,17 @@
 ODO%0A
-%09%7D%0A%09%0A
+    %7D%0A%0A//
 %09pub
@@ -449,16 +449,18 @@
 des() %7B%0A
+//
 %09    Act
@@ -542,32 +542,34 @@
 , 2, 1).fire();%0A
+//
         assertNo
@@ -597,32 +597,34 @@
 l.%22, activity);%0A
+//
         //TODO%0A%09
@@ -626,16 +626,18 @@
 ODO%0A
+//
 %09%7D%0A
-    %0A
+//%0A//
     
@@ -661,24 +661,26 @@
 friends() %7B%0A
+//
         Acti
@@ -736,32 +736,34 @@
 iends().fire();%0A
+//
         assertNo
@@ -791,32 +791,34 @@
 l.%22, activity);%0A
+//
         //TODO%0A 
@@ -812,35 +812,37 @@
      //TODO%0A
+//
     %7D%0A
-    %0A
+//%0A//
     public v
@@ -857,24 +857,26 @@
 _movies() %7B%0A
+//
         Acti
@@ -967,32 +967,34 @@
 -2012%22).fire();%0A
+//
         assertNo
@@ -1022,32 +1022,34 @@
 l.%22, activity);%0A
+//
         //TODO%0A 
@@ -1043,35 +1043,37 @@
      //TODO%0A
+//
     %7D%0A
-    %0A
+//%0A//
     public v
@@ -1089,24 +1089,26 @@
 seasons() %7B%0A
+//
         Acti
@@ -1175,32 +1175,34 @@
 er%22, 6).fire();%0A
+//
         assertNo
@@ -1230,32 +1230,34 @@
 l.%22, activity);%0A
+//
         //TODO%0A 
@@ -1251,35 +1251,37 @@
      //TODO%0A
+//
     %7D%0A
-    %0A
+//%0A//
     public v
@@ -1295,24 +1295,26 @@
 t_shows() %7B%0A
+//
         Acti
@@ -1406,32 +1406,34 @@
 prica%22).fire();%0A
+//
         assertNo
@@ -1461,32 +1461,34 @@
 l.%22, activity);%0A
+//
         //TODO%0A 
@@ -1490,19 +1490,21 @@
 ODO%0A
+//
     %7D%0A
-    %0A
+//%0A//
     
@@ -1525,24 +1525,26 @@
 st_user() %7B%0A
+//
         Acti
@@ -1614,24 +1614,26 @@
 n%22).fire();%0A
+//
         asse
@@ -1673,16 +1673,18 @@
 ivity);%0A
+//
         
@@ -1686,20 +1686,22 @@
      //TODO%0A
+//
     %7D%0A%7D%0A

Convert first activity test (community endpoint).