@Before\r
public void setUp() {\r
tripService = new TesteableTripService();\r
+ loggedInUser = REGISTERED_USER;\r
}\r
\r
@Test(expected=UserNotLoggedInException.class) public void\r
}\r
\r
@Test public void\r
- not_return_any_trips_when_users_are_not_friends() { \r
- loggedInUser = REGISTERED_USER;\r
- \r
+ not_return_any_trips_when_users_are_not_friends() { \r
User friend = new User();\r
friend.addFriend(ANOTHER_USER);\r
friend.addTrip(TO_BRAZIL);\r
}\r
\r
@Test public void\r
- return_friend_trips_when_users_are_friends() {\r
- loggedInUser = REGISTERED_USER;\r
- \r
+ return_friend_trips_when_users_are_friends() { \r
User friend = new User();\r
friend.addFriend(loggedInUser);\r
friend.addFriend(ANOTHER_USER);\r